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 Summary
Nested classes/interfaces inherited from interface de.espirit.or.query.Constraint
Constraint.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull String
Return the name of the attribute this constraint belongs to.abstract Constraint.Type
getType()
Return thetype
of this constraint.boolean
isEmpty()
Check if this is an empty constraint.
-
Constructor Details
-
AbstractConstraint
public AbstractConstraint()
-
-
Method Details
-
getType
Return thetype
of this constraint.- Specified by:
getType
in interfaceConstraint
- Returns:
- the type of this constraint.
- Since:
- 4.0.17
-
getAttributeName
Return the name of the attribute this constraint belongs to.- Specified by:
getAttributeName
in interfaceAttributeConstraint
- Returns:
- the name of the attribute of this constraint
- Since:
- 4.0.17
-
isEmpty
public boolean isEmpty()Check if this is an empty constraint. Empty constraints could be omitted without changing the query result.- Specified by:
isEmpty
in interfaceConstraint
- Returns:
true
if the constraint is empty, i.e. removing the constraint would not change the query result.- Since:
- 5.0.102
-