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
Modifier and Type Method Description Long
fromJavaObject(BigInteger object)
Class<Long>
getTargetType()
Class<BigInteger>
getValueType()
String
toCacheKey(BigInteger object)
Returned value should be same for objects that is logically equal.BigInteger
toJavaObject(Long value)
-
Constructor Details
-
BigIntegerValueType
public BigIntegerValueType()
-
-
Method Details
-
getTargetType
- Specified by:
getTargetType
in interfaceValueObjectType<BigInteger,Long>
- Returns:
- base type used to serialize V objects to.
-
getValueType
- Specified by:
getValueType
in interfaceValueObjectType<BigInteger,Long>
- Returns:
- type of Objects described by this ValueObjectType.
-
toJavaObject
- Specified by:
toJavaObject
in interfaceValueObjectType<BigInteger,Long>
- Parameters:
value
- of type T- Returns:
- java object
-
fromJavaObject
- Specified by:
fromJavaObject
in interfaceValueObjectType<BigInteger,Long>
- Parameters:
object
- java object- Returns:
- value of type T
-
toCacheKey
Description copied from interface:ValueObjectType
Returned value should be same for objects that is logically equal.- Specified by:
toCacheKey
in interfaceValueObjectType<BigInteger,Long>
- Returns:
- String representation usable for cache.
-