Class ParameterExpressionImpl<T>
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<X>
-
- org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<T>
-
- org.eclipse.persistence.internal.jpa.querydef.ParameterExpressionImpl<T>
-
- All Implemented Interfaces:
jakarta.persistence.criteria.Expression<T>,jakarta.persistence.criteria.ParameterExpression<T>,jakarta.persistence.criteria.Selection<T>,jakarta.persistence.Parameter<T>,jakarta.persistence.TupleElement<T>,Serializable,InternalExpression,InternalSelection
public class ParameterExpressionImpl<T> extends ExpressionImpl<T> implements jakarta.persistence.criteria.ParameterExpression<T>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringinternalNameprotected Stringnameprotected Integerposition-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodel
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
-
Constructor Summary
Constructors Constructor Description ParameterExpressionImpl(jakarta.persistence.metamodel.Metamodel metamodel, Class<T> javaType)ParameterExpressionImpl(jakarta.persistence.metamodel.Metamodel metamodel, Class<T> javaType, Integer position)ParameterExpressionImpl(jakarta.persistence.metamodel.Metamodel metamodel, Class<T> javaType, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)voidfindRootAndParameters(CommonAbstractCriteriaImpl query)StringgetInternalName()Returns the name used by EclipseLink when a name has not been assigned by the user.StringgetName()Return the parameter name, or null if the parameter is not a named parameter.Class<T>getParameterType()Return the Java type of the parameter.IntegergetPosition()Return the parameter position, or null if the parameter is not a positional parameter.inthashCode()booleanisParameter()StringtoString()-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isCompoundExpression, isExpression, isJunction, isLiteral, isNotNull, isNull, isPredicate, isSubquery
-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
-
-
-
Method Detail
-
findRootAndParameters
public void findRootAndParameters(CommonAbstractCriteriaImpl query)
- Specified by:
findRootAndParametersin interfaceInternalSelection- Overrides:
findRootAndParametersin classExpressionImpl<T>
-
getName
public String getName()
Return the parameter name, or null if the parameter is not a named parameter.- Specified by:
getNamein interfacejakarta.persistence.Parameter<T>- Returns:
- parameter name
-
getInternalName
public String getInternalName()
Returns the name used by EclipseLink when a name has not been assigned by the user.- Returns:
-
getPosition
public Integer getPosition()
Return the parameter position, or null if the parameter is not a positional parameter.- Specified by:
getPositionin interfacejakarta.persistence.Parameter<T>- Returns:
- position of parameter
-
getParameterType
public Class<T> getParameterType()
Return the Java type of the parameter. Values bound to the parameter must be assignable to this type. This method is required to be supported for criteria queries only. Applications that use this method for Java Persistence query language queries and native queries will not be portable.- Specified by:
getParameterTypein interfacejakarta.persistence.Parameter<T>- Returns:
- the Java type of the parameter
- Throws:
IllegalStateException- if invoked on a parameter obtained from a Java persistence query language query or native query when the implementation does not support this use.
-
isParameter
public boolean isParameter()
- Specified by:
isParameterin interfaceInternalExpression- Overrides:
isParameterin classExpressionImpl<T>
-
-