
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, saveToObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteFromArray, deleteFromObject, loadWithPrefix, saveToArray, saveToObjectpublic void init()
throws IOException
init in interface JSONStoreIOExceptionpublic com.google.gson.JsonObject load(String id) throws IOException
load in interface JSONStoreIOExceptionpublic void save(String id, com.google.gson.JsonObject jsonObject) throws IOException
save in interface JSONStoreIOExceptionpublic void delete(String id) throws IOException
delete in interface JSONStoreIOExceptionpublic boolean supportsTransactions()
supportsTransactions in interface JSONStoresupportsTransactions in class AbstractJSONStorepublic void beginTransaction()
beginTransaction in interface JSONStorebeginTransaction in class AbstractJSONStorepublic void commitTransaction()
commitTransaction in interface JSONStorecommitTransaction in class AbstractJSONStorepublic void rollbackTransaction()
rollbackTransaction in interface JSONStorerollbackTransaction in class AbstractJSONStorepublic String getDatabasePath()
public String getDatabaseName()
public static void cleanup(String databasePath)
Copyright © 2017. All rights reserved.