Package de.espirit.or.query
Class AbstractConstraint
java.lang.Object
de.espirit.or.query.AbstractConstraint
- All Implemented Interfaces:
- AttributeConstraint,- Constraint,- Serializable,- Cloneable
The base class for all implementations of 
Constraint which define an attribute based filter.- Since:
- 4.0.17
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface de.espirit.or.query.ConstraintConstraint.Type
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal @NotNull StringReturn the name of the attribute this constraint belongs to.abstract Constraint.TypegetType()Return thetypeof this constraint.booleanisEmpty()Check if this is an empty constraint.
- 
Constructor Details- 
AbstractConstraintpublic AbstractConstraint()
 
- 
- 
Method Details- 
getTypeReturn thetypeof this constraint.- Specified by:
- getTypein interface- Constraint
- Returns:
- the type of this constraint.
- Since:
- 4.0.17
 
- 
getAttributeNameReturn the name of the attribute this constraint belongs to.- Specified by:
- getAttributeNamein interface- AttributeConstraint
- Returns:
- the name of the attribute of this constraint
- Since:
- 4.0.17
 
- 
isEmptypublic boolean isEmpty()Check if this is an empty constraint. Empty constraints could be omitted without changing the query result.- Specified by:
- isEmptyin interface- Constraint
- Returns:
- trueif the constraint is empty, i.e. removing the constraint would not change the query result.
- Since:
- 5.0.102
 
 
-