Package cz.cvut.kbss.jopa.query.criteria
Class AbstractPredicate
java.lang.Object
cz.cvut.kbss.jopa.query.criteria.SelectionImpl<Y>
cz.cvut.kbss.jopa.query.criteria.expressions.AbstractExpression<Boolean>
cz.cvut.kbss.jopa.query.criteria.AbstractPredicate
- All Implemented Interfaces:
Expression<Boolean>,Predicate,Selection<Boolean>,TupleElement<Boolean>
- Direct Known Subclasses:
CompoundedPredicateImpl,ExpressionInImpl,IsMemberExpression,SimplePredicateImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface cz.cvut.kbss.jopa.model.query.criteria.Predicate
Predicate.BooleanOperator -
Field Summary
FieldsFields inherited from class cz.cvut.kbss.jopa.query.criteria.expressions.AbstractExpression
cb, negatedFields inherited from class cz.cvut.kbss.jopa.query.criteria.SelectionImpl
type -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPredicate(Predicate.BooleanOperator booleanOperator, CriteriaBuilder cb) -
Method Summary
Modifier and TypeMethodDescriptionabstract List<Expression<Boolean>>Return the top-level conjuncts or disjuncts of the predicate.Return the boolean operator for the predicate.protected voidabstract voidsetExpressionToQuery(StringBuilder query, CriteriaParameterFiller parameterFiller) Methods inherited from class cz.cvut.kbss.jopa.query.criteria.expressions.AbstractExpression
in, in, isNegated, negateMethods inherited from class cz.cvut.kbss.jopa.query.criteria.SelectionImpl
getAlias, getCompoundedSelectionItems, getJavaType, isCompoundedSelectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.cvut.kbss.jopa.model.query.criteria.Expression
in, inMethods inherited from interface cz.cvut.kbss.jopa.model.query.criteria.Selection
getCompoundedSelectionItems, isCompoundedSelectionMethods inherited from interface cz.cvut.kbss.jopa.model.query.TupleElement
getAlias, getJavaType
-
Field Details
-
booleanOperator
-
-
Constructor Details
-
AbstractPredicate
-
-
Method Details
-
getExpressions
Description copied from interface:PredicateReturn the top-level conjuncts or disjuncts of the predicate. Returns empty list if there are no top-level conjuncts or disjuncts of the predicate.- Specified by:
getExpressionsin interfacePredicate- Returns:
- list of boolean expressions forming the predicate
-
getOperator
Description copied from interface:PredicateReturn the boolean operator for the predicate. If the predicate is simple, this is AND.- Specified by:
getOperatorin interfacePredicate- Returns:
- boolean operator for the predicate
-
setExpressionToQuery
public abstract void setExpressionToQuery(StringBuilder query, CriteriaParameterFiller parameterFiller) - Specified by:
setExpressionToQueryin classAbstractExpression<Boolean>
-
negateOperator
protected void negateOperator()
-