com.sap.ip.me.api.smartsync
Interface DecimalField

All Superinterfaces:
Field

public interface DecimalField
extends Field

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.

Since:
2.5
Version:
2.5
Author:
not attributable
See Also:
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

setValue

public void setValue(java.math.BigDecimal fieldValue)
              throws ModificationNotAllowedException,
                     PersistenceException
Deprecated. use Field.modifyValue(Object) instead for better performance.

Sets the value attribute of the DecimalField object

Parameters:
fieldValue - The new field value.
Throws:
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 retrieval

getBigDecimal

public java.math.BigDecimal getBigDecimal()
Returns the value attribute of the DecimalField object as a java.math.BigDecimal object.

Returns:
The value of the DecimalField object


Copyright © 2005 SAP AG. All Rights Reserved.