Package cz.cvut.kbss.jopa.query
Class QueryParameter<T>
java.lang.Object
cz.cvut.kbss.jopa.query.QueryParameter<T>
- All Implemented Interfaces:
Parameter<T>
-
Constructor Summary
ConstructorsConstructorDescriptionQueryParameter
(Integer position, ParameterValueFactory valueFactory) QueryParameter
(String name, ParameterValueFactory valueFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
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()
int
hashCode()
boolean
void
void
setProjected
(boolean projected) void
setUntypedValue
(Object value) void
void
toString()
-
Constructor Details
-
QueryParameter
-
QueryParameter
-
-
Method Details
-
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. -
getPosition
Description copied from interface:Parameter
Return the parameter position, or null if the parameter is not a positional parameter.- Specified by:
getPosition
in 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: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 interfaceParameter<T>
- Returns:
- the Java type of the parameter
-
toString
-
equals
-
hashCode
public int hashCode()
-