public interface BigDecimalScaleHandler
BigDecimal scale| Modifier and Type | Method and Description |
|---|---|
void |
adjustScale(java.lang.Object object)
Adjusts the scale of all
BigDecimal fields of the given entity and any of its Embeddables |
java.math.BigDecimal |
adjustScale(java.lang.Object object,
java.lang.Object field,
java.math.BigDecimal value)
Returns an ajusted
BigDecimal according to the rule for the given object and field. |
int |
getScale(java.lang.Object object,
java.lang.Object field)
Returns the scale of a field by name of the given object, or -1 if not a valid field.
|
java.math.BigDecimal |
getWithAdjustedScale(java.lang.Object object,
java.lang.Object field)
Returns an ajusted
BigDecimal according to the rule for the given object and field, getting the field
value by reflection. |
void adjustScale(java.lang.Object object)
BigDecimal fields of the given entity and any of its Embeddablesjava.math.BigDecimal adjustScale(java.lang.Object object,
java.lang.Object field,
java.math.BigDecimal value)
BigDecimal according to the rule for the given object and field. The field may be a
String, a Property or a Path.int getScale(java.lang.Object object,
java.lang.Object field)
Property or a Path.java.math.BigDecimal getWithAdjustedScale(java.lang.Object object,
java.lang.Object field)
BigDecimal according to the rule for the given object and field, getting the field
value by reflection. The field may be a String, a Property or a Path.