Class ParameterValueFactory

java.lang.Object
cz.cvut.kbss.jopa.query.parameter.ParameterValueFactory

public class ParameterValueFactory extends Object
  • Constructor Details

    • ParameterValueFactory

      public ParameterValueFactory(MetamodelProvider metamodelProvider)
  • Method Details

    • createVariableValue

      public ParameterValue createVariableValue(String name)
      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

      public ParameterValue createVariableValue(Integer position)
      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

      public ParameterValue create(String value, String language)
      Returns new String parameter value specification.

      The language tag is optional.

      Parameters:
      value - The value
      language - Language tag of the value, e.g. en, cz. Optional
      Returns:
      Parameter value object
    • create

      public ParameterValue create(Object value)
      Returns new parameter value specification.
      Parameters:
      value - The value
      Returns:
      Parameter value object
    • createUntyped

      public ParameterValue createUntyped(Object value)
      Returns new untyped parameter value specification.
      Parameters:
      value - The value
      Returns:
      Parameter value object