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<L, T>, JpaDerivedFrom<T>, JpaDerivedJoin<T>, JpaDerivedRoot<T>, JpaEntityJoin<L, R>, JpaFrom<O, T>, JpaFunction<T>, JpaFunctionFrom<O, T>, JpaFunctionJoin<E>, JpaFunctionRoot<E>, JpaJoin<L, R>, JpaJsonExistsExpression, JpaJsonQueryExpression, JpaJsonValueExpression<T>, JpaListJoin<O, T>, JpaMapJoin<O, K, V>, JpaPath<T>, JpaPluralExpression<C, E>, JpaPluralJoin<O, C, E>, JpaRoot<T>, JpaSearchedCase<T>, JpaSetJoin<O, T>, JpaSimpleCase<C, R>, JpaSubQuery<T>, JpaTreatedFrom<L, R, R1>, JpaTreatedJoin<L, R, R1>, JpaTreatedPath<T, S>, JpaXmlElementExpression, SqmAggregateFunction<T>, SqmAttributeJoin<O, T>, SqmBooleanExpression, SqmBooleanExpressionImplementor, SqmBooleanPath, SqmComparableExpression<C>, SqmComparableExpressionImplementor<C>, SqmCorrelatedJoin<L, R>, SqmCorrelatedSingularValuedJoin<L, R>, SqmCorrelation<L, R>, SqmExpression<T>, SqmExpressionWrapper<T>, SqmFrom<L, R>, SqmInPredicate<T>, SqmJoin<L, R>, SqmNegatablePredicate, SqmNumericExpression<N>, SqmNumericExpressionImplementor<N>, SqmNumericPath<N>, SqmOrderedSetAggregateFunction<T>, SqmParameter<T>, SqmPath<T>, SqmPathWrapper<W, T>, SqmPluralPath<C, E>, SqmPredicate, SqmSimplePath<T>, SqmSingularValuedJoin<L, R>, SqmTemporalExpression<T>, SqmTemporalExpressionImplementor<T>, SqmTemporalPath<T>, SqmTextExpression, SqmTextExpressionImplementor, SqmTextPath, SqmTreatedAttributeJoin<L, R, R1>, SqmTreatedFrom<L, R, R1>, SqmTreatedJoin<L, R, R1>, SqmTreatedPath<T, S>, SqmWindowFunction<T>
- All Known Implementing Classes:
AbstractNegatableSqmPredicate, AbstractSqmAttributeJoin, AbstractSqmExpression, AbstractSqmFrom, AbstractSqmJoin, AbstractSqmJsonPathExpression, AbstractSqmParameter, AbstractSqmPath, AbstractSqmPluralJoin, AbstractSqmPredicate, AbstractSqmSimplePath, AbstractSqmSpecificPluralPartPath, AsWrapperSqmExpression, FormatFunction.FormatSqmFunction, InverseDistributionFunction.SelfRenderingInverseDistributionFunction, JpaCriteriaParameter, NonAggregatedCompositeSimplePath, SelfRenderingSqmAggregateFunction, SelfRenderingSqmFunction, SelfRenderingSqmOrderedSetAggregateFunction, SelfRenderingSqmWindowFunction, SqmAliasedNodeRef, SqmAny, SqmAnyDiscriminatorValue, SqmAnyValuedSimplePath, SqmBagJoin, SqmBasicValuedSimplePath, SqmBetweenPredicate, SqmBinaryArithmetic, SqmBooleanExpressionPredicate, SqmBooleanExpressionWrapper, SqmBooleanValuedSimplePath, SqmByUnit, SqmCaseSearched, SqmCaseSimple, SqmCoalesce, SqmCollation, SqmCollectionSize, SqmComparableExpressionWrapper, SqmComparableValuedSimplePath, SqmComparisonPredicate, SqmCorrelatedBagJoin, SqmCorrelatedCrossJoin, SqmCorrelatedCteJoin, SqmCorrelatedDerivedJoin, SqmCorrelatedDerivedRoot, SqmCorrelatedDerivedRootJoin, 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, SqmFunctionJoin, SqmFunctionPath, SqmFunctionRoot, SqmGroupedPredicate, SqmHqlNumericLiteral, SqmIndexAggregateFunction, SqmIndexedCollectionAccessPath, SqmInListPredicate, SqmInSubQueryPredicate, SqmJpaCompoundSelection, SqmJpaCriteriaParameterWrapper, SqmJsonExistsExpression, SqmJsonQueryExpression, SqmJsonValueExpression, SqmJunctionPredicate, SqmLikePredicate, SqmListJoin, SqmLiteral, SqmLiteralEmbeddableType, SqmLiteralEntityType, SqmLiteralNull, SqmMapJoin, SqmMemberOfPredicate, SqmModifiedSubQueryExpression, SqmNamedExpression, SqmNamedParameter, SqmNegatedPredicate, SqmNullnessPredicate, SqmNumericExpressionWrapper, SqmNumericValuedSimplePath, SqmOver, SqmOverflow, SqmParameterizedEntityType, SqmPluralPartJoin, SqmPluralPartSelectionPath, SqmPluralValuedSimplePath, SqmPositionalParameter, SqmRoot, SqmSelfRenderingExpression, SqmSetJoin, SqmSingularJoin, SqmStar, SqmSubQuery, SqmSummarization, SqmTemporalExpressionWrapper, SqmTemporalValuedSimplePath, SqmTextExpressionWrapper, SqmTextValuedSimplePath, SqmToDuration, SqmTreatedBagJoin, SqmTreatedCrossJoin, SqmTreatedEmbeddedValuedSimplePath, SqmTreatedEntityJoin, SqmTreatedEntityValuedSimplePath, SqmTreatedListJoin, SqmTreatedMapJoin, SqmTreatedPluralPartJoin, SqmTreatedRoot, SqmTreatedSetJoin, SqmTreatedSimplePath, SqmTreatedSingularJoin, SqmTruthnessPredicate, SqmTuple, SqmUnaryOperation, SqmXmlElementExpression, ValueBindJpaCriteriaParameter
API extension to the JPA
Expression contract-
Method Summary
Modifier and TypeMethodDescription<X> JpaExpression<X> Narrow this expression to the given Java type.Convert this expression to BigDecimal.Convert this expression to BigInteger.asDouble()Convert this expression to Double.asFloat()Convert this expression to Float.Convert this expression to Integer.asLong()Convert this expression to Long.asString()Convert this expression to String.<X> JpaExpression<X> Create a cast expression for this expression.coalesce(Expression<? extends T> y) Create a coalesce expression using this expression.Create a coalesce expression using this expression.count()Create a count expression for this expression.Create a distinct count expression for this expression.equalTo(Expression<?> value) Create a predicate testing equality with this expression.Create a predicate testing equality with this expression.in(Expression<?>... values) Create an in predicate for this expression.in(Expression<Collection<?>> values) Create an in predicate for this expression.Create an in predicate for this expression.Create an in predicate for this expression.in(Collection<?> values) Create an in predicate for this expression.isMember(Expression<? extends Collection<? super T>> collection) Create a predicate testing whether this expression is a member of a collection.isNotMember(Expression<? extends Collection<? super T>> collection) Create a predicate testing whether this expression is not a member of a collection.Create a predicate testing whether this expression is not null.isNull()Create a predicate testing whether this expression is null.notEqualTo(Expression<?> value) Create a predicate testing inequality with this expression.notEqualTo(Object value) Create a predicate testing inequality with this expression.nullif(Expression<? extends T> y) Create a nullif expression using this expression.Create a nullif expression using this expression.<R> JpaSimpleCase<T, R> Create a simple case expression based on this expression.<R> JpaSimpleCase<T, R> selectCase(Class<R> resultType) Create a simple case expression based on this expression.Methods inherited from interface JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeIfKnown, getJavaTypeName, isEnumMethods inherited from interface Selection
isCompoundSelectionMethods inherited from interface TupleElement
getAlias
-
Method Details
-
asLong
Convert this expression to Long. -
asInteger
Convert this expression to Integer. -
asFloat
Convert this expression to Float. -
asDouble
Convert this expression to Double. -
asBigDecimal
Convert this expression to BigDecimal. -
asBigInteger
Convert this expression to BigInteger. -
asString
Convert this expression to String. -
as
Narrow this expression to the given Java type.- Specified by:
asin interfaceExpression<T>
-
isNull
Create a predicate testing whether this expression is null.- Specified by:
isNullin interfaceExpression<T>
-
isNotNull
Create a predicate testing whether this expression is not null.- Specified by:
isNotNullin interfaceExpression<T>
-
in
Create an in predicate for this expression.- Specified by:
inin interfaceExpression<T>
-
in
Create an in predicate for this expression.- Specified by:
inin interfaceExpression<T>
-
in
Create an in predicate for this expression.- Specified by:
inin interfaceExpression<T>
-
in
Create an in predicate for this expression.- Specified by:
inin interfaceExpression<T>
-
in
Create an in predicate for this expression.- Specified by:
inin interfaceExpression<T>
-
coalesce
Create a coalesce expression using this expression.- Specified by:
coalescein interfaceExpression<T>
-
coalesce
Create a coalesce expression using this expression.- Specified by:
coalescein interfaceExpression<T>
-
selectCase
Create a simple case expression based on this expression. -
selectCase
Create a simple case expression based on this expression.- Specified by:
selectCasein interfaceExpression<T>
-
count
Create a count expression for this expression.- Specified by:
countin interfaceExpression<T>
-
countDistinct
Create a distinct count expression for this expression.- Specified by:
countDistinctin interfaceExpression<T>
-
nullif
Create a nullif expression using this expression.- Specified by:
nullifin interfaceExpression<T>
-
nullif
Create a nullif expression using this expression.- Specified by:
nullifin interfaceExpression<T>
-
isMember
Create a predicate testing whether this expression is a member of a collection.- Specified by:
isMemberin interfaceExpression<T>
-
isNotMember
Create a predicate testing whether this expression is not a member of a collection.- Specified by:
isNotMemberin interfaceExpression<T>
-
equalTo
Create a predicate testing equality with this expression.- Specified by:
equalToin interfaceExpression<T>
-
equalTo
Create a predicate testing equality with this expression.- Specified by:
equalToin interfaceExpression<T>
-
cast
Create a cast expression for this expression.- Specified by:
castin interfaceExpression<T>
-
notEqualTo
Create a predicate testing inequality with this expression.- Specified by:
notEqualToin interfaceExpression<T>
-
notEqualTo
Create a predicate testing inequality with this expression.- Specified by:
notEqualToin interfaceExpression<T>
-