Class LocalDateValueType

java.lang.Object
org.apache.cayenne.access.types.LocalDateValueType
All Implemented Interfaces:
ValueObjectType<LocalDate, Date>

@Deprecated(since="5.0", forRemoval=true) public class LocalDateValueType extends Object implements ValueObjectType<LocalDate, Date>
Deprecated, for removal: This API element is subject to removal in a future version.
no longer registered by default. Replaced by LocalDateType, 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

    • LocalDateValueType

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

    • getTargetType

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

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

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

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

      public String toCacheKey(LocalDate 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<LocalDate, Date>
      Returns:
      String representation usable for cache.