Class DerbyConfigurationStore
- java.lang.Object
-
- org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
-
- org.apache.qpid.server.store.derby.DerbyConfigurationStore
-
- All Implemented Interfaces:
org.apache.qpid.server.store.DurableConfigurationStore,org.apache.qpid.server.store.MessageStoreProvider
public class DerbyConfigurationStore extends org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore implements org.apache.qpid.server.store.MessageStoreProvider, org.apache.qpid.server.store.DurableConfigurationStoreImplementation of a DurableConfigurationStore backed by Apache Derby that also provides a MessageStore.A
-
-
Constructor Summary
Constructors Constructor Description DerbyConfigurationStore(java.lang.Class<? extends org.apache.qpid.server.model.ConfiguredObject> rootClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseConfigurationStore()protected java.lang.StringgetBlobAsString(java.sql.ResultSet rs, int col)java.sql.ConnectiongetConnection()protected org.slf4j.LoggergetLogger()org.apache.qpid.server.store.MessageStoregetMessageStore()org.apache.qpid.server.store.preferences.PreferenceStoregetPreferenceStore()protected java.lang.StringgetSqlBigIntType()protected java.lang.StringgetSqlBlobStorage(java.lang.String columnName)protected java.lang.StringgetSqlBlobType()protected java.lang.StringgetSqlVarBinaryType(int size)voidinit(org.apache.qpid.server.model.ConfiguredObject<?> parent)voidonDelete(org.apache.qpid.server.model.ConfiguredObject<?> parent)protected booleantableExists(java.lang.String tableName, java.sql.Connection conn)voidupgradeStoreStructure()-
Methods inherited from class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
addDeleteAction, assertState, changeState, create, createOrOpenConfigurationStoreDatabase, doIfNotState, newAutoCommitConnection, newConnection, openConfigurationStore, reload, remove, removeDeleteAction, setState, setTableNamePrefix, update, upgradeIfNecessary
-
-
-
-
Method Detail
-
init
public void init(org.apache.qpid.server.model.ConfiguredObject<?> parent) throws org.apache.qpid.server.store.StoreException- Specified by:
initin interfaceorg.apache.qpid.server.store.DurableConfigurationStore- Throws:
org.apache.qpid.server.store.StoreException
-
upgradeStoreStructure
public void upgradeStoreStructure() throws org.apache.qpid.server.store.StoreException- Specified by:
upgradeStoreStructurein interfaceorg.apache.qpid.server.store.DurableConfigurationStore- Throws:
org.apache.qpid.server.store.StoreException
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException- Specified by:
getConnectionin classorg.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore- Throws:
java.sql.SQLException
-
closeConfigurationStore
public void closeConfigurationStore() throws org.apache.qpid.server.store.StoreException- Specified by:
closeConfigurationStorein interfaceorg.apache.qpid.server.store.DurableConfigurationStore- Throws:
org.apache.qpid.server.store.StoreException
-
getSqlBlobType
protected java.lang.String getSqlBlobType()
- Specified by:
getSqlBlobTypein classorg.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
-
getSqlBlobStorage
protected java.lang.String getSqlBlobStorage(java.lang.String columnName)
- Specified by:
getSqlBlobStoragein classorg.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
-
getSqlVarBinaryType
protected java.lang.String getSqlVarBinaryType(int size)
- Specified by:
getSqlVarBinaryTypein classorg.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
-
getSqlBigIntType
protected java.lang.String getSqlBigIntType()
- Specified by:
getSqlBigIntTypein classorg.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
-
getBlobAsString
protected java.lang.String getBlobAsString(java.sql.ResultSet rs, int col) throws java.sql.SQLException- Specified by:
getBlobAsStringin classorg.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore- Throws:
java.sql.SQLException
-
onDelete
public void onDelete(org.apache.qpid.server.model.ConfiguredObject<?> parent)
- Specified by:
onDeletein interfaceorg.apache.qpid.server.store.DurableConfigurationStore
-
getMessageStore
public org.apache.qpid.server.store.MessageStore getMessageStore()
- Specified by:
getMessageStorein interfaceorg.apache.qpid.server.store.MessageStoreProvider
-
getPreferenceStore
public org.apache.qpid.server.store.preferences.PreferenceStore getPreferenceStore()
-
tableExists
protected boolean tableExists(java.lang.String tableName, java.sql.Connection conn) throws java.sql.SQLException- Overrides:
tableExistsin classorg.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore- Throws:
java.sql.SQLException
-
getLogger
protected org.slf4j.Logger getLogger()
- Specified by:
getLoggerin classorg.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
-
-