Class GenericJDBCConfigurationStore
- java.lang.Object
-
- org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
-
- org.apache.qpid.server.store.jdbc.GenericJDBCConfigurationStore
-
- All Implemented Interfaces:
org.apache.qpid.server.store.DurableConfigurationStore,org.apache.qpid.server.store.MessageStoreProvider
public class GenericJDBCConfigurationStore extends AbstractJDBCConfigurationStore implements org.apache.qpid.server.store.MessageStoreProvider
Implementation of a DurableConfigurationStore backed by Generic JDBC Database that also provides a MessageStore.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
AbstractJDBCConfigurationStore.State
-
-
Constructor Summary
Constructors Constructor Description GenericJDBCConfigurationStore(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.io.InputStreamgetBlobAsInputStream(java.sql.ResultSet rs, int col)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()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)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, tableExists, 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 classAbstractJDBCConfigurationStore- 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
-
onDelete
public void onDelete(org.apache.qpid.server.model.ConfiguredObject<?> parent)
- Specified by:
onDeletein interfaceorg.apache.qpid.server.store.DurableConfigurationStore
-
getSqlBlobType
protected java.lang.String getSqlBlobType()
- Specified by:
getSqlBlobTypein classAbstractJDBCConfigurationStore
-
getSqlBlobStorage
protected java.lang.String getSqlBlobStorage(java.lang.String columnName)
- Specified by:
getSqlBlobStoragein classAbstractJDBCConfigurationStore
-
getSqlVarBinaryType
protected java.lang.String getSqlVarBinaryType(int size)
- Specified by:
getSqlVarBinaryTypein classAbstractJDBCConfigurationStore
-
getSqlBigIntType
public java.lang.String getSqlBigIntType()
- Specified by:
getSqlBigIntTypein classAbstractJDBCConfigurationStore
-
getBlobAsString
protected java.lang.String getBlobAsString(java.sql.ResultSet rs, int col) throws java.sql.SQLException- Specified by:
getBlobAsStringin classAbstractJDBCConfigurationStore- Throws:
java.sql.SQLException
-
getBlobAsInputStream
protected java.io.InputStream getBlobAsInputStream(java.sql.ResultSet rs, int col) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getLogger
protected org.slf4j.Logger getLogger()
- Specified by:
getLoggerin classAbstractJDBCConfigurationStore
-
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()
-
-