Class QueryParameter<T>

java.lang.Object
cz.cvut.kbss.jopa.query.QueryParameter<T>
All Implemented Interfaces:
Parameter<T>

public class QueryParameter<T> extends Object implements Parameter<T>
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: Parameter
      Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned.
      Specified by:
      getName in interface Parameter<T>
      Returns:
      parameter name
    • getPosition

      public Integer getPosition()
      Description copied from interface: Parameter
      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
    • getIdentifier

      public Object getIdentifier()
    • getIdentifierAsQueryString

      public String getIdentifierAsQueryString()
    • getValue

      public ParameterValue getValue()
    • setProjected

      public void setProjected(boolean projected)
    • isProjected

      public boolean isProjected()
    • setValue

      public void setValue(Object value)
    • setValue

      public void setValue(String value, String language)
    • setUntypedValue

      public void setUntypedValue(Object value)
    • resetValue

      public void resetValue()
    • getParameterType

      public Class<T> getParameterType()
      Description copied from interface: Parameter
      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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object