Class LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement

    • Constructor Detail

      • LoggingPreparedStatement

        public LoggingPreparedStatement​(java.sql.PreparedStatement stmnt,
                                        java.lang.String sql)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • executeUpdate

        public int executeUpdate​(java.lang.String sql)
                          throws java.sql.SQLException
        Specified by:
        executeUpdate in interface java.sql.Statement
        Overrides:
        executeUpdate in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • execute

        public boolean execute​(java.lang.String sql)
                        throws java.sql.SQLException
        Specified by:
        execute in interface java.sql.Statement
        Overrides:
        execute in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • executeUpdate

        public int executeUpdate()
                          throws java.sql.SQLException
        Specified by:
        executeUpdate in interface java.sql.PreparedStatement
        Overrides:
        executeUpdate in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • executeBatch

        public int[] executeBatch()
                           throws java.sql.SQLException
        Specified by:
        executeBatch in interface java.sql.Statement
        Overrides:
        executeBatch in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • execute

        public boolean execute()
                        throws java.sql.SQLException
        Specified by:
        execute in interface java.sql.PreparedStatement
        Overrides:
        execute in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • executeUpdate

        public int executeUpdate​(java.lang.String s,
                                 int i)
                          throws java.sql.SQLException
        Specified by:
        executeUpdate in interface java.sql.Statement
        Overrides:
        executeUpdate in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • executeUpdate

        public int executeUpdate​(java.lang.String s,
                                 int[] ia)
                          throws java.sql.SQLException
        Specified by:
        executeUpdate in interface java.sql.Statement
        Overrides:
        executeUpdate in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • executeUpdate

        public int executeUpdate​(java.lang.String s,
                                 java.lang.String[] sa)
                          throws java.sql.SQLException
        Specified by:
        executeUpdate in interface java.sql.Statement
        Overrides:
        executeUpdate in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • execute

        public boolean execute​(java.lang.String s,
                               int i)
                        throws java.sql.SQLException
        Specified by:
        execute in interface java.sql.Statement
        Overrides:
        execute in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • execute

        public boolean execute​(java.lang.String s,
                               int[] ia)
                        throws java.sql.SQLException
        Specified by:
        execute in interface java.sql.Statement
        Overrides:
        execute in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • execute

        public boolean execute​(java.lang.String s,
                               java.lang.String[] sa)
                        throws java.sql.SQLException
        Specified by:
        execute in interface java.sql.Statement
        Overrides:
        execute in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • cancel

        public void cancel()
                    throws java.sql.SQLException
        Specified by:
        cancel in interface java.sql.Statement
        Overrides:
        cancel in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setNull

        public void setNull​(int i1,
                            int i2)
                     throws java.sql.SQLException
        Specified by:
        setNull in interface java.sql.PreparedStatement
        Overrides:
        setNull in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setBoolean

        public void setBoolean​(int i,
                               boolean b)
                        throws java.sql.SQLException
        Specified by:
        setBoolean in interface java.sql.PreparedStatement
        Overrides:
        setBoolean in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setByte

        public void setByte​(int i,
                            byte b)
                     throws java.sql.SQLException
        Specified by:
        setByte in interface java.sql.PreparedStatement
        Overrides:
        setByte in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setShort

        public void setShort​(int i,
                             short s)
                      throws java.sql.SQLException
        Specified by:
        setShort in interface java.sql.PreparedStatement
        Overrides:
        setShort in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setInt

        public void setInt​(int i1,
                           int i2)
                    throws java.sql.SQLException
        Specified by:
        setInt in interface java.sql.PreparedStatement
        Overrides:
        setInt in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setLong

        public void setLong​(int i,
                            long l)
                     throws java.sql.SQLException
        Specified by:
        setLong in interface java.sql.PreparedStatement
        Overrides:
        setLong in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setFloat

        public void setFloat​(int i,
                             float f)
                      throws java.sql.SQLException
        Specified by:
        setFloat in interface java.sql.PreparedStatement
        Overrides:
        setFloat in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setDouble

        public void setDouble​(int i,
                              double d)
                       throws java.sql.SQLException
        Specified by:
        setDouble in interface java.sql.PreparedStatement
        Overrides:
        setDouble in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setBigDecimal

        public void setBigDecimal​(int i,
                                  java.math.BigDecimal bd)
                           throws java.sql.SQLException
        Specified by:
        setBigDecimal in interface java.sql.PreparedStatement
        Overrides:
        setBigDecimal in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setString

        public void setString​(int i,
                              java.lang.String s)
                       throws java.sql.SQLException
        Specified by:
        setString in interface java.sql.PreparedStatement
        Overrides:
        setString in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setBytes

        public void setBytes​(int i,
                             byte[] b)
                      throws java.sql.SQLException
        Specified by:
        setBytes in interface java.sql.PreparedStatement
        Overrides:
        setBytes in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setDate

        public void setDate​(int i,
                            java.sql.Date d)
                     throws java.sql.SQLException
        Specified by:
        setDate in interface java.sql.PreparedStatement
        Overrides:
        setDate in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setTime

        public void setTime​(int i,
                            java.sql.Time t)
                     throws java.sql.SQLException
        Specified by:
        setTime in interface java.sql.PreparedStatement
        Overrides:
        setTime in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setTimestamp

        public void setTimestamp​(int i,
                                 java.sql.Timestamp t)
                          throws java.sql.SQLException
        Specified by:
        setTimestamp in interface java.sql.PreparedStatement
        Overrides:
        setTimestamp in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setAsciiStream

        public void setAsciiStream​(int i1,
                                   java.io.InputStream is,
                                   int i2)
                            throws java.sql.SQLException
        Specified by:
        setAsciiStream in interface java.sql.PreparedStatement
        Overrides:
        setAsciiStream in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setUnicodeStream

        @Deprecated
        public void setUnicodeStream​(int i1,
                                     java.io.InputStream is,
                                     int i2)
                              throws java.sql.SQLException
        Deprecated.
        Specified by:
        setUnicodeStream in interface java.sql.PreparedStatement
        Overrides:
        setUnicodeStream in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setBinaryStream

        public void setBinaryStream​(int i1,
                                    java.io.InputStream is,
                                    int i2)
                             throws java.sql.SQLException
        Specified by:
        setBinaryStream in interface java.sql.PreparedStatement
        Overrides:
        setBinaryStream in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setBinaryStream

        public void setBinaryStream​(int i1,
                                    java.io.InputStream is)
                             throws java.sql.SQLException
        Specified by:
        setBinaryStream in interface java.sql.PreparedStatement
        Overrides:
        setBinaryStream in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • clearParameters

        public void clearParameters()
                             throws java.sql.SQLException
        Specified by:
        clearParameters in interface java.sql.PreparedStatement
        Overrides:
        clearParameters in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setObject

        public void setObject​(int i1,
                              java.lang.Object o,
                              int i2,
                              int i3)
                       throws java.sql.SQLException
        Specified by:
        setObject in interface java.sql.PreparedStatement
        Overrides:
        setObject in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setObject

        public void setObject​(int i1,
                              java.lang.Object o,
                              int i2)
                       throws java.sql.SQLException
        Specified by:
        setObject in interface java.sql.PreparedStatement
        Overrides:
        setObject in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setObject

        public void setObject​(int i,
                              java.lang.Object o)
                       throws java.sql.SQLException
        Specified by:
        setObject in interface java.sql.PreparedStatement
        Overrides:
        setObject in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • addBatch

        public void addBatch()
                      throws java.sql.SQLException
        Specified by:
        addBatch in interface java.sql.PreparedStatement
        Overrides:
        addBatch in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setCharacterStream

        public void setCharacterStream​(int i1,
                                       java.io.Reader r,
                                       int i2)
                                throws java.sql.SQLException
        Specified by:
        setCharacterStream in interface java.sql.PreparedStatement
        Overrides:
        setCharacterStream in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setRef

        public void setRef​(int i,
                           java.sql.Ref r)
                    throws java.sql.SQLException
        Specified by:
        setRef in interface java.sql.PreparedStatement
        Overrides:
        setRef in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setBlob

        public void setBlob​(int i,
                            java.sql.Blob b)
                     throws java.sql.SQLException
        Specified by:
        setBlob in interface java.sql.PreparedStatement
        Overrides:
        setBlob in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setClob

        public void setClob​(int i,
                            java.sql.Clob c)
                     throws java.sql.SQLException
        Specified by:
        setClob in interface java.sql.PreparedStatement
        Overrides:
        setClob in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setArray

        public void setArray​(int i,
                             java.sql.Array a)
                      throws java.sql.SQLException
        Specified by:
        setArray in interface java.sql.PreparedStatement
        Overrides:
        setArray in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • getMetaData

        public java.sql.ResultSetMetaData getMetaData()
                                               throws java.sql.SQLException
        Specified by:
        getMetaData in interface java.sql.PreparedStatement
        Overrides:
        getMetaData in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setDate

        public void setDate​(int i,
                            java.sql.Date d,
                            java.util.Calendar c)
                     throws java.sql.SQLException
        Specified by:
        setDate in interface java.sql.PreparedStatement
        Overrides:
        setDate in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setTime

        public void setTime​(int i,
                            java.sql.Time t,
                            java.util.Calendar c)
                     throws java.sql.SQLException
        Specified by:
        setTime in interface java.sql.PreparedStatement
        Overrides:
        setTime in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setTimestamp

        public void setTimestamp​(int i,
                                 java.sql.Timestamp t,
                                 java.util.Calendar c)
                          throws java.sql.SQLException
        Specified by:
        setTimestamp in interface java.sql.PreparedStatement
        Overrides:
        setTimestamp in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setNull

        public void setNull​(int i1,
                            int i2,
                            java.lang.String s)
                     throws java.sql.SQLException
        Specified by:
        setNull in interface java.sql.PreparedStatement
        Overrides:
        setNull in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException
      • setURL

        public void setURL​(int i,
                           java.net.URL u)
                    throws java.sql.SQLException
        Specified by:
        setURL in interface java.sql.PreparedStatement
        Overrides:
        setURL in class DelegatingPreparedStatement
        Throws:
        java.sql.SQLException