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

All Superinterfaces:
Field

public interface DateField
extends Field

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.

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

setValue

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

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

getSqlDate

public java.sql.Date getSqlDate()
Returns the value attribute of the DateField object as a java.sql.Date object.

Returns:
The value of the DateField object

getPairedTimeField

public TimeField getPairedTimeField()
Returns TimeField instance that is group with this DateField as defined in the group type FieldGroupType.T

Returns:
TimeField instance that is group with this DateField; else null is there is no available group information for this Field
See Also:
FieldGroupType


Copyright © 2005 SAP AG. All Rights Reserved.