org.cruxframework.crux.core.client.db
Class Transaction.TransactionCallback

java.lang.Object
  extended by org.cruxframework.crux.core.client.db.Callback
      extended by org.cruxframework.crux.core.client.db.Transaction.TransactionCallback
Enclosing class:
Transaction

public abstract static class Transaction.TransactionCallback
extends Callback

A callback to monitor the current transaction state changes.

Author:
Thiago da Rosa de Bustamante

Field Summary
 
Fields inherited from class org.cruxframework.crux.core.client.db.Callback
db
 
Constructor Summary
Transaction.TransactionCallback()
           
 
Method Summary
 void onAbort()
          Called if the transaction is aborted before completion (rolled back).
abstract  void onComplete()
          Called when the transaction completes with success.
 
Methods inherited from class org.cruxframework.crux.core.client.db.Callback
onError, setDb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transaction.TransactionCallback

public Transaction.TransactionCallback()
Method Detail

onComplete

public abstract void onComplete()
Called when the transaction completes with success.


onAbort

public void onAbort()
Called if the transaction is aborted before completion (rolled back).



Copyright © 2014. All rights reserved.