Class LoggingConnectionDecorator.LoggingConnection

    • Constructor Detail

      • LoggingConnection

        public LoggingConnection​(java.sql.Connection conn)
                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • prepareStatement

        protected java.sql.PreparedStatement prepareStatement​(java.lang.String sql,
                                                              int rsType,
                                                              int rsConcur,
                                                              boolean wrap)
                                                       throws java.sql.SQLException
        Description copied from class: DelegatingConnection
        Prepare a statement, with the option of not wrapping it in a DelegatingPreparedStatement, which is the default.
        Overrides:
        prepareStatement in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • createStatement

        protected java.sql.Statement createStatement​(int type,
                                                     int concurrency,
                                                     boolean wrap)
                                              throws java.sql.SQLException
        Description copied from class: DelegatingConnection
        Create a statement, with the option of not wrapping it in a DelegatingStatement, which is the default.
        Overrides:
        createStatement in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • commit

        public void commit()
                    throws java.sql.SQLException
        Specified by:
        commit in interface java.sql.Connection
        Overrides:
        commit in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • rollback

        public void rollback()
                      throws java.sql.SQLException
        Specified by:
        rollback in interface java.sql.Connection
        Overrides:
        rollback in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • close

        public void close()
                   throws java.sql.SQLException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface java.sql.Connection
        Overrides:
        close in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • setSavepoint

        public java.sql.Savepoint setSavepoint()
                                        throws java.sql.SQLException
        Specified by:
        setSavepoint in interface java.sql.Connection
        Overrides:
        setSavepoint in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • setSavepoint

        public java.sql.Savepoint setSavepoint​(java.lang.String name)
                                        throws java.sql.SQLException
        Specified by:
        setSavepoint in interface java.sql.Connection
        Overrides:
        setSavepoint in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • rollback

        public void rollback​(java.sql.Savepoint savepoint)
                      throws java.sql.SQLException
        Specified by:
        rollback in interface java.sql.Connection
        Overrides:
        rollback in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • releaseSavepoint

        public void releaseSavepoint​(java.sql.Savepoint savepoint)
                              throws java.sql.SQLException
        Specified by:
        releaseSavepoint in interface java.sql.Connection
        Overrides:
        releaseSavepoint in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • createStatement

        protected java.sql.Statement createStatement​(int resultSetType,
                                                     int resultSetConcurrency,
                                                     int resultSetHoldability,
                                                     boolean wrap)
                                              throws java.sql.SQLException
        Overrides:
        createStatement in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • prepareStatement

        protected java.sql.PreparedStatement prepareStatement​(java.lang.String sql,
                                                              int resultSetType,
                                                              int resultSetConcurrency,
                                                              int resultSetHoldability,
                                                              boolean wrap)
                                                       throws java.sql.SQLException
        Overrides:
        prepareStatement in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • prepareStatement

        protected java.sql.PreparedStatement prepareStatement​(java.lang.String sql,
                                                              int autoGeneratedKeys,
                                                              boolean wrap)
                                                       throws java.sql.SQLException
        Overrides:
        prepareStatement in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • prepareStatement

        protected java.sql.PreparedStatement prepareStatement​(java.lang.String sql,
                                                              int[] columnIndexes,
                                                              boolean wrap)
                                                       throws java.sql.SQLException
        Overrides:
        prepareStatement in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • prepareStatement

        protected java.sql.PreparedStatement prepareStatement​(java.lang.String sql,
                                                              java.lang.String[] columnNames,
                                                              boolean wrap)
                                                       throws java.sql.SQLException
        Overrides:
        prepareStatement in class DelegatingConnection
        Throws:
        java.sql.SQLException