|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
}
}
}
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 |
public java.lang.String getText()
public java.lang.String getMessageClass()
public SyncReplyType getType()
SyncReplyType
public int getNumber()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |