Package org.apache.cayenne.access.types
Interface ValueObjectType<V,T>
-
- Type Parameters:
V- type of user's custom object.T- type that custom object will be serialized to/from should be backed by appropriateExtendedType.
- All Known Implementing Classes:
BigIntegerValueType,CharacterValueType,LocalDateTimeValueType,LocalDateValueType,LocalTimeValueType,UUIDValueType
public interface ValueObjectType<V,T>Descriptor and serialization helper for custom value objects that can be safely stored in the DB. Lightweight alternative for theExtendedType.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TfromJavaObject(V object)Class<T>getTargetType()Class<V>getValueType()StringtoCacheKey(V object)Returned value should be same for objects that is logically equal.VtoJavaObject(T value)
-