Class DurationParameterValue

java.lang.Object
cz.cvut.kbss.jopa.query.parameter.DurationParameterValue
All Implemented Interfaces:
ParameterValue

public class DurationParameterValue extends Object
Duration query parameter value representation.

Works for both Duration and Period, which are mapped to XSD duration.

  • Constructor Details

    • DurationParameterValue

      public DurationParameterValue(TemporalAmount value)
  • Method Details

    • getValue

      public Object getValue()
      Description copied from interface: ParameterValue
      Gets the value held by this wrapper.
      Returns:
      The parameter value
    • getQueryString

      public String getQueryString()
      Description copied from interface: ParameterValue
      Gets this parameter value as a string which can be inserted directly into a query.
      Returns:
      Value as query string
    • toString

      public String toString()
      Overrides:
      toString in class Object