Interface JpaExpression<T>

All Superinterfaces:
Expression<T>, JpaCriteriaNode, JpaSelection<T>, JpaTupleElement<T>, Selection<T>, Serializable, TupleElement<T>
All Known Subinterfaces:
DiscriminatorSqmPath<T>, JpaCoalesce<T>, JpaCollectionJoin<O,T>, JpaCrossJoin<T>, JpaDerivedFrom<T>, JpaDerivedJoin<T>, JpaDerivedRoot<T>, JpaEntityJoin<T>, JpaFrom<O,T>, JpaFunction<T>, JpaInPredicate<T>, JpaJoin<O,T>, JpaJoinedFrom<O,T>, JpaListJoin<O,T>, JpaMapJoin<O,K,V>, JpaPath<T>, JpaPluralJoin<O,C,E>, JpaPredicate, JpaRoot<T>, JpaSearchedCase<T>, JpaSetJoin<O,T>, JpaSimpleCase<C,R>, JpaSubQuery<T>, SqmAggregateFunction<T>, SqmAttributeJoin<O,T>, SqmCorrelation<O,T>, SqmExpression<T>, SqmFrom<O,T>, SqmInPredicate<T>, SqmJoin<O,T>, SqmNegatablePredicate, SqmOrderedSetAggregateFunction<T>, SqmParameter<T>, SqmPath<T>, SqmPathWrapper<W,T>, SqmPredicate, SqmQualifiedJoin<O,T>, SqmSimplePath<T>, SqmTreatedPath<T,S>, SqmWindowFunction<T>
All Known Implementing Classes:
AbstractNegatableSqmPredicate, AbstractSqmAttributeJoin, AbstractSqmExpression, AbstractSqmFrom, AbstractSqmJoin, AbstractSqmParameter, AbstractSqmPath, AbstractSqmPluralJoin, AbstractSqmPredicate, AbstractSqmQualifiedJoin, AbstractSqmSimplePath, AbstractSqmSpecificPluralPartPath, AnyDiscriminatorSqmPath, AsWrapperSqmExpression, EmbeddedDiscriminatorSqmPath, EntityDiscriminatorSqmPath, FormatFunction.FormatSqmFunction, FullyQualifiedReflectivePathTerminal, InverseDistributionFunction.SelfRenderingInverseDistributionFunction, JpaCriteriaParameter, NonAggregatedCompositeSimplePath, SelfRenderingSqmAggregateFunction, SelfRenderingSqmFunction, SelfRenderingSqmOrderedSetAggregateFunction, SelfRenderingSqmWindowFunction, SqmAliasedNodeRef, SqmAny, SqmAnyDiscriminatorValue, SqmAnyValuedSimplePath, SqmBagJoin, SqmBasicValuedSimplePath, SqmBetweenPredicate, SqmBinaryArithmetic, SqmBooleanExpressionPredicate, SqmByUnit, SqmCaseSearched, SqmCaseSimple, SqmCoalesce, SqmCollation, SqmCollectionSize, SqmComparisonPredicate, SqmCorrelatedBagJoin, SqmCorrelatedCrossJoin, SqmCorrelatedEntityJoin, SqmCorrelatedListJoin, SqmCorrelatedMapJoin, SqmCorrelatedPluralPartJoin, SqmCorrelatedRoot, SqmCorrelatedRootJoin, SqmCorrelatedSetJoin, SqmCorrelatedSingularJoin, SqmCrossJoin, SqmCteJoin, SqmCteRoot, SqmDerivedJoin, SqmDerivedRoot, SqmElementAggregateFunction, SqmEmbeddedValuedSimplePath, SqmEmptinessPredicate, SqmEntityJoin, SqmEntityValuedSimplePath, SqmEnumLiteral, SqmEvery, SqmExistsPredicate, SqmFieldLiteral, SqmFkExpression, SqmFormat, SqmFunction, SqmFunctionPath, SqmGroupedPredicate, SqmHqlNumericLiteral, SqmIndexAggregateFunction, SqmIndexedCollectionAccessPath, SqmInListPredicate, SqmInSubQueryPredicate, SqmJpaCompoundSelection, SqmJpaCriteriaParameterWrapper, SqmJunctionPredicate, SqmLikePredicate, SqmListJoin, SqmLiteral, SqmLiteralEmbeddableType, SqmLiteralEntityType, SqmLiteralNull, SqmMapJoin, SqmMemberOfPredicate, SqmModifiedSubQueryExpression, SqmNamedParameter, SqmNegatedPredicate, SqmNullnessPredicate, SqmOver, SqmOverflow, SqmParameterizedEntityType, SqmPluralPartJoin, SqmPluralValuedSimplePath, SqmPositionalParameter, SqmRoot, SqmSelfRenderingExpression, SqmSetJoin, SqmSingularJoin, SqmStar, SqmSubQuery, SqmSummarization, SqmToDuration, SqmTreatedBagJoin, SqmTreatedCrossJoin, SqmTreatedEmbeddedValuedSimplePath, SqmTreatedEntityJoin, SqmTreatedEntityValuedSimplePath, SqmTreatedListJoin, SqmTreatedMapJoin, SqmTreatedPluralPartJoin, SqmTreatedRoot, SqmTreatedSetJoin, SqmTreatedSingularJoin, SqmTruthnessPredicate, SqmTuple, SqmUnaryOperation, ValueBindJpaCriteriaParameter

public interface JpaExpression<T> extends JpaSelection<T>, Expression<T>
API extension to the JPA Expression contract
Author:
Steve Ebersole
  • Method Details

    • asLong

      JpaExpression<Long> asLong()
    • asInteger

      JpaExpression<Integer> asInteger()
    • asFloat

      JpaExpression<Float> asFloat()
    • asDouble

      JpaExpression<Double> asDouble()
    • asBigDecimal

      JpaExpression<BigDecimal> asBigDecimal()
    • asBigInteger

      JpaExpression<BigInteger> asBigInteger()
    • asString

      JpaExpression<String> asString()
    • as

      <X> JpaExpression<X> as(Class<X> type)
      Description copied from interface: Expression
      Perform a typecast upon the expression, returning a new expression object. This method does not cause type conversion: the runtime type is not changed. Warning: may result in a runtime failure.
      Specified by:
      as in interface Expression<T>
      Parameters:
      type - intended type of the expression
      Returns:
      new expression of the given type
    • isNull

      JpaPredicate isNull()
      Description copied from interface: Expression
      Create a predicate to test whether the expression is null.
      Specified by:
      isNull in interface Expression<T>
      Returns:
      predicate testing whether the expression is null
    • isNotNull

      JpaPredicate isNotNull()
      Description copied from interface: Expression
      Create a predicate to test whether the expression is not null.
      Specified by:
      isNotNull in interface Expression<T>
      Returns:
      predicate testing whether the expression is not null
    • in

      JpaPredicate 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<T>
      Parameters:
      values - values to be tested against
      Returns:
      predicate testing for membership
    • in

      JpaPredicate in(Expression<?>... 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<T>
      Parameters:
      values - expressions to be tested against
      Returns:
      predicate testing for membership
    • in

      JpaPredicate 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<T>
      Parameters:
      values - collection of values to be tested against
      Returns:
      predicate testing for membership
    • in

      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<T>
      Parameters:
      values - expression corresponding to collection to be tested against
      Returns:
      predicate testing for membership
    • equalTo

      JpaPredicate equalTo(Expression<T> that)
    • equalTo

      JpaPredicate equalTo(T that)
    • cast

      <X> JpaExpression<X> cast(Class<X> type)