org.cruxframework.crux.core.client.db
Class DatabaseWriteCallback<T>

java.lang.Object
  extended by org.cruxframework.crux.core.client.db.Callback
      extended by org.cruxframework.crux.core.client.db.DatabaseWriteCallback<T>
Type Parameters:
K - The type of the key returned to this callback.

public abstract class DatabaseWriteCallback<T>
extends Callback

Database write operation callback. Use this callback to retrieve the key from object writen into the stores.

Author:
Thiago da Rosa de Bustamante

Field Summary
 
Fields inherited from class org.cruxframework.crux.core.client.db.Callback
db
 
Constructor Summary
DatabaseWriteCallback()
           
 
Method Summary
abstract  void onSuccess(T result)
          Called after a successfully write operation into the database (an add or put operation).
 
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

DatabaseWriteCallback

public DatabaseWriteCallback()
Method Detail

onSuccess

public abstract void onSuccess(T result)
Called after a successfully write operation into the database (an add or put operation).

Type Parameters:
T - The type of the key assigned to the writen object.
Parameters:
result - the object to be written


Copyright © 2014. All rights reserved.