|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DateField represents the static type of field with java.sql.Date as the underlying data type.
To retrieve the DateField instance on a certain Row, the FieldDescriptor of this Field is used.
Example:
DateField dateFieldDELIVERYDATE = parentRow.getDateField(dateFieldDELIVERYDATE_FieldDesciptor);
java.sql.Date value = dateFieldDELIVERYDATE.getSqlDate();
//value is the field value of the DateField object.
Date newDate = Date.valueOf("2003-10-31");
dateFieldDELIVERYDATE.setValue(newDate);
//Setting of a new value to the field.
Field
Method Summary | |
TimeField |
getPairedTimeField()
Returns TimeField instance that is group with this DateField as defined in the group type FieldGroupType.T |
java.sql.Date |
getSqlDate()
Returns the value attribute of the DateField object as a java.sql.Date object. |
void |
setValue(java.sql.Date 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.sql.Date 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 retrieval.public java.sql.Date getSqlDate()
public TimeField getPairedTimeField()
FieldGroupType
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |