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

public abstract class AbstractExpression<Y> extends SelectionImpl<Y> implements Expression<Y>
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 Details

    • cb

      protected final CriteriaBuilder cb
    • negated

      protected boolean negated
  • Constructor Details

  • Method Details

    • in

      public Predicate in(Collection<?> values)
      Description copied from interface: Expression
      Create a predicate to test whether the expression is a member of the collection.
      Specified by:
      in in interface Expression<Y>
      Parameters:
      values - collection of values to be tested against
      Returns:
      predicate testing for membership
    • in

      public Predicate in(Object... values)
      Description copied from interface: Expression
      Create a predicate to test whether the expression is a member of the argument list.
      Specified by:
      in in interface Expression<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()