Package cz.cvut.kbss.jopa.query.criteria
Class SimplePredicateImpl
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
cz.cvut.kbss.jopa.query.criteria.SimplePredicateImpl
- All Implemented Interfaces:
Expression<Boolean>,Predicate,Selection<Boolean>,TupleElement<Boolean>
-
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.AbstractPredicate
booleanOperatorFields 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
ConstructorsConstructorDescriptionSimplePredicateImpl(Expression<Boolean> expression, CriteriaBuilder cb) SimplePredicateImpl(Predicate.BooleanOperator booleanOperator, Expression<Boolean> expression, CriteriaBuilder cb) -
Method Summary
Modifier and TypeMethodDescriptionReturn the top-level conjuncts or disjuncts of the predicate.voidnegate()not()Create a negation of the predicate.voidsetExpressionToQuery(StringBuilder query, CriteriaParameterFiller parameterFiller) Methods inherited from class cz.cvut.kbss.jopa.query.criteria.AbstractPredicate
getOperator, negateOperatorMethods inherited from class cz.cvut.kbss.jopa.query.criteria.expressions.AbstractExpression
in, in, isNegatedMethods 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
-
expression
-
-
Constructor Details
-
SimplePredicateImpl
public SimplePredicateImpl(Predicate.BooleanOperator booleanOperator, Expression<Boolean> expression, CriteriaBuilder cb) -
SimplePredicateImpl
-
-
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- Specified by:
getExpressionsin classAbstractPredicate- Returns:
- list of boolean expressions forming the predicate
-
not
Description copied from interface:PredicateCreate a negation of the predicate.- Returns:
- negated predicate
-
setExpressionToQuery
- Specified by:
setExpressionToQueryin classAbstractPredicate
-
negate
public void negate()- Overrides:
negatein classAbstractExpression<Boolean>
-