Class LocalTimeValueType

java.lang.Object
org.apache.cayenne.access.types.LocalTimeValueType
All Implemented Interfaces:
ValueObjectType<LocalTime, Time>

@Deprecated(since="5.0", forRemoval=true) public class LocalTimeValueType extends Object implements ValueObjectType<LocalTime, Time>
Deprecated, for removal: This API element is subject to removal in a future version.
no longer registered by default. Replaced by LocalTimeType, which reads and writes the value directly via JDBC without a java.sql intermediary and the JVM time zone conversion that comes with it.
Since:
4.0
  • Constructor Details

    • LocalTimeValueType

      public LocalTimeValueType()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getTargetType

      public Class<Time> getTargetType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getTargetType in interface ValueObjectType<LocalTime, Time>
      Returns:
      base type used to serialize V objects to.
    • getValueType

      public Class<LocalTime> getValueType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getValueType in interface ValueObjectType<LocalTime, Time>
      Returns:
      type of Objects described by this ValueObjectType.
    • toJavaObject

      public LocalTime toJavaObject(Time value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      toJavaObject in interface ValueObjectType<LocalTime, Time>
      Parameters:
      value - of type T
      Returns:
      java object
    • fromJavaObject

      public Time fromJavaObject(LocalTime object)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      fromJavaObject in interface ValueObjectType<LocalTime, Time>
      Parameters:
      object - java object
      Returns:
      value of type T
    • toCacheKey

      public String toCacheKey(LocalTime object)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ValueObjectType
      Returned value should be same for objects that is logically equal.
      Specified by:
      toCacheKey in interface ValueObjectType<LocalTime, Time>
      Returns:
      String representation usable for cache.