public class DerbyConfigurationStore extends AbstractJDBCConfigurationStore implements MessageStoreProvider, DurableConfigurationStore
CONFIGURATION_STORE_TABLE_NAMES| Constructor and Description |
|---|
DerbyConfigurationStore(Class<? extends ConfiguredObject> rootClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkConfigurationStoreOpen() |
void |
closeConfigurationStore() |
protected String |
getBlobAsString(ResultSet rs,
int col) |
protected Connection |
getConnection() |
protected org.slf4j.Logger |
getLogger() |
MessageStore |
getMessageStore() |
protected String |
getSqlBigIntType() |
protected String |
getSqlBlobType() |
protected String |
getSqlVarBinaryType(int size) |
void |
onDelete(ConfiguredObject<?> parent)
Deletes the configuration store from its underlying storage.
|
void |
openConfigurationStore(ConfiguredObject<?> parent,
boolean overwrite,
ConfiguredObjectRecord... initialRecords)
Initializes and opens the configuration store.
|
protected boolean |
tableExists(String tableName,
Connection conn) |
void |
upgradeStoreStructure()
Requests that the store performs any upgrade work on the store's structure.
|
create, createOrOpenConfigurationStoreDatabase, hasNoConfigurationEntries, newAutoCommitConnection, newConnection, remove, update, upgradeIfNecessary, visitConfiguredObjectRecordsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, remove, update, visitConfiguredObjectRecordspublic DerbyConfigurationStore(Class<? extends ConfiguredObject> rootClass)
public void openConfigurationStore(ConfiguredObject<?> parent, boolean overwrite, ConfiguredObjectRecord... initialRecords) throws StoreException
DurableConfigurationStoreopenConfigurationStore in interface DurableConfigurationStoreStoreExceptionpublic void upgradeStoreStructure()
throws StoreException
DurableConfigurationStoreupgradeStoreStructure in interface DurableConfigurationStoreStoreException - signals that a problem was encountered trying to upgrade the store.
Implementations, on encountering a problem, should endeavour to leave the store in its
original state.protected Connection getConnection() throws SQLException
getConnection in class AbstractJDBCConfigurationStoreSQLExceptionpublic void closeConfigurationStore()
throws StoreException
closeConfigurationStore in interface DurableConfigurationStoreStoreExceptionprotected String getSqlBlobType()
getSqlBlobType in class AbstractJDBCConfigurationStoreprotected String getSqlVarBinaryType(int size)
getSqlVarBinaryType in class AbstractJDBCConfigurationStoreprotected String getSqlBigIntType()
getSqlBigIntType in class AbstractJDBCConfigurationStoreprotected String getBlobAsString(ResultSet rs, int col) throws SQLException
getBlobAsString in class AbstractJDBCConfigurationStoreSQLExceptionpublic void onDelete(ConfiguredObject<?> parent)
DurableConfigurationStoreonDelete in interface DurableConfigurationStoreonDelete in class AbstractJDBCConfigurationStorepublic MessageStore getMessageStore()
getMessageStore in interface MessageStoreProviderprotected boolean tableExists(String tableName, Connection conn) throws SQLException
tableExists in class AbstractJDBCConfigurationStoreSQLExceptionprotected void checkConfigurationStoreOpen()
checkConfigurationStoreOpen in class AbstractJDBCConfigurationStoreprotected org.slf4j.Logger getLogger()
getLogger in class AbstractJDBCConfigurationStoreCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.