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) |
void |
openConfigurationStore(ConfiguredObject<?> parent,
boolean overwrite,
ConfiguredObjectRecord... initialRecords) |
protected boolean |
tableExists(String tableName,
Connection conn) |
void |
upgradeStoreStructure() |
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
openConfigurationStore in interface DurableConfigurationStoreStoreExceptionpublic void upgradeStoreStructure()
throws StoreException
upgradeStoreStructure in interface DurableConfigurationStoreStoreExceptionprotected 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)
onDelete 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–2017 The Apache Software Foundation. All rights reserved.