|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DecimalField represents the static type of field with java.math.BigDecimal as the underlying data type.
To retrieve the DecimalField instance on a certain Row, the FieldDescriptor of this Field is used.
Example:
DecimalField decimalFieldPRICE = parentRow.getDecimalField(decimalFieldPRICE_FieldDesciptor);
BigDecimal value = decimalFieldPRICE.getBigDecimal();
value is the current value of the DecimalField object.
BigDecimal newValue = new BigDecimal("123456789");
decimalFieldPRICE.setValue(newValue);
//Setting of a new value to the field.
Field
Method Summary | |
java.math.BigDecimal |
getBigDecimal()
Returns the value attribute of the DecimalField object as a java.math.BigDecimal object. |
void |
setValue(java.math.BigDecimal fieldValue)
Deprecated. use Field.modifyValue(Object) instead for better performance. |
Methods inherited from interface com.sap.ip.me.api.smartsync.Field |
getFieldDescriptor, getGroupFields, getRow, getValue, modifyValue, setValue |
Method Detail |
public void setValue(java.math.BigDecimal fieldValue) throws ModificationNotAllowedException, PersistenceException
Field.modifyValue(Object)
instead for better performance.
fieldValue
- The new field value.
ModificationNotAllowedException
- thrown if the operation is not complying with the rules set in the metadata definition.
PersistenceException
- thrown if any persistent layer exception occurred during the retrievalpublic java.math.BigDecimal getBigDecimal()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |