Class AbstractJDBCPreferenceStore

  • All Implemented Interfaces:
    org.apache.qpid.server.store.preferences.PreferenceStore

    public abstract class AbstractJDBCPreferenceStore
    extends java.lang.Object
    implements org.apache.qpid.server.store.preferences.PreferenceStore
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected abstract void doClose()  
      protected abstract void doDelete()  
      protected void dropTables​(java.sql.Connection connection)  
      protected abstract java.lang.String getBlobAsString​(java.sql.ResultSet rs, int col)  
      protected abstract java.sql.Connection getConnection()  
      protected abstract org.slf4j.Logger getLogger()  
      protected org.apache.qpid.server.model.ModelVersion getPreferencesVersion​(java.sql.Connection conn)  
      protected abstract java.lang.String getSqlBlobType()  
      void onDelete()  
      java.util.Collection<org.apache.qpid.server.store.preferences.PreferenceRecord> openAndLoad​(org.apache.qpid.server.store.preferences.PreferenceStoreUpdater updater)  
      void replace​(java.util.Collection<java.util.UUID> preferenceRecordsToRemove, java.util.Collection<org.apache.qpid.server.store.preferences.PreferenceRecord> preferenceRecordsToAdd)  
      protected void setTableNamePrefix​(java.lang.String tableNamePrefix)  
      void updateOrCreate​(java.util.Collection<org.apache.qpid.server.store.preferences.PreferenceRecord> preferenceRecords)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractJDBCPreferenceStore

        public AbstractJDBCPreferenceStore()
    • Method Detail

      • setTableNamePrefix

        protected void setTableNamePrefix​(java.lang.String tableNamePrefix)
      • openAndLoad

        public java.util.Collection<org.apache.qpid.server.store.preferences.PreferenceRecord> openAndLoad​(org.apache.qpid.server.store.preferences.PreferenceStoreUpdater updater)
                                                                                                    throws org.apache.qpid.server.store.StoreException
        Specified by:
        openAndLoad in interface org.apache.qpid.server.store.preferences.PreferenceStore
        Throws:
        org.apache.qpid.server.store.StoreException
      • updateOrCreate

        public void updateOrCreate​(java.util.Collection<org.apache.qpid.server.store.preferences.PreferenceRecord> preferenceRecords)
        Specified by:
        updateOrCreate in interface org.apache.qpid.server.store.preferences.PreferenceStore
      • replace

        public void replace​(java.util.Collection<java.util.UUID> preferenceRecordsToRemove,
                            java.util.Collection<org.apache.qpid.server.store.preferences.PreferenceRecord> preferenceRecordsToAdd)
        Specified by:
        replace in interface org.apache.qpid.server.store.preferences.PreferenceStore
      • onDelete

        public void onDelete()
        Specified by:
        onDelete in interface org.apache.qpid.server.store.preferences.PreferenceStore
      • close

        public void close()
        Specified by:
        close in interface org.apache.qpid.server.store.preferences.PreferenceStore
      • dropTables

        protected void dropTables​(java.sql.Connection connection)
                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • doDelete

        protected abstract void doDelete()
      • doClose

        protected abstract void doClose()
      • getLogger

        protected abstract org.slf4j.Logger getLogger()
      • getConnection

        protected abstract java.sql.Connection getConnection()
                                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSqlBlobType

        protected abstract java.lang.String getSqlBlobType()
      • getBlobAsString

        protected abstract java.lang.String getBlobAsString​(java.sql.ResultSet rs,
                                                            int col)
                                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getPreferencesVersion

        protected org.apache.qpid.server.model.ModelVersion getPreferencesVersion​(java.sql.Connection conn)
                                                                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException