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 JSONStore
IOException
public void saveToArray(String id, String key, com.google.gson.JsonPrimitive jsonPrimitive) throws IOException
saveToArray
in interface JSONStore
IOException
public void saveToObject(String id, String key, com.google.gson.JsonElement jsonElement) throws IOException
saveToObject
in interface JSONStore
IOException
public void deleteFromArray(String id, String key, com.google.gson.JsonPrimitive jsonPrimitive) throws IOException
deleteFromArray
in interface JSONStore
IOException
public void deleteFromObject(String id, String key) throws IOException
deleteFromObject
in interface JSONStore
IOException
public boolean supportsTransactions()
supportsTransactions
in interface JSONStore
public void beginTransaction()
beginTransaction
in interface JSONStore
public void commitTransaction()
commitTransaction
in interface JSONStore
public void rollbackTransaction()
rollbackTransaction
in interface JSONStore
Copyright © 2017. All rights reserved.