Module org.eclipse.persistence.jpa
Class ParameterExpressionImpl<T>
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<T>
org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<T>
org.eclipse.persistence.internal.jpa.querydef.ParameterExpressionImpl<T>
- All Implemented Interfaces:
Expression<T>
,ParameterExpression<T>
,Selection<T>
,Parameter<T>
,TupleElement<T>
,Serializable
,InternalExpression
,InternalSelection
- See Also:
-
Field Summary
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
ConstructorDescriptionParameterExpressionImpl
(Metamodel metamodel, Class<T> javaType) ParameterExpressionImpl
(Metamodel metamodel, Class<T> javaType, Integer position) ParameterExpressionImpl
(Metamodel metamodel, Class<T> javaType, String name) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Returns the name used by EclipseLink when a name has not been assigned by the user.getName()
Return the parameter name, or null if the parameter is not a named parameter.Return the Java type of the parameter.Return the parameter position, or null if the parameter is not a positional parameter.int
hashCode()
boolean
toString()
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
Methods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
Methods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Field Details
-
name
-
internalName
-
position
-
-
Constructor Details
-
ParameterExpressionImpl
-
ParameterExpressionImpl
-
ParameterExpressionImpl
-
-
Method Details
-
findRootAndParameters
- Specified by:
findRootAndParameters
in interfaceInternalSelection
- Overrides:
findRootAndParameters
in classExpressionImpl<T>
-
getName
Return the parameter name, or null if the parameter is not a named parameter. -
getInternalName
Returns the name used by EclipseLink when a name has not been assigned by the user. -
getPosition
Return the parameter position, or null if the parameter is not a positional parameter.- Specified by:
getPosition
in interfaceParameter<T>
- Returns:
- position of parameter
-
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:
getParameterType
in interfaceParameter<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.
-
hashCode
public int hashCode() -
isParameter
public boolean isParameter()- Specified by:
isParameter
in interfaceInternalExpression
- Overrides:
isParameter
in classExpressionImpl<T>
-
equals
-
toString
-