Class CheckForIsNotNullConstraint
- java.lang.Object
-
- 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'- Author:
- Richard Smith
-
-
Constructor Summary
Constructors Constructor Description CheckForIsNotNullConstraint(QueryNode node)
Construct with the QueryNode to test for NOT NULL constraint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Constraint c)
Perform test for NOT NULL constraint on nodeboolean
exists()
Check whether a NOT NULL constraint was found.
-
-
-
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 interfaceConstraintTraverseAction
- Parameters:
c
- the constraint to test
-
-