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

All Superinterfaces:
Field

public interface CharacterField
extends Field

CharacterField represents the static type of field with java.lang.String as the underlying data type.

To retrieve the CharacterField instance on a certain Row, the FieldDescriptor of this Field is used.
Example:
CharacterField charFieldNAME = parentRow.getCharacterField(charFieldNAME_FieldDesciptor);
String value = charFieldNAME.getCharacters();
//value is the field value of the CharacterField object.
String newValue = "new value";
charFieldNAME.setValue(newValue);
//Setting of a new value to the field.

Since:
2.5
Version:
2.5
Author:
Sap
See Also:
Field

Method Summary
 java.lang.String getCharacters()
          Returns the value attribute of the CharacterField object as a String object.
 void setValue(java.lang.String 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.lang.String fieldValue)
              throws ModificationNotAllowedException,
                     PersistenceException
Deprecated. use Field.modifyValue(Object) instead for better performance.

Sets the value attribute of the CharacterField 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.

getCharacters

public java.lang.String getCharacters()
Returns the value attribute of the CharacterField object as a String object.

Returns:
The value of the CharacterField object.


Copyright © 2005 SAP AG. All Rights Reserved.