Class BigIntegerValueType
java.lang.Object
org.apache.cayenne.access.types.BigIntegerValueType
- All Implemented Interfaces:
ValueObjectType<BigInteger, Long>
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromJavaObject(BigInteger object) toCacheKey(BigInteger object) Returned value should be same for objects that is logically equal.toJavaObject(Long value) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ValueObjectType
equalsModifier and TypeMethodDescriptiondefault booleanequals(BigInteger value1, BigInteger value2) Allows to use special logic to compare values for equality as in rare cases it is not suffice to use default equals() method.
-
Constructor Details
-
BigIntegerValueType
public BigIntegerValueType()
-
-
Method Details
-
getTargetType
- Specified by:
getTargetTypein interfaceValueObjectType<BigInteger, Long>- Returns:
- base type used to serialize V objects to.
-
getValueType
- Specified by:
getValueTypein interfaceValueObjectType<BigInteger, Long>- Returns:
- type of Objects described by this ValueObjectType.
-
toJavaObject
- Specified by:
toJavaObjectin interfaceValueObjectType<BigInteger, Long>- Parameters:
value- of type T- Returns:
- java object
-
fromJavaObject
- Specified by:
fromJavaObjectin interfaceValueObjectType<BigInteger, Long>- Parameters:
object- java object- Returns:
- value of type T
-
toCacheKey
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.
-