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

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

public abstract class DatabaseRetrieveCallback<T>
extends Callback

Database retrieve operation callback. Use this callback to read objects from object stores.

Author:
Thiago da Rosa de Bustamante

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

DatabaseRetrieveCallback

public DatabaseRetrieveCallback()
Method Detail

onSuccess

public abstract void onSuccess(T result)
Called after a successfully read operation into the database (a get operation).

Type Parameters:
T - The type of the retrieved object.
Parameters:
result - the object retrieved


Copyright © 2014. All rights reserved.