org.intermine.objectstore.intermine
Class CheckForIsNotNullConstraint

java.lang.Object
  extended by org.intermine.objectstore.intermine.CheckForIsNotNullConstraint
All Implemented Interfaces:
ConstraintTraverseAction

public class CheckForIsNotNullConstraint
extends java.lang.Object
implements ConstraintTraverseAction

For use with ConstraintHelper.traverseConstraints(). For each constrain check whether ir sets the given query node to be 'NOT NULL'


Constructor Summary
CheckForIsNotNullConstraint(QueryNode node)
          Construct with the QueryNode to test for NOT NULL constraint.
 
Method Summary
 void apply(Constraint c)
          Perform test for NOT NULL constraint on node
 boolean exists()
          Check whether a NOT NULL constraint was found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckForIsNotNullConstraint

public CheckForIsNotNullConstraint(QueryNode node)
Construct with the QueryNode to test for NOT NULL constraint.

Parameters:
node - the node to test
Method Detail

exists

public boolean exists()
Check whether a NOT NULL constraint was found.

Returns:
true if NOT CULL constraint found

apply

public void apply(Constraint c)
Perform test for NOT NULL constraint on node

Specified by:
apply in interface ConstraintTraverseAction
Parameters:
c - the constraint to test