Package org.hibernate.query.criteria
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
API extension to the JPA
Expression contract- Author:
- Steve Ebersole
-
Method Summary
Modifier and TypeMethodDescription<X> JpaExpression<X>Perform a typecast upon the expression, returning a new expression object.asDouble()asFloat()asLong()asString()<X> JpaExpression<X>equalTo(Expression<T> that) in(Expression<?>... values) Create a predicate to test whether the expression is a member of the argument list.in(Expression<Collection<?>> values) Create a predicate to test whether the expression is a member of the collection.Create 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.Create a predicate to test whether the expression is not null.isNull()Create a predicate to test whether the expression is null.Methods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeName, isEnumMethods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelectionMethods inherited from interface jakarta.persistence.TupleElement
getAlias
-
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
Description copied from interface:ExpressionPerform 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:
asin interfaceExpression<T>- Parameters:
type- intended type of the expression- Returns:
- new expression of the given type
-
isNull
JpaPredicate isNull()Description copied from interface:ExpressionCreate a predicate to test whether the expression is null.- Specified by:
isNullin interfaceExpression<T>- Returns:
- predicate testing whether the expression is null
-
isNotNull
JpaPredicate isNotNull()Description copied from interface:ExpressionCreate a predicate to test whether the expression is not null.- Specified by:
isNotNullin interfaceExpression<T>- Returns:
- predicate testing whether the expression is not null
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the argument list.- Specified by:
inin interfaceExpression<T>- Parameters:
values- 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<T>- Parameters:
values- expressions 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 collection.- Specified by:
inin interfaceExpression<T>- 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 collection.- Specified by:
inin interfaceExpression<T>- Parameters:
values- expression corresponding to collection to be tested against- Returns:
- predicate testing for membership
-
equalTo
-
equalTo
-
cast
-