Class ParameterExpressionImpl<T>

All Implemented Interfaces:
Expression<T>, ParameterExpression<T>, Selection<T>, Parameter<T>, TupleElement<T>, Serializable, InternalExpression, InternalSelection

public class ParameterExpressionImpl<T> extends ExpressionImpl<T> implements ParameterExpression<T>
See Also:
  • Field Details

    • name

      protected String name
    • internalName

      protected String internalName
    • position

      protected Integer position
  • Constructor Details

    • ParameterExpressionImpl

      public ParameterExpressionImpl(Metamodel metamodel, Class<T> javaType, String name)
    • ParameterExpressionImpl

      public ParameterExpressionImpl(Metamodel metamodel, Class<T> javaType)
    • ParameterExpressionImpl

      public ParameterExpressionImpl(Metamodel metamodel, Class<T> javaType, Integer position)
  • Method Details

    • findRootAndParameters

      public void findRootAndParameters(CommonAbstractCriteriaImpl query)
      Specified by:
      findRootAndParameters in interface InternalSelection
      Overrides:
      findRootAndParameters in class ExpressionImpl<T>
    • getName

      public String getName()
      Return the parameter name, or null if the parameter is not a named parameter.
      Specified by:
      getName in interface 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.
    • getPosition

      public Integer getPosition()
      Return the parameter position, or null if the parameter is not a positional parameter.
      Specified by:
      getPosition in interface 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:
      getParameterType in interface 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.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isParameter

      public boolean isParameter()
      Specified by:
      isParameter in interface InternalExpression
      Overrides:
      isParameter in class ExpressionImpl<T>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object