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


public interface SyncReply

SyncReply is constructed inside a SyncBoInDeltaData instance, and contains the backend handling status information towards the previous uploaded SyncBoOutDelta.

It is not necessary that a SyncBoInDeltaData must contain the SyncReply; the initial data does not have any SyncReply. However, it must have a SyncReply when the SyncBoInDeltaData is a response message to a previous uploaded SyncBoOutDeltaData. SyncReply contains information on the success of the initiated update by the client; whether the update was posted successfully in the backend. In case, it was not successful, SyncReply contains the information that an error or conflict occurred. In this situation, the SyncBoInDeltaData with the SyncReply instance is related to the orginal SyncBo included as the rollback information.

Example:
SyncReply is used check the error condition

  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
        }
     }
  }

  

Version:
2.1
Author:
SAP
See Also:
SyncBoInDelta

Method Summary
 java.lang.String getMessageClass()
          Returns the messageClass attribute of the SyncReply object
 int getNumber()
          Returns the number attribute of the SyncReply object
 java.lang.String getText()
          Returns the text attribute of the SyncReply object
 SyncReplyType getType()
          Returns the type attribute of the SyncReply object
 

Method Detail

getText

public java.lang.String getText()
Returns the text attribute of the SyncReply object

Returns:
the text attribute of the SyncReply object

getMessageClass

public java.lang.String getMessageClass()
Returns the messageClass attribute of the SyncReply object

Returns:
the messageClass attribute of the SyncReply object

getType

public SyncReplyType getType()
Returns the type attribute of the SyncReply object

Returns:
the SyncReplyType attribute of the SyncReply object
See Also:
SyncReplyType

getNumber

public int getNumber()
Returns the number attribute of the SyncReply object

Returns:
the number attribute of the SyncReply object


Copyright © 2005 SAP AG. All Rights Reserved.