public class BDBJSONStore extends AbstractJSONStore implements JSONStore
Constructor and Description |
---|
BDBJSONStore(String databasePath,
String databaseName,
com.sleepycat.je.EnvironmentConfig environmentConfig,
com.sleepycat.je.DatabaseConfig databaseConfig) |
Modifier and Type | Method and Description |
---|---|
void |
beginTransaction() |
static void |
cleanup(String databasePath) |
void |
close() |
void |
commitTransaction() |
void |
delete(String id) |
String |
getDatabaseName() |
String |
getDatabasePath() |
void |
init() |
com.google.gson.JsonObject |
load(String id) |
void |
rollbackTransaction() |
void |
save(String id,
com.google.gson.JsonObject jsonObject) |
boolean |
supportsTransactions() |
deleteFromArray, deleteFromObject, loadWithPrefix, saveToArray, saveToObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteFromArray, deleteFromObject, loadWithPrefix, saveToArray, saveToObject
public void init() throws IOException
init
in interface JSONStore
IOException
public com.google.gson.JsonObject load(String id) throws IOException
load
in interface JSONStore
IOException
public void save(String id, com.google.gson.JsonObject jsonObject) throws IOException
save
in interface JSONStore
IOException
public void delete(String id) throws IOException
delete
in interface JSONStore
IOException
public boolean supportsTransactions()
supportsTransactions
in interface JSONStore
supportsTransactions
in class AbstractJSONStore
public void beginTransaction()
beginTransaction
in interface JSONStore
beginTransaction
in class AbstractJSONStore
public void commitTransaction()
commitTransaction
in interface JSONStore
commitTransaction
in class AbstractJSONStore
public void rollbackTransaction()
rollbackTransaction
in interface JSONStore
rollbackTransaction
in class AbstractJSONStore
public String getDatabasePath()
public String getDatabaseName()
public static void cleanup(String databasePath)
Copyright © 2017. All rights reserved.