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
IOException
void close()
com.google.gson.JsonObject load(String id) throws IOException
IOException
Map<String,com.google.gson.JsonObject> loadWithPrefix(String id) throws IOException
IOException
void save(String id, com.google.gson.JsonObject jsonObject) throws IOException
IOException
void saveToArray(String id, String key, com.google.gson.JsonPrimitive jsonPrimitive) throws IOException
IOException
void saveToObject(String id, String key, com.google.gson.JsonElement jsonElement) throws IOException
IOException
void delete(String id) throws IOException
IOException
void deleteFromArray(String id, String key, com.google.gson.JsonPrimitive jsonPrimitive) throws IOException
IOException
void deleteFromObject(String id, String key) throws IOException
IOException
boolean supportsTransactions()
void beginTransaction()
void commitTransaction()
void rollbackTransaction()
Copyright © 2017. All rights reserved.