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 SummaryConstructorsConstructorDescriptionQueryParameter(Integer position, ParameterValueFactory valueFactory) QueryParameter(String name, ParameterValueFactory valueFactory) 
- 
Method SummaryModifier 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- 
getNameDescription copied from interface:ParameterReturn the parameter name, or null if the parameter is not a named parameter or no name has been assigned.
- 
getPositionDescription copied from interface:ParameterReturn the parameter position, or null if the parameter is not a positional parameter.- Specified by:
- getPositionin interface- Parameter<T>
- Returns:
- position of parameter
 
- 
getIdentifier
- 
getIdentifierAsQueryString
- 
getValue
- 
setProjectedpublic void setProjected(boolean projected) 
- 
isProjectedpublic boolean isProjected()
- 
setValue
- 
setValue
- 
setUntypedValue
- 
resetValuepublic void resetValue()
- 
getParameterTypeDescription 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 interface- Parameter<T>
- Returns:
- the Java type of the parameter
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-