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

All Superinterfaces:
Field

public interface TimeField
extends Field

TimeField represents the static type of field with java.sql.Time as the underlying data type.

To retrieve the TimeField instance on a certain Row, the FieldDescriptor of this Field is used.
Example:
TimeField timeFieldDELIVERYTIME = parentRow.getTimeField(timeFieldDELIVERYTIME_FieldDesciptor);

java.sql.Time value = timeFieldDELIVERYTIME.getSqlTime(); value is the current value of the TimeField object. java.sql.Time newValue = java.sql.Time.valueOf("12:00:00"); timeFieldDELIVERYTIME.setValue(newValue); Setting of a new value to the field. Copyright: Copyright (c) 2002

Company: SAP AG

Since:
2.5
Version:
2.5
Author:
not attributable
See Also:
Field

Method Summary
 DateField getPairedDateField()
          Returns DateField instance that is grouped with this TimeField as defined in the group type T
 java.sql.Time getSqlTime()
          Gets the value attribute of the TimeField object in java.sql.Time data type
 void setValue(java.sql.Time 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.Time fieldValue)
              throws ModificationNotAllowedException,
                     PersistenceException
Deprecated. use Field.modifyValue(Object) instead for better performance.

Sets the value attribute of the TimeField object

Parameters:
fieldValue - The new value 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

getSqlTime

public java.sql.Time getSqlTime()
Gets the value attribute of the TimeField object in java.sql.Time data type

Returns:
The value with java.sql.Time as data type

getPairedDateField

public DateField getPairedDateField()
Returns DateField instance that is grouped with this TimeField as defined in the group type T

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


Copyright © 2005 SAP AG. All Rights Reserved.