Class UUIDValueType

java.lang.Object
org.apache.cayenne.access.types.UUIDValueType
All Implemented Interfaces:
ValueObjectType<UUID,String>

@Deprecated(since="5.0", forRemoval=true) public class UUIDValueType extends Object implements ValueObjectType<UUID,String>
Deprecated, for removal: This API element is subject to removal in a future version.
no longer registered by default. Replaced by UUIDType, which stores the value in a binary column when the mapped JDBC type is binary, instead of always converting it to a 36-char string.
Since:
4.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    toCacheKey(UUID object)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returned value should be same for objects that is logically equal.
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ValueObjectType

    equals
  • Constructor Details

    • UUIDValueType

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

    • getTargetType

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

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

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

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

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