Package cz.cvut.kbss.jopa.query
Class QueryParameter<T>
java.lang.Object
cz.cvut.kbss.jopa.query.QueryParameter<T>
- All Implemented Interfaces:
Parameter<T>
- Direct Known Subclasses:
TokenQueryParameter
-
Constructor Summary
ConstructorsConstructorDescriptionQueryParameter(Integer position, ParameterValueFactory valueFactory) QueryParameter(String name, ParameterValueFactory valueFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned.Return the Java type of the parameter.Return the parameter position, or null if the parameter is not a positional parameter.getValue()inthashCode()booleanvoidvoidsetProjected(boolean projected) voidsetUntypedValue(Object value) voidvoidtoString()
-
Constructor Details
-
QueryParameter
-
QueryParameter
-
-
Method Details
-
getName
Description copied from interface:ParameterReturn the parameter name, or null if the parameter is not a named parameter or no name has been assigned. -
getPosition
Description copied from interface:ParameterReturn the parameter position, or null if the parameter is not a positional parameter.- Specified by:
getPositionin interfaceParameter<T>- Returns:
- position of parameter
-
getIdentifier
-
getIdentifierAsQueryString
-
getValue
-
setProjected
public void setProjected(boolean projected) -
isProjected
public boolean isProjected() -
setValue
-
setValue
-
setUntypedValue
-
resetValue
public void resetValue() -
getParameterType
Description copied from interface:ParameterReturn 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
-
toString
-
equals
-
hashCode
public int hashCode()
-