Package org.apache.cayenne.access.types
Class CharacterValueType
java.lang.Object
org.apache.cayenne.access.types.CharacterValueType
- All Implemented Interfaces:
- ValueObjectType<Character,- String> 
This is char and Character type mapped to zero or one char String.
- Since:
- 4.1
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfromJavaObject(Character object) toCacheKey(Character object) Returned value should be same for objects that is logically equal.toJavaObject(String value) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cayenne.access.types.ValueObjectTypeequals
- 
Constructor Details- 
CharacterValueTypepublic CharacterValueType()
 
- 
- 
Method Details- 
getTargetType- Specified by:
- getTargetTypein interface- ValueObjectType<Character,- String> 
- Returns:
- base type used to serialize V objects to.
 
- 
getValueType- Specified by:
- getValueTypein interface- ValueObjectType<Character,- String> 
- Returns:
- type of Objects described by this ValueObjectType.
 
- 
toJavaObject- Specified by:
- toJavaObjectin interface- ValueObjectType<Character,- String> 
- Parameters:
- value- of type T
- Returns:
- java object
 
- 
fromJavaObject- Specified by:
- fromJavaObjectin interface- ValueObjectType<Character,- String> 
- Parameters:
- object- java object
- Returns:
- value of type T
 
- 
toCacheKeyDescription copied from interface:ValueObjectTypeReturned value should be same for objects that is logically equal.- Specified by:
- toCacheKeyin interface- ValueObjectType<Character,- String> 
- Returns:
- String representation usable for cache.
 
 
-