Interface CriteriaDefinition
- All Known Implementing Classes:
Criteria
public interface CriteriaDefinition
Interface defining a criteria definition object. A criteria definition may chain multiple predicates and may also
represent a group of nested criteria objects.
- Since:
- 2.0
- Author:
- Mark Paluch, Jens Schauder
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic CriteriaDefinition
empty()
Static factory method to create an emptyCriteriaDefinition
.static CriteriaDefinition
from
(List<? extends CriteriaDefinition> criteria) static CriteriaDefinition
from
(CriteriaDefinition... criteria) getGroup()
getValue()
boolean
boolean
isEmpty()
boolean
isGroup()
boolean
Checks whether comparison should be done in case-insensitive way.
-
Method Details
-
empty
Static factory method to create an emptyCriteriaDefinition
.- Returns:
- an empty
CriteriaDefinition
.
-
from
- Returns:
- new
CriteriaDefinition
.
-
from
- Returns:
- new
CriteriaDefinition
. - Since:
- 1.1
-
isGroup
boolean isGroup()- Returns:
- true if this
Criteria
is empty.
-
getGroup
List<CriteriaDefinition> getGroup() -
getColumn
- Returns:
- the column/property name.
-
getComparator
- Returns:
CriteriaDefinition.Comparator
.
-
getValue
- Returns:
- the comparison value. Can be null.
-
isIgnoreCase
boolean isIgnoreCase()Checks whether comparison should be done in case-insensitive way.- Returns:
- true if comparison should be done in case-insensitive way
-
getPrevious
- Returns:
- the previous
CriteriaDefinition
object. Can be null if there is no previousCriteriaDefinition
. - See Also:
-
hasPrevious
boolean hasPrevious()- Returns:
- true if this
Criteria
has a previous one.
-
isEmpty
boolean isEmpty()- Returns:
- true if this
Criteria
is empty.
-
getCombinator
CriteriaDefinition.Combinator getCombinator()- Returns:
CriteriaDefinition.Combinator
to combine this criteria with a previous one.
-