Module io.github.mmm.entity.bean
Package io.github.mmm.entity.bean.sql
Class PredicateClause<E extends EntityBean,SELF extends PredicateClause<E,SELF>>
- java.lang.Object
-
- io.github.mmm.marshall.AbstractMarshallingObject
-
- io.github.mmm.entity.bean.sql.AbstractClause
-
- io.github.mmm.entity.bean.sql.AbstractTypedClause<E,SELF>
-
- io.github.mmm.entity.bean.sql.PredicateClause<E,SELF>
-
- Type Parameters:
E- type of theEntityBeanto query.SELF- type of this class itself.
- All Implemented Interfaces:
Clause,TypedClause<E>,io.github.mmm.marshall.MarshallableObject,io.github.mmm.marshall.Marshaller<Object>,io.github.mmm.marshall.Marshalling<Object>,io.github.mmm.marshall.MarshallingObject,io.github.mmm.marshall.UnmarshallableObject,io.github.mmm.marshall.Unmarshaller<Object>
public abstract class PredicateClause<E extends EntityBean,SELF extends PredicateClause<E,SELF>> extends AbstractTypedClause<E,SELF>
- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME_PREDICATESName of the propertygetPredicates()for marshaling.
-
Constructor Summary
Constructors Constructor Description PredicateClause()The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SELFand(io.github.mmm.property.criteria.CriteriaPredicate predicate)SELFand(io.github.mmm.property.criteria.CriteriaPredicate... criteriaPredicates)List<io.github.mmm.property.criteria.CriteriaPredicate>getPredicates()booleanisOmit()protected voidreadProperty(io.github.mmm.marshall.StructuredReader reader, String name)protected voidwriteProperties(io.github.mmm.marshall.StructuredWriter writer)-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractTypedClause
self
-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractClause
getMarshallingName, toString
-
-
-
-
Field Detail
-
NAME_PREDICATES
public static final String NAME_PREDICATES
Name of the propertygetPredicates()for marshaling.- See Also:
- Constant Field Values
-
-
Method Detail
-
and
public SELF and(io.github.mmm.property.criteria.CriteriaPredicate predicate)
- Parameters:
predicate- theCriteriaPredicateto add. They will be combined withANDif called multiple times.- Returns:
- this
Clauseitself for fluent API calls.
-
and
public SELF and(io.github.mmm.property.criteria.CriteriaPredicate... criteriaPredicates)
- Parameters:
criteriaPredicates- theCriteriaPredicates to add. They will be combined withAND.- Returns:
- this
Clauseitself for fluent API calls.
-
getPredicates
public List<io.github.mmm.property.criteria.CriteriaPredicate> getPredicates()
- Returns:
- the
ListofCriteriaPredicates.
-
isOmit
public boolean isOmit()
- Returns:
trueif thisClauseshould be omitted as it is optional and entirely empty,falseotherwise.
-
writeProperties
protected void writeProperties(io.github.mmm.marshall.StructuredWriter writer)
- Overrides:
writePropertiesin classAbstractClause
-
readProperty
protected void readProperty(io.github.mmm.marshall.StructuredReader reader, String name)- Overrides:
readPropertyin classAbstractClause
-
-