Class 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.DurableConfigurationStore
    Implementation of a DurableConfigurationStore backed by Apache Derby that also provides a MessageStore.A
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore

        org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore.State
    • 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
      void closeConfigurationStore()  
      protected java.lang.String getBlobAsString​(java.sql.ResultSet rs, int col)  
      java.sql.Connection getConnection()  
      protected org.slf4j.Logger getLogger()  
      org.apache.qpid.server.store.MessageStore getMessageStore()  
      org.apache.qpid.server.store.preferences.PreferenceStore getPreferenceStore()  
      protected java.lang.String getSqlBigIntType()  
      protected java.lang.String getSqlBlobStorage​(java.lang.String columnName)  
      protected java.lang.String getSqlBlobType()  
      protected java.lang.String getSqlVarBinaryType​(int size)  
      void init​(org.apache.qpid.server.model.ConfiguredObject<?> parent)  
      void onDelete​(org.apache.qpid.server.model.ConfiguredObject<?> parent)  
      protected boolean tableExists​(java.lang.String tableName, java.sql.Connection conn)  
      void upgradeStoreStructure()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.qpid.server.store.DurableConfigurationStore

        create, openConfigurationStore, reload, remove, update
    • Constructor Detail

      • DerbyConfigurationStore

        public DerbyConfigurationStore​(java.lang.Class<? extends org.apache.qpid.server.model.ConfiguredObject> rootClass)
    • Method Detail

      • init

        public void init​(org.apache.qpid.server.model.ConfiguredObject<?> parent)
                  throws org.apache.qpid.server.store.StoreException
        Specified by:
        init in interface org.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:
        upgradeStoreStructure in interface org.apache.qpid.server.store.DurableConfigurationStore
        Throws:
        org.apache.qpid.server.store.StoreException
      • getConnection

        public java.sql.Connection getConnection()
                                          throws java.sql.SQLException
        Specified by:
        getConnection in class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
        Throws:
        java.sql.SQLException
      • closeConfigurationStore

        public void closeConfigurationStore()
                                     throws org.apache.qpid.server.store.StoreException
        Specified by:
        closeConfigurationStore in interface org.apache.qpid.server.store.DurableConfigurationStore
        Throws:
        org.apache.qpid.server.store.StoreException
      • getSqlBlobType

        protected java.lang.String getSqlBlobType()
        Specified by:
        getSqlBlobType in class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
      • getSqlBlobStorage

        protected java.lang.String getSqlBlobStorage​(java.lang.String columnName)
        Specified by:
        getSqlBlobStorage in class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
      • getSqlVarBinaryType

        protected java.lang.String getSqlVarBinaryType​(int size)
        Specified by:
        getSqlVarBinaryType in class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
      • getSqlBigIntType

        protected java.lang.String getSqlBigIntType()
        Specified by:
        getSqlBigIntType in class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
      • getBlobAsString

        protected java.lang.String getBlobAsString​(java.sql.ResultSet rs,
                                                   int col)
                                            throws java.sql.SQLException
        Specified by:
        getBlobAsString in class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
        Throws:
        java.sql.SQLException
      • onDelete

        public void onDelete​(org.apache.qpid.server.model.ConfiguredObject<?> parent)
        Specified by:
        onDelete in interface org.apache.qpid.server.store.DurableConfigurationStore
      • getMessageStore

        public org.apache.qpid.server.store.MessageStore getMessageStore()
        Specified by:
        getMessageStore in interface org.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:
        tableExists in class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore
        Throws:
        java.sql.SQLException
      • getLogger

        protected org.slf4j.Logger getLogger()
        Specified by:
        getLogger in class org.apache.qpid.server.store.jdbc.AbstractJDBCConfigurationStore