|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.core.AsyncTransactionHandler
Field Summary | |
protected static int |
CANCELED
|
static int |
COMMIT_CANCELED
|
static int |
COMMIT_FAILED
|
static int |
COMMIT_SUCCEEDED
|
protected static int |
COMPLETED
|
protected static int |
FAILED
|
protected static int |
FINISHED
|
protected static int |
STARTED
|
Constructor Summary | |
AsyncTransactionHandler()
|
Method Summary | |
IDataTransaction.Job |
commit(IDataTransaction transaction)
|
static AsyncTransactionHandler |
create()
|
protected void |
doOnCommitCanceled()
Invoked when the commit execution has been successfully canceled. |
protected void |
doOnCommitCompleted()
Invoked when the commit execution has completed. |
protected void |
doOnCommitFailed()
Invoked when the commit execution has failed. |
protected void |
doOnCommitFinished()
Invoked when the commit execution has finished. |
protected void |
doOnCommitStarted()
Invoked when the commit execution starts. |
protected void |
performNotification(int type)
Invoked when one of the doOn-methods should be invoked. |
void |
setCallback(java.lang.Object callbackObject,
java.lang.String methodName)
Sets the method that should be invoked when the transaction has finished. |
static void |
setDefaultAsyncTransactionHandlerClass(java.lang.Class handlerClass)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int STARTED
protected static final int FINISHED
protected static final int COMPLETED
protected static final int CANCELED
protected static final int FAILED
public static final int COMMIT_SUCCEEDED
public static final int COMMIT_CANCELED
public static final int COMMIT_FAILED
Constructor Detail |
public AsyncTransactionHandler()
Method Detail |
public static void setDefaultAsyncTransactionHandlerClass(java.lang.Class handlerClass)
public static AsyncTransactionHandler create()
public void setCallback(java.lang.Object callbackObject, java.lang.String methodName)
public IDataTransaction.Job commit(IDataTransaction transaction)
protected void doOnCommitStarted()
protected void doOnCommitFinished()
protected void doOnCommitCompleted()
protected void doOnCommitCanceled()
protected void doOnCommitFailed()
protected void performNotification(int type)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |