Class MethodMatchSourcePersistentEntityCriteriaBuilderImpl
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.AbstractCriteriaBuilder
io.micronaut.data.processor.model.criteria.impl.MethodMatchSourcePersistentEntityCriteriaBuilderImpl
- All Implemented Interfaces:
PersistentEntityCriteriaBuilder
,SourcePersistentEntityCriteriaBuilder
,jakarta.persistence.criteria.CriteriaBuilder
@Internal
public final class MethodMatchSourcePersistentEntityCriteriaBuilderImpl
extends AbstractCriteriaBuilder
implements SourcePersistentEntityCriteriaBuilder
The internal source implementation of
SourcePersistentEntityCriteriaBuilder
that supports mapping method parameters.- 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
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncreateCriteriaDelete
(Class<T> targetEntity) createCriteriaUpdate
(Class<T> targetEntity) createQuery
(Class<T> resultClass) jakarta.persistence.criteria.ParameterExpression<Object>
entityPropertyParameter
(io.micronaut.inject.ast.ParameterElement entityParameter) Create parameter expression fromParameterElement
that is representing an entity instance.jakarta.persistence.criteria.ParameterExpression<Object>
expression
(PersistentProperty property, String expression) Create parameter expression fromParameterElement
.jakarta.persistence.criteria.ParameterExpression<Object>
parameter
(io.micronaut.inject.ast.ParameterElement parameterElement) 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, createTupleQuery, 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, ilikeString, 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, rlikeString, 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, createTupleQuery, endingWithString, endingWithStringIgnoreCase, equalStringIgnoreCase, equalStringIgnoreCase, ilikeString, isEmptyString, isNotEmptyString, notEqualStringIgnoreCase, notEqualStringIgnoreCase, or, regex, rlikeString, startsWithString, startsWithStringIgnoreCase
-
Constructor Details
-
MethodMatchSourcePersistentEntityCriteriaBuilderImpl
-
-
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
-
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 jakarta.persistence.criteria.ParameterExpression<Object> expression(PersistentProperty property, String expression) Description copied from interface:SourcePersistentEntityCriteriaBuilder
Create parameter expression fromParameterElement
.- Specified by:
expression
in interfaceSourcePersistentEntityCriteriaBuilder
- Parameters:
property
- The propertyexpression
- The expression- Returns:
- new parameter
-
parameter
public jakarta.persistence.criteria.ParameterExpression<Object> parameter(io.micronaut.inject.ast.ParameterElement parameterElement) Description copied from interface:SourcePersistentEntityCriteriaBuilder
Create parameter expression fromParameterElement
.- Specified by:
parameter
in interfaceSourcePersistentEntityCriteriaBuilder
- Parameters:
parameterElement
- The parameter element- Returns:
- new parameter
-
entityPropertyParameter
public jakarta.persistence.criteria.ParameterExpression<Object> entityPropertyParameter(io.micronaut.inject.ast.ParameterElement entityParameter) Description copied from interface:SourcePersistentEntityCriteriaBuilder
Create parameter expression fromParameterElement
that is representing an entity instance.- Specified by:
entityPropertyParameter
in interfaceSourcePersistentEntityCriteriaBuilder
- Parameters:
entityParameter
- The entity parameter element- Returns:
- new parameter
-