Package org.apache.cayenne.access.types
Class BigIntegerValueType
- java.lang.Object
-
- org.apache.cayenne.access.types.BigIntegerValueType
-
- All Implemented Interfaces:
ValueObjectType<BigInteger,Long>
public class BigIntegerValueType extends Object implements ValueObjectType<BigInteger,Long>
- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description BigIntegerValueType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongfromJavaObject(BigInteger object)Class<Long>getTargetType()Class<BigInteger>getValueType()StringtoCacheKey(BigInteger object)Returned value should be same for objects that is logically equal.BigIntegertoJavaObject(Long value)
-
-
-
Method Detail
-
getTargetType
public Class<Long> getTargetType()
- Specified by:
getTargetTypein interfaceValueObjectType<BigInteger,Long>- Returns:
- base type used to serialize V objects to.
-
getValueType
public Class<BigInteger> getValueType()
- Specified by:
getValueTypein interfaceValueObjectType<BigInteger,Long>- Returns:
- type of Objects described by this ValueObjectType.
-
toJavaObject
public BigInteger toJavaObject(Long value)
- Specified by:
toJavaObjectin interfaceValueObjectType<BigInteger,Long>- Parameters:
value- of type T- Returns:
- java object
-
fromJavaObject
public Long fromJavaObject(BigInteger object)
- Specified by:
fromJavaObjectin interfaceValueObjectType<BigInteger,Long>- Parameters:
object- java object- Returns:
- value of type T
-
toCacheKey
public String toCacheKey(BigInteger object)
Description copied from interface:ValueObjectTypeReturned value should be same for objects that is logically equal.- Specified by:
toCacheKeyin interfaceValueObjectType<BigInteger,Long>- Returns:
- String representation usable for cache.
-
-