public class DataManager extends AbstractWebManager<DataWebService>
config| Constructor and Description | 
|---|
DataManager(Config config)  | 
| Modifier and Type | Method and Description | 
|---|---|
<B extends BackendObject>  | 
count(java.lang.Class<B> type)
Functin used to perform a count query against remote sever for specifed type. 
 | 
<B extends BackendObject>  | 
get(java.lang.Class<B> type,
   java.util.Collection<java.lang.String> objects)
Function used to return specific objects corrosponding to the object keys provided. 
 | 
protected java.lang.Class<DataWebService> | 
getType()  | 
<B extends BackendObject>  | 
query(java.lang.Class<B> type,
     Query query)
Function used to perform a remote query. 
 | 
<B extends BackendObject>  | 
send(java.util.Collection<B> objects)
Function used to save objects on remote server. 
 | 
addConnectionListener, addRequestInterceptor, addResponseObserver, getWebService, initAdapter@Inject public DataManager(Config config)
protected java.lang.Class<DataWebService> getType()
getType in class AbstractWebManager<DataWebService>public <B extends BackendObject> rx.Observable<java.lang.Void> send(java.util.Collection<B> objects)
B - Object type that extends BackendObject.objects - Collection of objects to be saved.public <B extends BackendObject> rx.Observable<java.util.Collection<B>> get(java.lang.Class<B> type, java.util.Collection<java.lang.String> objects)
B - Class type to be returned, extends BackendObject.type - Type of objects to be returned, if an object of a key provided does not match Type, it will not be returned.objects - Collection of keys you wish to return from remote server.public <B extends BackendObject> rx.Observable<java.util.Collection<B>> query(java.lang.Class<B> type, Query query)
B - Type of object extending BackendObject to be returned.type - Type of objects to be returned, Type must match that which was provided to the Query.query - Query to be executed.public <B extends BackendObject> rx.Observable<java.lang.Integer> count(java.lang.Class<B> type)
B - Type extending BackendObjecttype - Type to be counted.