
public abstract class AbstractJSONStore extends Object implements JSONStore
| Constructor and Description |
|---|
AbstractJSONStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction() |
void |
commitTransaction() |
void |
deleteFromArray(String id,
String key,
com.google.gson.JsonPrimitive jsonPrimitive) |
void |
deleteFromObject(String id,
String key) |
Map<String,com.google.gson.JsonObject> |
loadWithPrefix(String id) |
void |
rollbackTransaction() |
void |
saveToArray(String id,
String key,
com.google.gson.JsonPrimitive jsonPrimitive) |
void |
saveToObject(String id,
String key,
com.google.gson.JsonElement jsonElement) |
boolean |
supportsTransactions() |
public Map<String,com.google.gson.JsonObject> loadWithPrefix(String id) throws IOException
loadWithPrefix in interface JSONStoreIOExceptionpublic void saveToArray(String id, String key, com.google.gson.JsonPrimitive jsonPrimitive) throws IOException
saveToArray in interface JSONStoreIOExceptionpublic void saveToObject(String id, String key, com.google.gson.JsonElement jsonElement) throws IOException
saveToObject in interface JSONStoreIOExceptionpublic void deleteFromArray(String id, String key, com.google.gson.JsonPrimitive jsonPrimitive) throws IOException
deleteFromArray in interface JSONStoreIOExceptionpublic void deleteFromObject(String id, String key) throws IOException
deleteFromObject in interface JSONStoreIOExceptionpublic boolean supportsTransactions()
supportsTransactions in interface JSONStorepublic void beginTransaction()
beginTransaction in interface JSONStorepublic void commitTransaction()
commitTransaction in interface JSONStorepublic void rollbackTransaction()
rollbackTransaction in interface JSONStoreCopyright © 2017. All rights reserved.