Class ParameterValueFactory
java.lang.Object
cz.cvut.kbss.jopa.query.parameter.ParameterValueFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns new parameter value specification.Returns new String parameter value specification.createUntyped
(Object value) Returns new untyped parameter value specification.createVariableValue
(Integer position) Returns a new variable parameter specification.createVariableValue
(String name) Returns a new variable parameter specification.
-
Constructor Details
-
ParameterValueFactory
-
-
Method Details
-
createVariableValue
Returns a new variable parameter specification.This is the default implementation, if a parameter is not set, a variable is used in the query to represent an unbound parameter.
- Parameters:
name
- Parameter (variable) name- Returns:
- Parameter value object
-
createVariableValue
Returns a new variable parameter specification.This is the default implementation, if a parameter is not set, a variable is used in the query to represent an unbound parameter.
- Parameters:
position
- Parameter (variable) position- Returns:
- Parameter value object
-
create
Returns new String parameter value specification.The language tag is optional.
- Parameters:
value
- The valuelanguage
- Language tag of the value, e.g. en, cz. Optional- Returns:
- Parameter value object
-
create
Returns new parameter value specification.- Parameters:
value
- The value- Returns:
- Parameter value object
-
createUntyped
Returns new untyped parameter value specification.- Parameters:
value
- The value- Returns:
- Parameter value object
-