Module io.github.mmm.orm
Package io.github.mmm.orm.statement
Class PredicateClause<E,SELF extends PredicateClause<E,SELF>>
java.lang.Object
io.github.mmm.orm.statement.AbstractDbClause
io.github.mmm.orm.statement.AbstractTypedClause<E,SELF>
io.github.mmm.orm.statement.PredicateClause<E,SELF>
- Type Parameters:
E- type of theEntityBeanto query.SELF- type of this class itself.
- All Implemented Interfaces:
DbClause,TypedClause<E>
- Direct Known Subclasses:
HavingClause,WhereClause
public abstract class PredicateClause<E,SELF extends PredicateClause<E,SELF>>
extends AbstractTypedClause<E,SELF>
- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the propertygetPredicates()for marshaling. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.mmm.orm.statement.AbstractTypedClause
selfMethods inherited from class io.github.mmm.orm.statement.AbstractDbClause
toString
-
Field Details
-
NAME_PREDICATES
Name of the propertygetPredicates()for marshaling.- See Also:
-
-
Constructor Details
-
PredicateClause
public PredicateClause()The constructor.
-
-
Method Details
-
and
- Parameters:
predicate- theCriteriaPredicateto add. They will be combined withANDif called multiple times.- Returns:
- this
DbClauseitself for fluent API calls.
-
and
- Parameters:
criteriaPredicates- theCriteriaPredicates to add. They will be combined withAND.- Returns:
- this
DbClauseitself for fluent API calls.
-
getPredicates
- Returns:
- the
ListofCriteriaPredicates.
-
isOmit
public boolean isOmit()- Returns:
trueif thisDbClauseshould be omitted as it is optional and entirely empty,falseotherwise.
-