Package org.apache.cayenne.access.types
Class BigDecimalValueType
java.lang.Object
org.apache.cayenne.access.types.BigDecimalValueType
- All Implemented Interfaces:
- ValueObjectType<BigDecimal,- BigDecimal> 
- Since:
- 4.2
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanequals(BigDecimal value1, BigDecimal value2) Allows to use special logic to compare values for equality as in rare cases it is not suffice to use default equals() method.fromJavaObject(BigDecimal object) toCacheKey(BigDecimal object) Returned value should be same for objects that is logically equal.toJavaObject(BigDecimal value) 
- 
Constructor Details- 
BigDecimalValueTypepublic BigDecimalValueType()
 
- 
- 
Method Details- 
getTargetType- Specified by:
- getTargetTypein interface- ValueObjectType<BigDecimal,- BigDecimal> 
- Returns:
- base type used to serialize V objects to.
 
- 
getValueType- Specified by:
- getValueTypein interface- ValueObjectType<BigDecimal,- BigDecimal> 
- Returns:
- type of Objects described by this ValueObjectType.
 
- 
toJavaObject- Specified by:
- toJavaObjectin interface- ValueObjectType<BigDecimal,- BigDecimal> 
- Parameters:
- value- of type T
- Returns:
- java object
 
- 
fromJavaObject- Specified by:
- fromJavaObjectin interface- ValueObjectType<BigDecimal,- BigDecimal> 
- 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<BigDecimal,- BigDecimal> 
- Returns:
- String representation usable for cache.
 
- 
equalsDescription copied from interface:ValueObjectTypeAllows to use special logic to compare values for equality as in rare cases it is not suffice to use default equals() method. Default implementation usesObjects.equals(Object, Object)method.- Specified by:
- equalsin interface- ValueObjectType<BigDecimal,- BigDecimal> 
- Parameters:
- value1- to compare
- value2- to compare
- Returns:
- true if given values are equal
 
 
-