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
FieldsFields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodelFields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType -
Constructor Summary
ConstructorsConstructorDescriptionParameterExpressionImpl(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 TypeMethodDescriptionbooleanvoidReturns 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.inthashCode()booleantoString()Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isCompoundExpression, isExpression, isJunction, isLiteral, isNotNull, isNull, isPredicate, isSubqueryMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNullMethods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Field Details
-
name
-
internalName
-
position
-
-
Constructor Details
-
ParameterExpressionImpl
-
ParameterExpressionImpl
-
ParameterExpressionImpl
-
-
Method Details
-
findRootAndParameters
- Specified by:
findRootAndParametersin interfaceInternalSelection- Overrides:
findRootAndParametersin 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:
getPositionin 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:
getParameterTypein 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:
isParameterin interfaceInternalExpression- Overrides:
isParameterin classExpressionImpl<T>
-
equals
-
toString
-