
public interface JSONStore
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction() |
void |
close() |
void |
commitTransaction() |
void |
delete(String id) |
void |
deleteFromArray(String id,
String key,
com.google.gson.JsonPrimitive jsonPrimitive) |
void |
deleteFromObject(String id,
String key) |
void |
init() |
com.google.gson.JsonObject |
load(String id) |
Map<String,com.google.gson.JsonObject> |
loadWithPrefix(String id) |
void |
rollbackTransaction() |
void |
save(String id,
com.google.gson.JsonObject jsonObject) |
void |
saveToArray(String id,
String key,
com.google.gson.JsonPrimitive jsonPrimitive) |
void |
saveToObject(String id,
String key,
com.google.gson.JsonElement jsonElement) |
boolean |
supportsTransactions() |
void init() throws IOException
IOExceptionvoid close()
com.google.gson.JsonObject load(String id) throws IOException
IOExceptionMap<String,com.google.gson.JsonObject> loadWithPrefix(String id) throws IOException
IOExceptionvoid save(String id, com.google.gson.JsonObject jsonObject) throws IOException
IOExceptionvoid saveToArray(String id, String key, com.google.gson.JsonPrimitive jsonPrimitive) throws IOException
IOExceptionvoid saveToObject(String id, String key, com.google.gson.JsonElement jsonElement) throws IOException
IOExceptionvoid delete(String id) throws IOException
IOExceptionvoid deleteFromArray(String id, String key, com.google.gson.JsonPrimitive jsonPrimitive) throws IOException
IOExceptionvoid deleteFromObject(String id, String key) throws IOException
IOExceptionboolean supportsTransactions()
void beginTransaction()
void commitTransaction()
void rollbackTransaction()
Copyright © 2017. All rights reserved.