Class AbstractExpression<Y>
java.lang.Object
cz.cvut.kbss.jopa.query.criteria.SelectionImpl<Y>
cz.cvut.kbss.jopa.query.criteria.expressions.AbstractExpression<Y>
- All Implemented Interfaces:
Expression<Y>,Selection<Y>,TupleElement<Y>
- Direct Known Subclasses:
AbstractComparisonExpression,AbstractFunctionExpression,AbstractPathExpression,AbstractPredicate,ExpressionLiteralImpl,ParameterExpressionImpl
Parent of all other types of expressions.
It offers its children the implementation of methods for IN expression as prescribed by the Expression interface. Prescribes an abstract method for expressing an expression to string builder representing the query.
-
Field Summary
FieldsFields inherited from class cz.cvut.kbss.jopa.query.criteria.SelectionImpl
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a predicate to test whether the expression is a member of the argument list.in(Collection<?> values) Create a predicate to test whether the expression is a member of the collection.booleanvoidnegate()abstract voidsetExpressionToQuery(StringBuilder query, CriteriaParameterFiller parameterFiller) Methods 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.Selection
getCompoundedSelectionItems, isCompoundedSelectionMethods inherited from interface cz.cvut.kbss.jopa.model.query.TupleElement
getAlias, getJavaType
-
Field Details
-
cb
-
negated
protected boolean negated
-
-
Constructor Details
-
AbstractExpression
-
-
Method Details
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the collection.- Specified by:
inin interfaceExpression<Y>- Parameters:
values- collection of values to be tested against- Returns:
- predicate testing for membership
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the argument list.- Specified by:
inin interfaceExpression<Y>- Parameters:
values- values to be tested against- Returns:
- predicate testing for membership
-
setExpressionToQuery
public abstract void setExpressionToQuery(StringBuilder query, CriteriaParameterFiller parameterFiller) -
isNegated
public boolean isNegated() -
negate
public void negate()
-