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

All Superinterfaces:
SyncBoChange

Deprecated. avoid using SyncBoInDeltaObserver because it reduces performance of inbound processing.

public interface SyncBoInDelta
extends SyncBoChange

SyncBoInDelta is used to apply SyncBo delta data from backend to client. The SyncBoInDelta could may be a delta data from either the backend or other devices, or a response to the previously uploaded SyncBoOutDelta from the client, which can be distinguisehd by the SyncReply information included within the SyncBoInDelta.

SmartSync uses Notifier/Observer design pattern for applications to access inbox and outbox. By using the InboxNotifier with SyncBoInDeltaObserver, applications has a read-access to the SyncBoInDelta instance passed during the notification.

Example: To check if a error has occured.

  Class MySynBoInDelta implements SyncBoInDeltaObserver{
     // Return the SyncBo desc which the application should monitor
     public SyncBoDescriptor[] observeSyncBoTypes(){
        SyncBoDescriptor[] syncDescs = new SyncBoDescriptor[1];
        syncDescs[0]= syncBoDesc2Observe;
     }
     //Implement the action
     public SyncBoInDelta receivedSyncBoInDelta(SyncBoInDelta syncBoInDelta){
        if(syncBoInDelta.getSyncReply().getType()==SyncReplyType.ERROR){
             // error recovery
        }
     }
  }

  // Register the observer.
  SmartSyncRuntime.getInboxNotifier().registerSyncBoInDeltaObserver(MySynBoInDelta);
  

Version:
2.1
Author:
SAP
See Also:
SyncReply, InboxNotifier, SyncBoInDeltaObserver, SyncBoChange

Method Summary
 java.lang.String getPostStateId()
          Deprecated. Returns the postStateId attribute of the SyncBoInDelta.
 SyncReply getSyncReply()
          Deprecated. use SyncReplyObserver instead for better inbound handling performance.
 java.lang.String getTimeStamp()
          Deprecated. Gets the TimeStamp attribute.
 
Methods inherited from interface com.sap.ip.me.api.smartsync.SyncBoChange
getAction, getRowChanges, getSyncBoDescriptor, getSyncKey
 

Method Detail

getSyncReply

public SyncReply getSyncReply()
Deprecated. use SyncReplyObserver instead for better inbound handling performance.

Returns the SyncReply info of the SyncBoInDelta.

Returns:
the SyncReply info of the SyncBoInDelta.
See Also:
SyncReply

getTimeStamp

public java.lang.String getTimeStamp()
Deprecated. 
Gets the TimeStamp attribute. Note: The TimeStamp value is used for backend to detect delta data conflict among devices. Applications should not use the value.

Specified by:
getTimeStamp in interface SyncBoChange
Returns:
the postStateId attribute value of the SyncBoInDelta.

getPostStateId

public java.lang.String getPostStateId()
Deprecated. 
Returns the postStateId attribute of the SyncBoInDelta.
This attribute value is used for distinguishing the corresponding inbound message with that of the sent requests.

Returns:
the postStateId attribute of the SyncBoInDelta.


Copyright © 2005 SAP AG. All Rights Reserved.