com.sybase.persistence
Interface CallbackHandler

All Known Implementing Classes:
DefaultCallbackHandler, RIMCallbackHandler

public interface CallbackHandler


Method Summary
 void onImport(java.lang.Object entity)
          This method will be invoked when an import message successfully applied to databases.
 void onLoginFailure()
          This method will be invoked when login failed.
 void onLoginSuccess()
          This method will be invoked when login succeeded.
 void onReplayFailure(java.lang.Object entity)
          This method will be invoked when a replay request failed.
 void onReplaySuccess(java.lang.Object entity)
          This method will be invoked when a replay request succeeded.
 void onResumeSubscriptionFailure()
          This method will be invoked when resume subscription failed.
 void onResumeSubscriptionSuccess()
          This method will be invoked when resume subscription succeeded
 void onSearchFailure(java.lang.Object entity)
          This method will be invoked when a backend search failed.
 void onSearchSuccess(java.lang.Object entity)
          This method will be invoked when a backend search succeeded.
 void onSubscribeFailure()
          This method will be invoked when subscribe succeeded.
 void onSubscribeSuccess()
          This method will be invoked when subscribe failed.
 void onSuspendSubscriptionFailure()
          This method will be invoked when subscription suspend failed.
 void onSuspendSubscriptionSuccess()
          This method will be invoked when subscription suspend failed succeeded.
 int onSynchronize(ObjectList groups, SynchronizationContext context)
          This method will be invoked at the specified status of the synchronization.
 void onSynchronizeFailure(ObjectList groups)
          This method will be invoked if the synchronization failed.
 void onSynchronizeSuccess(ObjectList groups)
          This method will be invoked if synchronization succeed.
 void onUnsubscribeFailure()
          This method will be invoked when unsubscribe failed.
 void onUnsubscribeSuccess()
          This method will be invoked when unsubscribe succeeded
 

Method Detail

onImport

void onImport(java.lang.Object entity)
This method will be invoked when an import message successfully applied to databases.

Parameters:
entity - The Mobile Business Object was just imported.

onLoginFailure

void onLoginFailure()
This method will be invoked when login failed.


onLoginSuccess

void onLoginSuccess()
This method will be invoked when login succeeded.


onReplayFailure

void onReplayFailure(java.lang.Object entity)
This method will be invoked when a replay request failed.

Parameters:
entity - The Mobile Business Object to replay.

onReplaySuccess

void onReplaySuccess(java.lang.Object entity)
This method will be invoked when a replay request succeeded.

Parameters:
entity - The Mobile Business Object to replay

onSearchFailure

void onSearchFailure(java.lang.Object entity)
This method will be invoked when a backend search failed.

Parameters:
entity - The backend search object

onSearchSuccess

void onSearchSuccess(java.lang.Object entity)
This method will be invoked when a backend search succeeded.

Parameters:
entity - The backend search object

onSubscribeFailure

void onSubscribeFailure()
This method will be invoked when subscribe succeeded.


onSubscribeSuccess

void onSubscribeSuccess()
This method will be invoked when subscribe failed.


onSynchronize

int onSynchronize(ObjectList groups,
                  SynchronizationContext context)
This method will be invoked at the specified status of the synchronization.

Parameters:
groups - A comma separated list of synchronization group names.
context - synchronization context.
Returns:

onSynchronizeFailure

void onSynchronizeFailure(ObjectList groups)
This method will be invoked if the synchronization failed.

Parameters:
groups - A comma separated list of synchronization group names.

onSynchronizeSuccess

void onSynchronizeSuccess(ObjectList groups)
This method will be invoked if synchronization succeed.

Parameters:
groups - A comma separated list of synchronization group names.

onSuspendSubscriptionFailure

void onSuspendSubscriptionFailure()
This method will be invoked when subscription suspend failed.


onSuspendSubscriptionSuccess

void onSuspendSubscriptionSuccess()
This method will be invoked when subscription suspend failed succeeded.


onResumeSubscriptionFailure

void onResumeSubscriptionFailure()
This method will be invoked when resume subscription failed.


onResumeSubscriptionSuccess

void onResumeSubscriptionSuccess()
This method will be invoked when resume subscription succeeded


onUnsubscribeFailure

void onUnsubscribeFailure()
This method will be invoked when unsubscribe failed.


onUnsubscribeSuccess

void onUnsubscribeSuccess()
This method will be invoked when unsubscribe succeeded