java.lang.Object | |
↳ | com.kinvey.android.offline.OfflineTable<T extends com.google.api.client.json.GenericJson> |
This class manages the necessary tables for offline to function associated with one specific AsyncAppData
collection.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | PREFIX_OFFLINE | ||||||||||
String | PREFIX_QUERY | ||||||||||
String | PREFIX_QUEUE | ||||||||||
String | PREFIX_RESULTS |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OfflineTable(String collection) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
KinveyDeleteResponse |
delete(DatabaseHandler handler, AbstractClient client, String id, AbstractKinveyOfflineClientRequest<T> req)
Flag an entity for deletion
| ||||||||||
void |
enqueueRequest(DatabaseHandler handler, String verb, OfflineRequestInfo.OfflineMetaData id, AbstractKinveyOfflineClientRequest<T> req)
enqueue a request for later execution
| ||||||||||
T[] | getAll(DatabaseHandler handler, AbstractClient client, Class<T> responseClass, AbstractKinveyOfflineClientRequest<T> req) | ||||||||||
T |
getEntity(DatabaseHandler handler, AbstractClient client, String id, Class<T> responseClass, AbstractKinveyOfflineClientRequest<T> req)
Retrive an entity from this offline table
| ||||||||||
List<OfflineResponseInfo> |
getHistoricalRequests(DatabaseHandler handler)
This method is deprecated.
removed, as table would grow infinitely
| ||||||||||
T[] |
getQuery(DatabaseHandler handler, AbstractClient client, String q, Class clazz, AbstractKinveyOfflineClientRequest<T> req)
Retrieve the results of a query from this offline table
| ||||||||||
T |
insertEntity(DatabaseHandler helper, AbstractClient client, GenericJson offlineEntity, AbstractKinveyOfflineClientRequest<T> req)
Insert an entity into this offline table
| ||||||||||
void | onCreate(DatabaseHandler handler) | ||||||||||
OfflineRequestInfo |
popSingleQueue(DatabaseHandler handler)
Pop a queued request and remove it from the queue
| ||||||||||
boolean |
removeEntity(DatabaseHandler handler, String IDtoRemove)
Remove an Entity from the entity table directly
| ||||||||||
void |
storeCompletedRequestInfo(OfflineHelper helper, String collectionName, boolean success, OfflineRequestInfo info, String returnValue)
This method is deprecated.
removed, as table would grow infinitely and currently not needed
| ||||||||||
void |
storeQueryResults(DatabaseHandler handler, String queryString, List<String> resultIds)
Store the results of a query
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Flag an entity for deletion
enqueue a request for later execution
Retrive an entity from this offline table
This method is deprecated.
removed, as table would grow infinitely
return a list of all historical offline requests@return
Retrieve the results of a query from this offline table
Insert an entity into this offline table
Pop a queued request and remove it from the queue
Remove an Entity from the entity table directly
This method is deprecated.
removed, as table would grow infinitely and currently not needed
store the results of a request executed in the background
Store the results of a query