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

All Known Subinterfaces:
RowOutDelta

Deprecated. avoid using SyncBoOutDeltaObserver because it reduces performance of outbound processing.

public interface RowChange

RowChange represents changed row - RowDelta. It is retrieved from either SyncBoInDelta or SyncBoOutDelta as a RowChange Iterator.

SyncBoDelta and RowDelta represent modification information on SyncBO and Row basis. If a SyncBO has been changed, this might include multiple row changes. Thus, an SyncBoDelta instance may have multiple RowDelta instances and provide access to those. If a Row has been changed, the belonging SyncBO is always sent together with the Row modification information. Thus, Row modification operation never comes alone. SyncBoInDelta and RowInDelta instances both contain following information: - Primary key of the entity being subject to modification (SyncKey) - delta action (insert / modify / delete / replace).

Example: When delta is the SyncBoOutDelta.


   MeIterator it = delta.getRowChanges();
   //All the changed rows are contained in the iterator.
   while (it.hasNext()) {
         RowChange row = (RowChange) it.next();
         MeIterator fdIt = row.getChangedFieldValues();
         //All changed fields are contained in the iterator
         RowChangeActionType actionType = row.getAction();
         //actionType represents the action on the row.
         //e.g actionType will have the value RowChangeActionType.MODIFY if the row was modified.
         ........................
         ........................
   }
  
This code snippet will also work similarly for SyncBoInDelta since both impelement the SyncBoChange interface.

Version:
2.1
Author:
SAP
See Also:
SyncBoInDelta, SyncBoOutDelta

Method Summary
 RowChangeActionType getAction()
          Deprecated. Gets the rowAction attribute of the RowInDelta object
 MeIterator getChangedFieldValues()
          Deprecated. Gets the changedFieldValues attribute of the RowChange object.
 RowDescriptor getRowDescriptor()
          Deprecated. Gets the rowDescriptor attribute of the RowInDelta object
 java.lang.Object getSyncKey()
          Deprecated. Gets the syncKey attribute of the RowChange object
 

Method Detail

getAction

public RowChangeActionType getAction()
Deprecated. 
Gets the rowAction attribute of the RowInDelta object

Returns:
The rowAction value
See Also:
RowChangeActionType

getSyncKey

public java.lang.Object getSyncKey()
Deprecated. 
Gets the syncKey attribute of the RowChange object

Returns:
The syncKey value

getChangedFieldValues

public MeIterator getChangedFieldValues()
Deprecated. 
Gets the changedFieldValues attribute of the RowChange object. It returns a field value iterator of all field values of the row. The order of field value iterator is compliant to the corresponding order of RowDescriptor that is defined in xml meta

Returns:
The iterator of changedFieldValues value

getRowDescriptor

public RowDescriptor getRowDescriptor()
Deprecated. 
Gets the rowDescriptor attribute of the RowInDelta object

Returns:
The rowDescriptor value


Copyright © 2005 SAP AG. All Rights Reserved.