Class SourcePersistentEntityCriteriaBuilderImpl
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.AbstractCriteriaBuilder
io.micronaut.data.processor.model.criteria.impl.SourcePersistentEntityCriteriaBuilderImpl
- All Implemented Interfaces:
PersistentEntityCriteriaBuilder
,SourcePersistentEntityCriteriaBuilder
,jakarta.persistence.criteria.CriteriaBuilder
@Internal
public final class SourcePersistentEntityCriteriaBuilderImpl
extends AbstractCriteriaBuilder
implements SourcePersistentEntityCriteriaBuilder
The source implementation of
SourcePersistentEntityCriteriaBuilder
.- Since:
- 3.2
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.criteria.CriteriaBuilder
jakarta.persistence.criteria.CriteriaBuilder.Case<R extends Object>, jakarta.persistence.criteria.CriteriaBuilder.Coalesce<T extends Object>, jakarta.persistence.criteria.CriteriaBuilder.In<T extends Object>, jakarta.persistence.criteria.CriteriaBuilder.SimpleCase<C extends Object,
R extends Object>, jakarta.persistence.criteria.CriteriaBuilder.Trimspec -
Constructor Summary
ConstructorDescriptionSourcePersistentEntityCriteriaBuilderImpl
(Function<io.micronaut.inject.ast.ClassElement, SourcePersistentEntity> entityResolver, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder) -
Method Summary
Modifier and TypeMethodDescriptioncreateCriteriaDelete
(Class<T> targetEntity) createCriteriaUpdate
(Class<T> targetEntity) createQuery
(Class<T> resultClass) PersistentEntityCriteriaQuery<jakarta.persistence.Tuple>
<T> jakarta.persistence.criteria.ParameterExpression<T>
entityPropertyParameter
(io.micronaut.inject.ast.ParameterElement entityParameter, PersistentPropertyPath propertyPath) Create parameter expression fromParameterElement
that is representing an entity instance.<T> jakarta.persistence.criteria.ParameterExpression<T>
expression
(PersistentProperty property, String expression) Create parameter expression fromParameterElement
.<T> jakarta.persistence.criteria.ParameterExpression<T>
parameter
(io.micronaut.inject.ast.ParameterElement parameterElement, PersistentPropertyPath propertyPath) Create parameter expression fromParameterElement
.Methods inherited from class io.micronaut.data.model.jpa.criteria.impl.AbstractCriteriaBuilder
abs, all, and, and, and, any, array, arrayContains, asc, avg, between, between, ceiling, coalesce, coalesce, coalesce, concat, concat, concat, conjunction, construct, containsString, containsStringIgnoreCase, count, countDistinct, currentDate, currentTime, currentTimestamp, desc, diff, diff, diff, disjunction, endingWithString, endingWithStringIgnoreCase, equal, equal, equalStringIgnoreCase, equalStringIgnoreCase, exists, exp, floor, function, ge, ge, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greatest, gt, gt, ilike, in, isEmpty, isEmptyString, isFalse, isMember, isMember, isNotEmpty, isNotEmptyString, isNotMember, isNotMember, isNotNull, isNull, isTrue, keys, le, le, least, length, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, like, like, like, like, like, like, literal, ln, localDate, localDateTime, localTime, locate, locate, locate, locate, lower, lt, lt, max, min, mod, mod, mod, neg, not, notEqual, notEqual, notEqualStringIgnoreCase, notEqualStringIgnoreCase, notLike, notLike, notLike, notLike, notLike, notLike, nullif, nullif, nullLiteral, or, or, or, parameter, parameter, parameter, power, power, prod, prod, prod, quot, quot, quot, regex, round, selectCase, selectCase, sign, size, size, some, sqrt, startsWithString, startsWithStringIgnoreCase, substring, substring, substring, substring, sum, sum, sum, sum, sumAsDouble, sumAsLong, toBigDecimal, toBigInteger, toDouble, toFloat, toInteger, toLong, toString, treat, treat, treat, treat, treat, treat, treat, trim, trim, trim, trim, trim, trim, tuple, upper, values
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.persistence.criteria.CriteriaBuilder
abs, all, and, and, any, array, asc, avg, between, between, ceiling, coalesce, coalesce, coalesce, concat, concat, concat, conjunction, construct, count, countDistinct, currentDate, currentTime, currentTimestamp, desc, diff, diff, diff, disjunction, equal, equal, exists, exp, floor, function, ge, ge, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greatest, gt, gt, in, isEmpty, isFalse, isMember, isMember, isNotEmpty, isNotMember, isNotMember, isNotNull, isNull, isTrue, keys, le, le, least, length, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, like, like, like, like, like, like, literal, ln, localDate, localDateTime, localTime, locate, locate, locate, locate, lower, lt, lt, max, min, mod, mod, mod, neg, not, notEqual, notEqual, notLike, notLike, notLike, notLike, notLike, notLike, nullif, nullif, nullLiteral, or, or, parameter, parameter, power, power, prod, prod, prod, quot, quot, quot, round, selectCase, selectCase, sign, size, size, some, sqrt, substring, substring, substring, substring, sum, sum, sum, sum, sumAsDouble, sumAsLong, toBigDecimal, toBigInteger, toDouble, toFloat, toInteger, toLong, toString, treat, treat, treat, treat, treat, treat, treat, trim, trim, trim, trim, trim, trim, tuple, upper, values
Methods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCriteriaBuilder
and, arrayContains, containsString, containsStringIgnoreCase, endingWithString, endingWithStringIgnoreCase, equalStringIgnoreCase, equalStringIgnoreCase, ilike, ilike, isEmptyString, isNotEmptyString, notEqualStringIgnoreCase, notEqualStringIgnoreCase, or, regex, startsWithString, startsWithStringIgnoreCase
-
Constructor Details
-
SourcePersistentEntityCriteriaBuilderImpl
public SourcePersistentEntityCriteriaBuilderImpl(Function<io.micronaut.inject.ast.ClassElement, SourcePersistentEntity> entityResolver, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
-
-
Method Details
-
createQuery
- Specified by:
createQuery
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Specified by:
createQuery
in interfacePersistentEntityCriteriaBuilder
-
createQuery
- Specified by:
createQuery
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Specified by:
createQuery
in interfacePersistentEntityCriteriaBuilder
-
createTupleQuery
- Specified by:
createTupleQuery
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Specified by:
createTupleQuery
in interfacePersistentEntityCriteriaBuilder
-
createCriteriaDelete
- Specified by:
createCriteriaDelete
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Specified by:
createCriteriaDelete
in interfacePersistentEntityCriteriaBuilder
-
createCriteriaUpdate
- Specified by:
createCriteriaUpdate
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Specified by:
createCriteriaUpdate
in interfacePersistentEntityCriteriaBuilder
-
expression
public <T> jakarta.persistence.criteria.ParameterExpression<T> expression(PersistentProperty property, String expression) Description copied from interface:SourcePersistentEntityCriteriaBuilder
Create parameter expression fromParameterElement
.- Specified by:
expression
in interfaceSourcePersistentEntityCriteriaBuilder
- Type Parameters:
T
- The expression type- Parameters:
property
- The propertyexpression
- The expression- Returns:
- new parameter
-
parameter
public <T> jakarta.persistence.criteria.ParameterExpression<T> parameter(io.micronaut.inject.ast.ParameterElement parameterElement, PersistentPropertyPath propertyPath) Description copied from interface:SourcePersistentEntityCriteriaBuilder
Create parameter expression fromParameterElement
.- Specified by:
parameter
in interfaceSourcePersistentEntityCriteriaBuilder
- Type Parameters:
T
- The expression type- Parameters:
parameterElement
- The parameter elementpropertyPath
- The property path this parameter is representing- Returns:
- new parameter
-
entityPropertyParameter
public <T> jakarta.persistence.criteria.ParameterExpression<T> entityPropertyParameter(io.micronaut.inject.ast.ParameterElement entityParameter, PersistentPropertyPath propertyPath) Description copied from interface:SourcePersistentEntityCriteriaBuilder
Create parameter expression fromParameterElement
that is representing an entity instance.- Specified by:
entityPropertyParameter
in interfaceSourcePersistentEntityCriteriaBuilder
- Type Parameters:
T
- The expression type- Parameters:
entityParameter
- The entity parameter elementpropertyPath
- The property path this parameter is representing- Returns:
- new parameter
-