Class SourceParameterExpressionImpl
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.expression.AbstractExpression<T>
io.micronaut.data.model.jpa.criteria.impl.IParameterExpression<Object>
io.micronaut.data.processor.model.criteria.impl.SourceParameterExpressionImpl
- All Implemented Interfaces:
IExpression<Object>
,ISelection<Object>
,BindingParameter
,jakarta.persistence.criteria.Expression<Object>
,jakarta.persistence.criteria.ParameterExpression<Object>
,jakarta.persistence.criteria.Selection<Object>
,jakarta.persistence.Parameter<Object>
,jakarta.persistence.TupleElement<Object>
@Internal
public final class SourceParameterExpressionImpl
extends IParameterExpression<Object>
implements BindingParameter
The internal source implementation of
IParameterExpression
.- Since:
- 3.2
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.data.model.query.BindingParameter
BindingParameter.BindingContext
-
Constructor Summary
ConstructorDescriptionSourceParameterExpressionImpl
(Map<String, DataType> dataTypes, io.micronaut.inject.ast.ParameterElement[] parameters, io.micronaut.inject.ast.ParameterElement parameterElement, boolean isEntityParameter, PersistentPropertyPath parameterPropertyPath) SourceParameterExpressionImpl
(Map<String, DataType> dataTypes, String name, io.micronaut.inject.ast.ClassElement expressionType, PersistentPropertyPath parameterPropertyPath) -
Method Summary
Modifier and TypeMethodDescriptionbind
(BindingParameter.BindingContext bindingContext) Bind the parameter.static io.micronaut.inject.ast.ClassElement
getSourceExpressionType
(io.micronaut.inject.ast.ClassElement expressionType, io.micronaut.inject.ast.ParameterElement parameterElement, PersistentPropertyPath parameterPropertyPath) void
setUpdate
(boolean update) Methods inherited from class io.micronaut.data.model.jpa.criteria.impl.IParameterExpression
getName, getPosition, toString, visitExpression
Methods inherited from class io.micronaut.data.model.jpa.criteria.impl.expression.AbstractExpression
getExpressionType, getJavaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.micronaut.data.model.jpa.criteria.IExpression
as, getExpressionType, getJavaType, in, in, in, in, isNotNull, isNull, visitSelection
Methods inherited from interface io.micronaut.data.model.jpa.criteria.ISelection
alias, getAlias, getCompoundSelectionItems, isCompoundSelection
-
Constructor Details
-
SourceParameterExpressionImpl
public SourceParameterExpressionImpl(Map<String, DataType> dataTypes, io.micronaut.inject.ast.ParameterElement[] parameters, io.micronaut.inject.ast.ParameterElement parameterElement, boolean isEntityParameter, PersistentPropertyPath parameterPropertyPath) -
SourceParameterExpressionImpl
public SourceParameterExpressionImpl(Map<String, DataType> dataTypes, String name, io.micronaut.inject.ast.ClassElement expressionType, PersistentPropertyPath parameterPropertyPath)
-
-
Method Details
-
getSourceExpressionType
public static io.micronaut.inject.ast.ClassElement getSourceExpressionType(io.micronaut.inject.ast.ClassElement expressionType, io.micronaut.inject.ast.ParameterElement parameterElement, PersistentPropertyPath parameterPropertyPath) -
getParameterType
- Specified by:
getParameterType
in interfacejakarta.persistence.Parameter<Object>
- Overrides:
getParameterType
in classIParameterExpression<Object>
-
setUpdate
public void setUpdate(boolean update) -
bind
Description copied from interface:BindingParameter
Bind the parameter.- Specified by:
bind
in interfaceBindingParameter
- Parameters:
bindingContext
- The binding context- Returns:
- The query binding
-