diff --git a/src/main/java/com/alibaba/druid/filter/Filter.java b/src/main/java/com/alibaba/druid/filter/Filter.java index 351d7570dc..eee0cea9ba 100644 --- a/src/main/java/com/alibaba/druid/filter/Filter.java +++ b/src/main/java/com/alibaba/druid/filter/Filter.java @@ -64,13 +64,16 @@ public interface Filter { StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection) throws SQLException; - PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException; + PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql) + throws SQLException; - CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException; + CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql) + throws SQLException; String connection_nativeSQL(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException; - void connection_setAutoCommit(FilterChain chain, ConnectionProxy connection, boolean autoCommit) throws SQLException; + void connection_setAutoCommit(FilterChain chain, ConnectionProxy connection, boolean autoCommit) + throws SQLException; boolean connection_getAutoCommit(FilterChain chain, ConnectionProxy connection) throws SQLException; @@ -92,7 +95,8 @@ public interface Filter { String connection_getCatalog(FilterChain chain, ConnectionProxy connection) throws SQLException; - void connection_setTransactionIsolation(FilterChain chain, ConnectionProxy connection, int level) throws SQLException; + void connection_setTransactionIsolation(FilterChain chain, ConnectionProxy connection, int level) + throws SQLException; int connection_getTransactionIsolation(FilterChain chain, ConnectionProxy connection) throws SQLException; @@ -100,17 +104,20 @@ public interface Filter { void connection_clearWarnings(FilterChain chain, ConnectionProxy connection) throws SQLException; - StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, int resultSetConcurrency) throws SQLException; + StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, + int resultSetConcurrency) throws SQLException; - PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency) - throws SQLException; + PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency) throws SQLException; - CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency) - throws SQLException; + CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency) throws SQLException; - java.util.Map> connection_getTypeMap(FilterChain chain, ConnectionProxy connection) throws SQLException; + java.util.Map> connection_getTypeMap(FilterChain chain, ConnectionProxy connection) + throws SQLException; - void connection_setTypeMap(FilterChain chain, ConnectionProxy connection, java.util.Map> map) throws SQLException; + void connection_setTypeMap(FilterChain chain, ConnectionProxy connection, java.util.Map> map) + throws SQLException; void connection_setHoldability(FilterChain chain, ConnectionProxy connection, int holdability) throws SQLException; @@ -122,22 +129,28 @@ public interface Filter { void connection_rollback(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) throws SQLException; - void connection_releaseSavepoint(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) throws SQLException; + void connection_releaseSavepoint(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) + throws SQLException; - StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, int resultSetConcurrency, - int resultSetHoldability) throws SQLException; + StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, + int resultSetConcurrency, int resultSetHoldability) throws SQLException; - PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency, + PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException; - CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency, - int resultSetHoldability) throws SQLException; + CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency, int resultSetHoldability) + throws SQLException; - PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int autoGeneratedKeys) throws SQLException; + PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, + int autoGeneratedKeys) throws SQLException; - PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int columnIndexes[]) throws SQLException; + PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, + int columnIndexes[]) throws SQLException; - PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, String columnNames[]) throws SQLException; + PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, + String columnNames[]) throws SQLException; Clob connection_createClob(FilterChain chain, ConnectionProxy connection) throws SQLException; @@ -149,17 +162,21 @@ public interface Filter { boolean connection_isValid(FilterChain chain, ConnectionProxy connection, int timeout) throws SQLException; - void connection_setClientInfo(FilterChain chain, ConnectionProxy connection, String name, String value) throws SQLClientInfoException; + void connection_setClientInfo(FilterChain chain, ConnectionProxy connection, String name, String value) + throws SQLClientInfoException; - void connection_setClientInfo(FilterChain chain, ConnectionProxy connection, Properties properties) throws SQLClientInfoException; + void connection_setClientInfo(FilterChain chain, ConnectionProxy connection, Properties properties) + throws SQLClientInfoException; String connection_getClientInfo(FilterChain chain, ConnectionProxy connection, String name) throws SQLException; Properties connection_getClientInfo(FilterChain chain, ConnectionProxy connection) throws SQLException; - Array connection_createArrayOf(FilterChain chain, ConnectionProxy connection, String typeName, Object[] elements) throws SQLException; + Array connection_createArrayOf(FilterChain chain, ConnectionProxy connection, String typeName, Object[] elements) + throws SQLException; - Struct connection_createStruct(FilterChain chain, ConnectionProxy connection, String typeName, Object[] attributes) throws SQLException; + Struct connection_createStruct(FilterChain chain, ConnectionProxy connection, String typeName, Object[] attributes) + throws SQLException; // /////////////// boolean resultSet_next(FilterChain chain, ResultSetProxy resultSet) throws SQLException; @@ -184,7 +201,8 @@ public interface Filter { double resultSet_getDouble(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; - BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy resultSet, int columnIndex, int scale) throws SQLException; + BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy resultSet, int columnIndex, int scale) + throws SQLException; byte[] resultSet_getBytes(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; @@ -194,11 +212,14 @@ public interface Filter { Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; - java.io.InputStream resultSet_getAsciiStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; + java.io.InputStream resultSet_getAsciiStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex) + throws SQLException; - java.io.InputStream resultSet_getUnicodeStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; + java.io.InputStream resultSet_getUnicodeStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex) + throws SQLException; - java.io.InputStream resultSet_getBinaryStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; + java.io.InputStream resultSet_getBinaryStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex) + throws SQLException; String resultSet_getString(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; @@ -216,21 +237,28 @@ public interface Filter { double resultSet_getDouble(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; - BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy resultSet, String columnLabel, int scale) throws SQLException; + BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy resultSet, String columnLabel, int scale) + throws SQLException; byte[] resultSet_getBytes(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; - java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; + java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy resultSet, String columnLabel) + throws SQLException; - java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; + java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy resultSet, String columnLabel) + throws SQLException; - java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; + java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy resultSet, String columnLabel) + throws SQLException; - java.io.InputStream resultSet_getAsciiStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; + java.io.InputStream resultSet_getAsciiStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel) + throws SQLException; - java.io.InputStream resultSet_getUnicodeStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; + java.io.InputStream resultSet_getUnicodeStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel) + throws SQLException; - java.io.InputStream resultSet_getBinaryStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; + java.io.InputStream resultSet_getBinaryStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel) + throws SQLException; SQLWarning resultSet_getWarnings(FilterChain chain, ResultSetProxy resultSet) throws SQLException; @@ -246,13 +274,17 @@ public interface Filter { int resultSet_findColumn(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; - java.io.Reader resultSet_getCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; + java.io.Reader resultSet_getCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex) + throws SQLException; - java.io.Reader resultSet_getCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; + java.io.Reader resultSet_getCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel) + throws SQLException; - BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; + BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy resultSet, int columnIndex) + throws SQLException; - BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; + BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy resultSet, String columnLabel) + throws SQLException; boolean resultSet_isBeforeFirst(FilterChain chain, ResultSetProxy resultSet) throws SQLException; @@ -298,80 +330,112 @@ public interface Filter { void resultSet_updateNull(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; - void resultSet_updateBoolean(FilterChain chain, ResultSetProxy resultSet, int columnIndex, boolean x) throws SQLException; + void resultSet_updateBoolean(FilterChain chain, ResultSetProxy resultSet, int columnIndex, boolean x) + throws SQLException; void resultSet_updateByte(FilterChain chain, ResultSetProxy resultSet, int columnIndex, byte x) throws SQLException; - void resultSet_updateShort(FilterChain chain, ResultSetProxy resultSet, int columnIndex, short x) throws SQLException; + void resultSet_updateShort(FilterChain chain, ResultSetProxy resultSet, int columnIndex, short x) + throws SQLException; void resultSet_updateInt(FilterChain chain, ResultSetProxy resultSet, int columnIndex, int x) throws SQLException; void resultSet_updateLong(FilterChain chain, ResultSetProxy resultSet, int columnIndex, long x) throws SQLException; - void resultSet_updateFloat(FilterChain chain, ResultSetProxy resultSet, int columnIndex, float x) throws SQLException; + void resultSet_updateFloat(FilterChain chain, ResultSetProxy resultSet, int columnIndex, float x) + throws SQLException; - void resultSet_updateDouble(FilterChain chain, ResultSetProxy resultSet, int columnIndex, double x) throws SQLException; + void resultSet_updateDouble(FilterChain chain, ResultSetProxy resultSet, int columnIndex, double x) + throws SQLException; - void resultSet_updateBigDecimal(FilterChain chain, ResultSetProxy resultSet, int columnIndex, BigDecimal x) throws SQLException; + void resultSet_updateBigDecimal(FilterChain chain, ResultSetProxy resultSet, int columnIndex, BigDecimal x) + throws SQLException; - void resultSet_updateString(FilterChain chain, ResultSetProxy resultSet, int columnIndex, String x) throws SQLException; + void resultSet_updateString(FilterChain chain, ResultSetProxy resultSet, int columnIndex, String x) + throws SQLException; - void resultSet_updateBytes(FilterChain chain, ResultSetProxy resultSet, int columnIndex, byte x[]) throws SQLException; + void resultSet_updateBytes(FilterChain chain, ResultSetProxy resultSet, int columnIndex, byte x[]) + throws SQLException; - void resultSet_updateDate(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Date x) throws SQLException; + void resultSet_updateDate(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Date x) + throws SQLException; - void resultSet_updateTime(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Time x) throws SQLException; + void resultSet_updateTime(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Time x) + throws SQLException; - void resultSet_updateTimestamp(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Timestamp x) throws SQLException; + void resultSet_updateTimestamp(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Timestamp x) + throws SQLException; - void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, int length) throws SQLException; + void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, + java.io.InputStream x, int length) throws SQLException; - void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, int length) throws SQLException; + void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, + java.io.InputStream x, int length) throws SQLException; - void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.Reader x, int length) throws SQLException; + void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, + java.io.Reader x, int length) throws SQLException; - void resultSet_updateObject(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Object x, int scaleOrLength) throws SQLException; + void resultSet_updateObject(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Object x, + int scaleOrLength) throws SQLException; - void resultSet_updateObject(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Object x) throws SQLException; + void resultSet_updateObject(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Object x) + throws SQLException; void resultSet_updateNull(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; - void resultSet_updateBoolean(FilterChain chain, ResultSetProxy resultSet, String columnLabel, boolean x) throws SQLException; + void resultSet_updateBoolean(FilterChain chain, ResultSetProxy resultSet, String columnLabel, boolean x) + throws SQLException; - void resultSet_updateByte(FilterChain chain, ResultSetProxy resultSet, String columnLabel, byte x) throws SQLException; + void resultSet_updateByte(FilterChain chain, ResultSetProxy resultSet, String columnLabel, byte x) + throws SQLException; - void resultSet_updateShort(FilterChain chain, ResultSetProxy resultSet, String columnLabel, short x) throws SQLException; + void resultSet_updateShort(FilterChain chain, ResultSetProxy resultSet, String columnLabel, short x) + throws SQLException; - void resultSet_updateInt(FilterChain chain, ResultSetProxy resultSet, String columnLabel, int x) throws SQLException; + void resultSet_updateInt(FilterChain chain, ResultSetProxy resultSet, String columnLabel, int x) + throws SQLException; - void resultSet_updateLong(FilterChain chain, ResultSetProxy resultSet, String columnLabel, long x) throws SQLException; + void resultSet_updateLong(FilterChain chain, ResultSetProxy resultSet, String columnLabel, long x) + throws SQLException; - void resultSet_updateFloat(FilterChain chain, ResultSetProxy resultSet, String columnLabel, float x) throws SQLException; + void resultSet_updateFloat(FilterChain chain, ResultSetProxy resultSet, String columnLabel, float x) + throws SQLException; - void resultSet_updateDouble(FilterChain chain, ResultSetProxy resultSet, String columnLabel, double x) throws SQLException; + void resultSet_updateDouble(FilterChain chain, ResultSetProxy resultSet, String columnLabel, double x) + throws SQLException; - void resultSet_updateBigDecimal(FilterChain chain, ResultSetProxy resultSet, String columnLabel, BigDecimal x) throws SQLException; + void resultSet_updateBigDecimal(FilterChain chain, ResultSetProxy resultSet, String columnLabel, BigDecimal x) + throws SQLException; - void resultSet_updateString(FilterChain chain, ResultSetProxy resultSet, String columnLabel, String x) throws SQLException; + void resultSet_updateString(FilterChain chain, ResultSetProxy resultSet, String columnLabel, String x) + throws SQLException; - void resultSet_updateBytes(FilterChain chain, ResultSetProxy resultSet, String columnLabel, byte x[]) throws SQLException; + void resultSet_updateBytes(FilterChain chain, ResultSetProxy resultSet, String columnLabel, byte x[]) + throws SQLException; - void resultSet_updateDate(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Date x) throws SQLException; + void resultSet_updateDate(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Date x) + throws SQLException; - void resultSet_updateTime(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Time x) throws SQLException; + void resultSet_updateTime(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Time x) + throws SQLException; - void resultSet_updateTimestamp(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Timestamp x) throws SQLException; + void resultSet_updateTimestamp(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Timestamp x) + throws SQLException; - void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, int length) throws SQLException; + void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.io.InputStream x, int length) throws SQLException; - void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, int length) throws SQLException; + void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.io.InputStream x, int length) throws SQLException; - void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, int length) - throws SQLException; + void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.io.Reader reader, int length) throws SQLException; - void resultSet_updateObject(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Object x, int scaleOrLength) throws SQLException; + void resultSet_updateObject(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Object x, + int scaleOrLength) throws SQLException; - void resultSet_updateObject(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Object x) throws SQLException; + void resultSet_updateObject(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Object x) + throws SQLException; void resultSet_insertRow(FilterChain chain, ResultSetProxy resultSet) throws SQLException; @@ -389,7 +453,8 @@ public interface Filter { Statement resultSet_getStatement(FilterChain chain, ResultSetProxy resultSet) throws SQLException; - Object resultSet_getObject(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.util.Map> map) throws SQLException; + Object resultSet_getObject(FilterChain chain, ResultSetProxy resultSet, int columnIndex, + java.util.Map> map) throws SQLException; Ref resultSet_getRef(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; @@ -399,7 +464,8 @@ public interface Filter { Array resultSet_getArray(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; - Object resultSet_getObject(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.util.Map> map) throws SQLException; + Object resultSet_getObject(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.util.Map> map) throws SQLException; Ref resultSet_getRef(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; @@ -409,57 +475,77 @@ public interface Filter { Array resultSet_getArray(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; - java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Calendar cal) throws SQLException; + java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Calendar cal) + throws SQLException; - java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Calendar cal) throws SQLException; + java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Calendar cal) + throws SQLException; - java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Calendar cal) throws SQLException; + java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Calendar cal) + throws SQLException; - java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Calendar cal) throws SQLException; + java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Calendar cal) + throws SQLException; - java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Calendar cal) throws SQLException; + java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Calendar cal) + throws SQLException; - java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Calendar cal) throws SQLException; + java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + Calendar cal) throws SQLException; java.net.URL resultSet_getURL(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; java.net.URL resultSet_getURL(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; - void resultSet_updateRef(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Ref x) throws SQLException; + void resultSet_updateRef(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Ref x) + throws SQLException; - void resultSet_updateRef(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Ref x) throws SQLException; + void resultSet_updateRef(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Ref x) + throws SQLException; - void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Blob x) throws SQLException; + void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Blob x) + throws SQLException; - void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Blob x) throws SQLException; + void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Blob x) + throws SQLException; - void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Clob x) throws SQLException; + void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Clob x) + throws SQLException; - void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Clob x) throws SQLException; + void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Clob x) + throws SQLException; - void resultSet_updateArray(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Array x) throws SQLException; + void resultSet_updateArray(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.sql.Array x) + throws SQLException; - void resultSet_updateArray(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Array x) throws SQLException; + void resultSet_updateArray(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.sql.Array x) + throws SQLException; RowId resultSet_getRowId(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; RowId resultSet_getRowId(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; - void resultSet_updateRowId(FilterChain chain, ResultSetProxy resultSet, int columnIndex, RowId x) throws SQLException; + void resultSet_updateRowId(FilterChain chain, ResultSetProxy resultSet, int columnIndex, RowId x) + throws SQLException; - void resultSet_updateRowId(FilterChain chain, ResultSetProxy resultSet, String columnLabel, RowId x) throws SQLException; + void resultSet_updateRowId(FilterChain chain, ResultSetProxy resultSet, String columnLabel, RowId x) + throws SQLException; int resultSet_getHoldability(FilterChain chain, ResultSetProxy resultSet) throws SQLException; boolean resultSet_isClosed(FilterChain chain, ResultSetProxy resultSet) throws SQLException; - void resultSet_updateNString(FilterChain chain, ResultSetProxy resultSet, int columnIndex, String nString) throws SQLException; + void resultSet_updateNString(FilterChain chain, ResultSetProxy resultSet, int columnIndex, String nString) + throws SQLException; - void resultSet_updateNString(FilterChain chain, ResultSetProxy resultSet, String columnLabel, String nString) throws SQLException; + void resultSet_updateNString(FilterChain chain, ResultSetProxy resultSet, String columnLabel, String nString) + throws SQLException; - void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, NClob nClob) throws SQLException; + void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, NClob nClob) + throws SQLException; - void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, NClob nClob) throws SQLException; + void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, NClob nClob) + throws SQLException; NClob resultSet_getNClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; @@ -469,74 +555,105 @@ public interface Filter { SQLXML resultSet_getSQLXML(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; - void resultSet_updateSQLXML(FilterChain chain, ResultSetProxy resultSet, int columnIndex, SQLXML xmlObject) throws SQLException; + void resultSet_updateSQLXML(FilterChain chain, ResultSetProxy resultSet, int columnIndex, SQLXML xmlObject) + throws SQLException; - void resultSet_updateSQLXML(FilterChain chain, ResultSetProxy resultSet, String columnLabel, SQLXML xmlObject) throws SQLException; + void resultSet_updateSQLXML(FilterChain chain, ResultSetProxy resultSet, String columnLabel, SQLXML xmlObject) + throws SQLException; String resultSet_getNString(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; String resultSet_getNString(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; - java.io.Reader resultSet_getNCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex) throws SQLException; + java.io.Reader resultSet_getNCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex) + throws SQLException; - java.io.Reader resultSet_getNCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel) throws SQLException; + java.io.Reader resultSet_getNCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel) + throws SQLException; - void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.Reader x, long length) throws SQLException; + void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, + java.io.Reader x, long length) throws SQLException; - void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, long length) - throws SQLException; + void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.io.Reader reader, long length) throws SQLException; - void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, long length) throws SQLException; + void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, + java.io.InputStream x, long length) throws SQLException; - void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, long length) throws SQLException; + void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, + java.io.InputStream x, long length) throws SQLException; - void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.Reader x, long length) throws SQLException; + void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, + java.io.Reader x, long length) throws SQLException; - void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, long length) throws SQLException; + void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.io.InputStream x, long length) throws SQLException; - void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, long length) throws SQLException; + void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.io.InputStream x, long length) throws SQLException; - void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Reader reader, long length) throws SQLException; + void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + Reader reader, long length) throws SQLException; - void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, InputStream inputStream, long length) throws SQLException; + void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, InputStream inputStream, + long length) throws SQLException; - void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, InputStream inputStream, long length) throws SQLException; + void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, InputStream inputStream, + long length) throws SQLException; - void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Reader reader, long length) throws SQLException; + void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Reader reader, long length) + throws SQLException; - void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Reader reader, long length) throws SQLException; + void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Reader reader, + long length) throws SQLException; - void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Reader reader, long length) throws SQLException; + void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Reader reader, long length) + throws SQLException; - void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Reader reader, long length) throws SQLException; + void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Reader reader, + long length) throws SQLException; - void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.Reader x) throws SQLException; + void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.Reader x) + throws SQLException; - void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.io.Reader reader) throws SQLException; + void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.io.Reader reader) throws SQLException; - void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) throws SQLException; + void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) + throws SQLException; - void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) throws SQLException; + void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, + java.io.InputStream x) throws SQLException; - void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.Reader x) throws SQLException; + void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, int columnIndex, java.io.Reader x) + throws SQLException; - void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.io.InputStream x) throws SQLException; + void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.io.InputStream x) throws SQLException; - void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.io.InputStream x) throws SQLException; + void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.io.InputStream x) throws SQLException; - void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, java.io.Reader reader) throws SQLException; + void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy resultSet, String columnLabel, + java.io.Reader reader) throws SQLException; - void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, InputStream inputStream) throws SQLException; + void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, InputStream inputStream) + throws SQLException; - void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, InputStream inputStream) throws SQLException; + void resultSet_updateBlob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, InputStream inputStream) + throws SQLException; - void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Reader reader) throws SQLException; + void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Reader reader) + throws SQLException; - void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Reader reader) throws SQLException; + void resultSet_updateClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Reader reader) + throws SQLException; - void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Reader reader) throws SQLException; + void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, int columnIndex, Reader reader) + throws SQLException; - void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Reader reader) throws SQLException; + void resultSet_updateNClob(FilterChain chain, ResultSetProxy resultSet, String columnLabel, Reader reader) + throws SQLException; // / statement @@ -600,17 +717,23 @@ public interface Filter { ResultSetProxy statement_getGeneratedKeys(FilterChain chain, StatementProxy statement) throws SQLException; - int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException; + int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException; - int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) throws SQLException; + int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException; - int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) throws SQLException; + int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) + throws SQLException; - boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException; + boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException; - boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) throws SQLException; + boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException; - boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) throws SQLException; + boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) + throws SQLException; int statement_getResultSetHoldability(FilterChain chain, StatementProxy statement) throws SQLException; @@ -622,374 +745,502 @@ public interface Filter { // /// - ResultSetProxy preparedStatement_executeQuery(FilterChain chain, PreparedStatementProxy statement) throws SQLException; + ResultSetProxy preparedStatement_executeQuery(FilterChain chain, PreparedStatementProxy statement) + throws SQLException; int preparedStatement_executeUpdate(FilterChain chain, PreparedStatementProxy statement) throws SQLException; - void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int sqlType) throws SQLException; + void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int sqlType) + throws SQLException; - void preparedStatement_setBoolean(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, boolean x) throws SQLException; + void preparedStatement_setBoolean(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, boolean x) + throws SQLException; - void preparedStatement_setByte(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, byte x) throws SQLException; + void preparedStatement_setByte(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, byte x) + throws SQLException; - void preparedStatement_setShort(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, short x) throws SQLException; + void preparedStatement_setShort(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, short x) + throws SQLException; - void preparedStatement_setInt(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int x) throws SQLException; + void preparedStatement_setInt(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int x) + throws SQLException; - void preparedStatement_setLong(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, long x) throws SQLException; + void preparedStatement_setLong(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, long x) + throws SQLException; - void preparedStatement_setFloat(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, float x) throws SQLException; + void preparedStatement_setFloat(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, float x) + throws SQLException; - void preparedStatement_setDouble(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, double x) throws SQLException; + void preparedStatement_setDouble(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, double x) + throws SQLException; - void preparedStatement_setBigDecimal(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, BigDecimal x) throws SQLException; + void preparedStatement_setBigDecimal(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + BigDecimal x) throws SQLException; - void preparedStatement_setString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, String x) throws SQLException; + void preparedStatement_setString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, String x) + throws SQLException; - void preparedStatement_setBytes(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, byte x[]) throws SQLException; + void preparedStatement_setBytes(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, byte x[]) + throws SQLException; - void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Date x) throws SQLException; + void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Date x) throws SQLException; - void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Time x) throws SQLException; + void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Time x) throws SQLException; - void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Timestamp x) throws SQLException; + void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Timestamp x) throws SQLException; - void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) - throws SQLException; + void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, int length) throws SQLException; - void preparedStatement_setUnicodeStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) - throws SQLException; + void preparedStatement_setUnicodeStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, int length) throws SQLException; - void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) - throws SQLException; + void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, int length) throws SQLException; void preparedStatement_clearParameters(FilterChain chain, PreparedStatementProxy statement) throws SQLException; - void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType) throws SQLException; + void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, + int targetSqlType) throws SQLException; - void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x) throws SQLException; + void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x) + throws SQLException; boolean preparedStatement_execute(FilterChain chain, PreparedStatementProxy statement) throws SQLException; void preparedStatement_addBatch(FilterChain chain, PreparedStatementProxy statement) throws SQLException; - void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, int length) - throws SQLException; + void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.io.Reader reader, int length) throws SQLException; - void preparedStatement_setRef(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Ref x) throws SQLException; + void preparedStatement_setRef(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Ref x) + throws SQLException; - void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Blob x) throws SQLException; + void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Blob x) + throws SQLException; - void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Clob x) throws SQLException; + void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Clob x) + throws SQLException; - void preparedStatement_setArray(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Array x) throws SQLException; + void preparedStatement_setArray(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Array x) + throws SQLException; - ResultSetMetaData preparedStatement_getMetaData(FilterChain chain, PreparedStatementProxy statement) throws SQLException; + ResultSetMetaData preparedStatement_getMetaData(FilterChain chain, PreparedStatementProxy statement) + throws SQLException; - void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Date x, Calendar cal) throws SQLException; + void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Date x, Calendar cal) throws SQLException; - void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Time x, Calendar cal) throws SQLException; + void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Time x, Calendar cal) throws SQLException; - void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Timestamp x, Calendar cal) - throws SQLException; + void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Timestamp x, Calendar cal) throws SQLException; - void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int sqlType, String typeName) throws SQLException; + void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + int sqlType, String typeName) throws SQLException; - void preparedStatement_setURL(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.net.URL x) throws SQLException; + void preparedStatement_setURL(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.net.URL x) throws SQLException; - ParameterMetaData preparedStatement_getParameterMetaData(FilterChain chain, PreparedStatementProxy statement) throws SQLException; + ParameterMetaData preparedStatement_getParameterMetaData(FilterChain chain, PreparedStatementProxy statement) + throws SQLException; - void preparedStatement_setRowId(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, RowId x) throws SQLException; + void preparedStatement_setRowId(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, RowId x) + throws SQLException; - void preparedStatement_setNString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, String value) throws SQLException; + void preparedStatement_setNString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + String value) throws SQLException; - void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader value, long length) - throws SQLException; + void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader value, long length) throws SQLException; - void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, NClob value) throws SQLException; + void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, NClob value) + throws SQLException; - void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader, long length) throws SQLException; + void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader, long length) throws SQLException; - void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream inputStream, long length) - throws SQLException; + void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + InputStream inputStream, long length) throws SQLException; - void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader, long length) throws SQLException; + void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader, long length) throws SQLException; - void preparedStatement_setSQLXML(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, SQLXML xmlObject) throws SQLException; + void preparedStatement_setSQLXML(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + SQLXML xmlObject) throws SQLException; - void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType, int scaleOrLength) - throws SQLException; + void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, + int targetSqlType, int scaleOrLength) throws SQLException; - void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) - throws SQLException; + void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, long length) throws SQLException; - void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) - throws SQLException; + void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, long length) throws SQLException; - void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, long length) - throws SQLException; + void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.io.Reader reader, long length) throws SQLException; - void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) throws SQLException; + void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x) throws SQLException; - void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) throws SQLException; + void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x) throws SQLException; - void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader) - throws SQLException; + void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.io.Reader reader) throws SQLException; - void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader value) throws SQLException; + void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader value) throws SQLException; - void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader) throws SQLException; + void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader) throws SQLException; - void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream inputStream) throws SQLException; + void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + InputStream inputStream) throws SQLException; - void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader) throws SQLException; + void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader) throws SQLException; // /////////////////////////////////// - void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, int parameterIndex, int sqlType) throws SQLException; + void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, int sqlType) throws SQLException; - void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, int parameterIndex, int sqlType, int scale) - throws SQLException; + void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, int sqlType, int scale) throws SQLException; boolean callableStatement_wasNull(FilterChain chain, CallableStatementProxy statement) throws SQLException; - String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - boolean callableStatement_getBoolean(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + boolean callableStatement_getBoolean(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - byte callableStatement_getByte(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + byte callableStatement_getByte(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - short callableStatement_getShort(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + short callableStatement_getShort(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - int callableStatement_getInt(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + int callableStatement_getInt(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - long callableStatement_getLong(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + long callableStatement_getLong(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - float callableStatement_getFloat(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + float callableStatement_getFloat(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - double callableStatement_getDouble(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + double callableStatement_getDouble(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, int parameterIndex, int scale) throws SQLException; + BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, int parameterIndex, + int scale) throws SQLException; - byte[] callableStatement_getBytes(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + byte[] callableStatement_getBytes(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, + int parameterIndex) throws SQLException; - Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex, java.util.Map> map) - throws SQLException; + Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex, + java.util.Map> map) throws SQLException; - Ref callableStatement_getRef(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + Ref callableStatement_getRef(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - Blob callableStatement_getBlob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + Blob callableStatement_getBlob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - Clob callableStatement_getClob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + Clob callableStatement_getClob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - Array callableStatement_getArray(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + Array callableStatement_getArray(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, int parameterIndex, Calendar cal) throws SQLException; + java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, int parameterIndex, + Calendar cal) throws SQLException; - java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, int parameterIndex, Calendar cal) throws SQLException; + java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, int parameterIndex, + Calendar cal) throws SQLException; - java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, int parameterIndex, Calendar cal) - throws SQLException; + java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, Calendar cal) throws SQLException; - void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, int parameterIndex, int sqlType, String typeName) - throws SQLException; + void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, int sqlType, String typeName) throws SQLException; - void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, String parameterName, int sqlType) throws SQLException; + void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + String parameterName, int sqlType) throws SQLException; - void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, String parameterName, int sqlType, int scale) - throws SQLException; + void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + String parameterName, int sqlType, int scale) throws SQLException; - void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, String parameterName, int sqlType, String typeName) - throws SQLException; + void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + String parameterName, int sqlType, String typeName) throws SQLException; - java.net.URL callableStatement_getURL(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + java.net.URL callableStatement_getURL(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - void callableStatement_setURL(FilterChain chain, CallableStatementProxy statement, String parameterName, java.net.URL val) throws SQLException; + void callableStatement_setURL(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.net.URL val) throws SQLException; - void callableStatement_setNull(FilterChain chain, CallableStatementProxy statement, String parameterName, int sqlType) throws SQLException; + void callableStatement_setNull(FilterChain chain, CallableStatementProxy statement, String parameterName, + int sqlType) throws SQLException; - void callableStatement_setBoolean(FilterChain chain, CallableStatementProxy statement, String parameterName, boolean x) throws SQLException; + void callableStatement_setBoolean(FilterChain chain, CallableStatementProxy statement, String parameterName, + boolean x) throws SQLException; - void callableStatement_setByte(FilterChain chain, CallableStatementProxy statement, String parameterName, byte x) throws SQLException; + void callableStatement_setByte(FilterChain chain, CallableStatementProxy statement, String parameterName, byte x) + throws SQLException; - void callableStatement_setShort(FilterChain chain, CallableStatementProxy statement, String parameterName, short x) throws SQLException; + void callableStatement_setShort(FilterChain chain, CallableStatementProxy statement, String parameterName, short x) + throws SQLException; - void callableStatement_setInt(FilterChain chain, CallableStatementProxy statement, String parameterName, int x) throws SQLException; + void callableStatement_setInt(FilterChain chain, CallableStatementProxy statement, String parameterName, int x) + throws SQLException; - void callableStatement_setLong(FilterChain chain, CallableStatementProxy statement, String parameterName, long x) throws SQLException; + void callableStatement_setLong(FilterChain chain, CallableStatementProxy statement, String parameterName, long x) + throws SQLException; - void callableStatement_setFloat(FilterChain chain, CallableStatementProxy statement, String parameterName, float x) throws SQLException; + void callableStatement_setFloat(FilterChain chain, CallableStatementProxy statement, String parameterName, float x) + throws SQLException; - void callableStatement_setDouble(FilterChain chain, CallableStatementProxy statement, String parameterName, double x) throws SQLException; + void callableStatement_setDouble(FilterChain chain, CallableStatementProxy statement, String parameterName, double x) + throws SQLException; - void callableStatement_setBigDecimal(FilterChain chain, CallableStatementProxy statement, String parameterName, BigDecimal x) throws SQLException; + void callableStatement_setBigDecimal(FilterChain chain, CallableStatementProxy statement, String parameterName, + BigDecimal x) throws SQLException; - void callableStatement_setString(FilterChain chain, CallableStatementProxy statement, String parameterName, String x) throws SQLException; + void callableStatement_setString(FilterChain chain, CallableStatementProxy statement, String parameterName, String x) + throws SQLException; - void callableStatement_setBytes(FilterChain chain, CallableStatementProxy statement, String parameterName, byte x[]) throws SQLException; + void callableStatement_setBytes(FilterChain chain, CallableStatementProxy statement, String parameterName, byte x[]) + throws SQLException; - void callableStatement_setDate(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Date x) throws SQLException; + void callableStatement_setDate(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.sql.Date x) throws SQLException; - void callableStatement_setTime(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Time x) throws SQLException; + void callableStatement_setTime(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.sql.Time x) throws SQLException; - void callableStatement_setTimestamp(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Timestamp x) throws SQLException; + void callableStatement_setTimestamp(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.sql.Timestamp x) throws SQLException; - void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x, int length) - throws SQLException; + void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.io.InputStream x, int length) throws SQLException; - void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x, int length) - throws SQLException; + void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.io.InputStream x, int length) throws SQLException; - void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Object x, int targetSqlType, int scale) - throws SQLException; + void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, + Object x, int targetSqlType, int scale) throws SQLException; - void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Object x, int targetSqlType) - throws SQLException; + void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, + Object x, int targetSqlType) throws SQLException; - void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Object x) throws SQLException; + void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Object x) + throws SQLException; - void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.Reader reader, int length) - throws SQLException; + void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.Reader reader, int length) + throws SQLException; - void callableStatement_setDate(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Date x, Calendar cal) - throws SQLException; + void callableStatement_setDate(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.sql.Date x, Calendar cal) throws SQLException; - void callableStatement_setTime(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Time x, Calendar cal) - throws SQLException; + void callableStatement_setTime(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.sql.Time x, Calendar cal) throws SQLException; - void callableStatement_setTimestamp(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Timestamp x, Calendar cal) - throws SQLException; + void callableStatement_setTimestamp(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.sql.Timestamp x, Calendar cal) throws SQLException; - void callableStatement_setNull(FilterChain chain, CallableStatementProxy statement, String parameterName, int sqlType, String typeName) throws SQLException; + void callableStatement_setNull(FilterChain chain, CallableStatementProxy statement, String parameterName, + int sqlType, String typeName) throws SQLException; - String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - boolean callableStatement_getBoolean(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + boolean callableStatement_getBoolean(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - byte callableStatement_getByte(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + byte callableStatement_getByte(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - short callableStatement_getShort(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + short callableStatement_getShort(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - int callableStatement_getInt(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + int callableStatement_getInt(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - long callableStatement_getLong(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + long callableStatement_getLong(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - float callableStatement_getFloat(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + float callableStatement_getFloat(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - double callableStatement_getDouble(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + double callableStatement_getDouble(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - byte[] callableStatement_getBytes(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + byte[] callableStatement_getBytes(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException; - Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName, java.util.Map> map) - throws SQLException; + Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.util.Map> map) throws SQLException; - Ref callableStatement_getRef(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + Ref callableStatement_getRef(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - Blob callableStatement_getBlob(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + Blob callableStatement_getBlob(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - Clob callableStatement_getClob(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + Clob callableStatement_getClob(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - Array callableStatement_getArray(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + Array callableStatement_getArray(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, String parameterName, Calendar cal) throws SQLException; + java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, String parameterName, + Calendar cal) throws SQLException; - java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, String parameterName, Calendar cal) throws SQLException; + java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, String parameterName, + Calendar cal) throws SQLException; - java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, String parameterName, Calendar cal) - throws SQLException; + java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, + String parameterName, Calendar cal) throws SQLException; - java.net.URL callableStatement_getURL(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + java.net.URL callableStatement_getURL(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - RowId callableStatement_getRowId(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + RowId callableStatement_getRowId(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - RowId callableStatement_getRowId(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + RowId callableStatement_getRowId(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - void callableStatement_setRowId(FilterChain chain, CallableStatementProxy statement, String parameterName, RowId x) throws SQLException; + void callableStatement_setRowId(FilterChain chain, CallableStatementProxy statement, String parameterName, RowId x) + throws SQLException; - void callableStatement_setNString(FilterChain chain, CallableStatementProxy statement, String parameterName, String value) throws SQLException; + void callableStatement_setNString(FilterChain chain, CallableStatementProxy statement, String parameterName, + String value) throws SQLException; - void callableStatement_setNCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader value, long length) - throws SQLException; + void callableStatement_setNCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, Reader value, long length) throws SQLException; - void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, NClob value) throws SQLException; + void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + NClob value) throws SQLException; - void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader reader, long length) throws SQLException; + void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + Reader reader, long length) throws SQLException; - void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, InputStream inputStream, long length) - throws SQLException; + void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, + InputStream inputStream, long length) throws SQLException; - void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader reader, long length) throws SQLException; + void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + Reader reader, long length) throws SQLException; - NClob callableStatement_getNClob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + NClob callableStatement_getNClob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - NClob callableStatement_getNClob(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + NClob callableStatement_getNClob(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - void callableStatement_setSQLXML(FilterChain chain, CallableStatementProxy statement, String parameterName, SQLXML xmlObject) throws SQLException; + void callableStatement_setSQLXML(FilterChain chain, CallableStatementProxy statement, String parameterName, + SQLXML xmlObject) throws SQLException; - SQLXML callableStatement_getSQLXML(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + SQLXML callableStatement_getSQLXML(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - SQLXML callableStatement_getSQLXML(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + SQLXML callableStatement_getSQLXML(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - String callableStatement_getNString(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + String callableStatement_getNString(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException; - String callableStatement_getNString(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + String callableStatement_getNString(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException; - java.io.Reader callableStatement_getNCharacterStream(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + java.io.Reader callableStatement_getNCharacterStream(FilterChain chain, CallableStatementProxy statement, + int parameterIndex) throws SQLException; - java.io.Reader callableStatement_getNCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + java.io.Reader callableStatement_getNCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException; - java.io.Reader callableStatement_getCharacterStream(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException; + java.io.Reader callableStatement_getCharacterStream(FilterChain chain, CallableStatementProxy statement, + int parameterIndex) throws SQLException; - java.io.Reader callableStatement_getCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException; + java.io.Reader callableStatement_getCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException; - void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, Blob x) throws SQLException; + void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, Blob x) + throws SQLException; - void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Clob x) throws SQLException; + void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Clob x) + throws SQLException; - void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x, long length) - throws SQLException; + void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.io.InputStream x, long length) throws SQLException; - void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x, long length) - throws SQLException; + void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.io.InputStream x, long length) throws SQLException; - void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.Reader reader, long length) - throws SQLException; + void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.Reader reader, long length) + throws SQLException; - void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x) throws SQLException; + void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.io.InputStream x) throws SQLException; - void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x) - throws SQLException; + void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.io.InputStream x) throws SQLException; - void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.Reader reader) - throws SQLException; + void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.Reader reader) throws SQLException; - void callableStatement_setNCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader value) throws SQLException; + void callableStatement_setNCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, Reader value) throws SQLException; - void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader reader) throws SQLException; + void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + Reader reader) throws SQLException; - void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, InputStream inputStream) throws SQLException; + void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, + InputStream inputStream) throws SQLException; - void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader reader) throws SQLException; + void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + Reader reader) throws SQLException; T unwrap(FilterChain chain, Wrapper wrapper, java.lang.Class iface) throws java.sql.SQLException; @@ -1017,7 +1268,8 @@ public interface Filter { int clob_setString(FilterChain chain, ClobProxy wrapper, long pos, String str) throws SQLException; - int clob_setString(FilterChain chain, ClobProxy wrapper, long pos, String str, int offset, int len) throws SQLException; + int clob_setString(FilterChain chain, ClobProxy wrapper, long pos, String str, int offset, int len) + throws SQLException; void clob_truncate(FilterChain chain, ClobProxy wrapper, long len) throws SQLException; diff --git a/src/main/java/com/alibaba/druid/filter/FilterAdapter.java b/src/main/java/com/alibaba/druid/filter/FilterAdapter.java index 4b6b14ed4b..9ac8069732 100644 --- a/src/main/java/com/alibaba/druid/filter/FilterAdapter.java +++ b/src/main/java/com/alibaba/druid/filter/FilterAdapter.java @@ -68,587 +68,677 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public Array callableStatement_getArray(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public Array callableStatement_getArray(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getArray(statement, parameterIndex); } @Override - public Array callableStatement_getArray(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public Array callableStatement_getArray(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getArray(statement, parameterName); } @Override - public BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, + int parameterIndex) throws SQLException { return chain.callableStatement_getBigDecimal(statement, parameterIndex); } @Override - public BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, int parameterIndex, int scale) throws SQLException { + public BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, int scale) throws SQLException { return chain.callableStatement_getBigDecimal(statement, parameterIndex, scale); } @Override - public BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public BigDecimal callableStatement_getBigDecimal(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException { return chain.callableStatement_getBigDecimal(statement, parameterName); } @Override - public Blob callableStatement_getBlob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public Blob callableStatement_getBlob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getBlob(statement, parameterIndex); } @Override - public Blob callableStatement_getBlob(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public Blob callableStatement_getBlob(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getBlob(statement, parameterName); } @Override - public boolean callableStatement_getBoolean(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public boolean callableStatement_getBoolean(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getBoolean(statement, parameterIndex); } @Override - public boolean callableStatement_getBoolean(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public boolean callableStatement_getBoolean(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException { return chain.callableStatement_getBoolean(statement, parameterName); } @Override - public byte callableStatement_getByte(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public byte callableStatement_getByte(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getByte(statement, parameterIndex); } @Override - public byte callableStatement_getByte(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public byte callableStatement_getByte(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getByte(statement, parameterName); } @Override - public byte[] callableStatement_getBytes(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public byte[] callableStatement_getBytes(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getBytes(statement, parameterIndex); } @Override - public byte[] callableStatement_getBytes(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public byte[] callableStatement_getBytes(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getBytes(statement, parameterName); } @Override - public java.io.Reader callableStatement_getCharacterStream(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.io.Reader callableStatement_getCharacterStream(FilterChain chain, CallableStatementProxy statement, + int parameterIndex) throws SQLException { return chain.callableStatement_getCharacterStream(statement, parameterIndex); } @Override - public java.io.Reader callableStatement_getCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public java.io.Reader callableStatement_getCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException { return chain.callableStatement_getCharacterStream(statement, parameterName); } @Override - public Clob callableStatement_getClob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public Clob callableStatement_getClob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getClob(statement, parameterIndex); } @Override - public Clob callableStatement_getClob(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public Clob callableStatement_getClob(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getClob(statement, parameterName); } @Override - public java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, + int parameterIndex) throws SQLException { return chain.callableStatement_getDate(statement, parameterIndex); } @Override - public java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, int parameterIndex, Calendar cal) throws SQLException { + public java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, Calendar cal) throws SQLException { return chain.callableStatement_getDate(statement, parameterIndex, cal); } @Override - public java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException { return chain.callableStatement_getDate(statement, parameterName); } @Override - public java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, String parameterName, Calendar cal) throws SQLException { + public java.sql.Date callableStatement_getDate(FilterChain chain, CallableStatementProxy statement, + String parameterName, Calendar cal) throws SQLException { return chain.callableStatement_getDate(statement, parameterName, cal); } @Override - public double callableStatement_getDouble(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public double callableStatement_getDouble(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getDouble(statement, parameterIndex); } @Override - public double callableStatement_getDouble(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public double callableStatement_getDouble(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getDouble(statement, parameterName); } @Override - public float callableStatement_getFloat(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public float callableStatement_getFloat(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getFloat(statement, parameterIndex); } @Override - public float callableStatement_getFloat(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public float callableStatement_getFloat(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getFloat(statement, parameterName); } @Override - public int callableStatement_getInt(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public int callableStatement_getInt(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getInt(statement, parameterIndex); } @Override - public int callableStatement_getInt(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public int callableStatement_getInt(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getInt(statement, parameterName); } @Override - public long callableStatement_getLong(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public long callableStatement_getLong(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getLong(statement, parameterIndex); } @Override - public long callableStatement_getLong(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public long callableStatement_getLong(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getLong(statement, parameterName); } @Override - public java.io.Reader callableStatement_getNCharacterStream(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.io.Reader callableStatement_getNCharacterStream(FilterChain chain, CallableStatementProxy statement, + int parameterIndex) throws SQLException { return chain.callableStatement_getNCharacterStream(statement, parameterIndex); } @Override - public java.io.Reader callableStatement_getNCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public java.io.Reader callableStatement_getNCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException { return chain.callableStatement_getNCharacterStream(statement, parameterName); } @Override - public NClob callableStatement_getNClob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public NClob callableStatement_getNClob(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getNClob(statement, parameterIndex); } @Override - public NClob callableStatement_getNClob(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public NClob callableStatement_getNClob(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getNClob(statement, parameterName); } @Override - public String callableStatement_getNString(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public String callableStatement_getNString(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getNString(statement, parameterIndex); } @Override - public String callableStatement_getNString(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public String callableStatement_getNString(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getNString(statement, parameterName); } @Override - public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getObject(statement, parameterIndex); } @Override - public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex, java.util.Map> map) - throws SQLException { + public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex, + java.util.Map> map) throws SQLException { return chain.callableStatement_getObject(statement, parameterIndex, map); } @Override - public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getObject(statement, parameterName); } @Override - public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName, java.util.Map> map) - throws SQLException { + public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.util.Map> map) + throws SQLException { return chain.callableStatement_getObject(statement, parameterName, map); } @Override - public Ref callableStatement_getRef(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public Ref callableStatement_getRef(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getRef(statement, parameterIndex); } @Override - public Ref callableStatement_getRef(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public Ref callableStatement_getRef(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getRef(statement, parameterName); } @Override - public RowId callableStatement_getRowId(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public RowId callableStatement_getRowId(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getRowId(statement, parameterIndex); } @Override - public RowId callableStatement_getRowId(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public RowId callableStatement_getRowId(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getRowId(statement, parameterName); } @Override - public short callableStatement_getShort(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public short callableStatement_getShort(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getShort(statement, parameterIndex); } @Override - public short callableStatement_getShort(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public short callableStatement_getShort(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getShort(statement, parameterName); } @Override - public SQLXML callableStatement_getSQLXML(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public SQLXML callableStatement_getSQLXML(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getSQLXML(statement, parameterIndex); } @Override - public SQLXML callableStatement_getSQLXML(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public SQLXML callableStatement_getSQLXML(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getSQLXML(statement, parameterName); } @Override - public String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getString(statement, parameterIndex); } @Override - public String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { return chain.callableStatement_getString(statement, parameterName); } @Override - public java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, + int parameterIndex) throws SQLException { return chain.callableStatement_getTime(statement, parameterIndex); } // ////////////////////////////// @Override - public java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, int parameterIndex, Calendar cal) throws SQLException { + public java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, Calendar cal) throws SQLException { return chain.callableStatement_getTime(statement, parameterIndex, cal); } @Override - public java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException { return chain.callableStatement_getTime(statement, parameterName); } @Override - public java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, String parameterName, Calendar cal) throws SQLException { + public java.sql.Time callableStatement_getTime(FilterChain chain, CallableStatementProxy statement, + String parameterName, Calendar cal) throws SQLException { return chain.callableStatement_getTime(statement, parameterName, cal); } @Override - public java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, + int parameterIndex) throws SQLException { return chain.callableStatement_getTimestamp(statement, parameterIndex); } @Override - public java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, int parameterIndex, Calendar cal) - throws SQLException { + public java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, Calendar cal) throws SQLException { return chain.callableStatement_getTimestamp(statement, parameterIndex, cal); } @Override - public java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException { return chain.callableStatement_getTimestamp(statement, parameterName); } @Override - public java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, String parameterName, Calendar cal) - throws SQLException { + public java.sql.Timestamp callableStatement_getTimestamp(FilterChain chain, CallableStatementProxy statement, + String parameterName, Calendar cal) throws SQLException { return chain.callableStatement_getTimestamp(statement, parameterName, cal); } @Override - public java.net.URL callableStatement_getURL(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.net.URL callableStatement_getURL(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { return chain.callableStatement_getURL(statement, parameterIndex); } @Override - public java.net.URL callableStatement_getURL(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public java.net.URL callableStatement_getURL(FilterChain chain, CallableStatementProxy statement, + String parameterName) throws SQLException { return chain.callableStatement_getURL(statement, parameterName); } // /////////////// @Override - public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, int parameterIndex, int sqlType) - throws SQLException { + public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, int sqlType) throws SQLException { chain.callableStatement_registerOutParameter(statement, parameterIndex, sqlType); } @Override - public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, int parameterIndex, int sqlType, int scale) - throws SQLException { + public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, int sqlType, int scale) throws SQLException { chain.callableStatement_registerOutParameter(statement, parameterIndex, sqlType, scale); } @Override - public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, int parameterIndex, int sqlType, String typeName) - throws SQLException { + public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + int parameterIndex, int sqlType, String typeName) + throws SQLException { chain.callableStatement_registerOutParameter(statement, parameterIndex, sqlType, typeName); } @Override - public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, String parameterName, int sqlType) - throws SQLException { + public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + String parameterName, int sqlType) throws SQLException { chain.callableStatement_registerOutParameter(statement, parameterName, sqlType); } @Override - public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, String parameterName, int sqlType, int scale) - throws SQLException { + public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + String parameterName, int sqlType, int scale) + throws SQLException { chain.callableStatement_registerOutParameter(statement, parameterName, sqlType, scale); } @Override - public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, String parameterName, int sqlType, String typeName) - throws SQLException { + public void callableStatement_registerOutParameter(FilterChain chain, CallableStatementProxy statement, + String parameterName, int sqlType, String typeName) + throws SQLException { chain.callableStatement_registerOutParameter(statement, parameterName, sqlType, typeName); } @Override - public void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x) - throws SQLException { + public void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.InputStream x) throws SQLException { chain.callableStatement_setAsciiStream(statement, parameterName, x); } @Override - public void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x, int length) - throws SQLException { + public void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.InputStream x, int length) + throws SQLException { chain.callableStatement_setAsciiStream(statement, parameterName, x, length); } @Override - public void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x, long length) - throws SQLException { + public void callableStatement_setAsciiStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.InputStream x, long length) + throws SQLException { chain.callableStatement_setAsciiStream(statement, parameterName, x, length); } @Override - public void callableStatement_setBigDecimal(FilterChain chain, CallableStatementProxy statement, String parameterName, BigDecimal x) throws SQLException { + public void callableStatement_setBigDecimal(FilterChain chain, CallableStatementProxy statement, + String parameterName, BigDecimal x) throws SQLException { chain.callableStatement_setBigDecimal(statement, parameterName, x); } @Override - public void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x) - throws SQLException { + public void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.InputStream x) throws SQLException { chain.callableStatement_setBinaryStream(statement, parameterName, x); } @Override - public void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x, int length) - throws SQLException { + public void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.InputStream x, int length) + throws SQLException { chain.callableStatement_setBinaryStream(statement, parameterName, x, length); } @Override - public void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.InputStream x, long length) - throws SQLException { + public void callableStatement_setBinaryStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.InputStream x, long length) + throws SQLException { chain.callableStatement_setBinaryStream(statement, parameterName, x, length); } @Override - public void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, Blob x) throws SQLException { + public void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, + Blob x) throws SQLException { chain.callableStatement_setBlob(statement, parameterName, x); } @Override - public void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, InputStream inputStream) - throws SQLException { + public void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, + InputStream inputStream) throws SQLException { chain.callableStatement_setBlob(statement, parameterName, inputStream); } @Override - public void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, InputStream inputStream, long length) - throws SQLException { + public void callableStatement_setBlob(FilterChain chain, CallableStatementProxy statement, String parameterName, + InputStream inputStream, long length) throws SQLException { chain.callableStatement_setBlob(statement, parameterName, inputStream, length); } @Override - public void callableStatement_setBoolean(FilterChain chain, CallableStatementProxy statement, String parameterName, boolean x) throws SQLException { + public void callableStatement_setBoolean(FilterChain chain, CallableStatementProxy statement, String parameterName, + boolean x) throws SQLException { chain.callableStatement_setBoolean(statement, parameterName, x); } @Override - public void callableStatement_setByte(FilterChain chain, CallableStatementProxy statement, String parameterName, byte x) throws SQLException { + public void callableStatement_setByte(FilterChain chain, CallableStatementProxy statement, String parameterName, + byte x) throws SQLException { chain.callableStatement_setByte(statement, parameterName, x); } @Override - public void callableStatement_setBytes(FilterChain chain, CallableStatementProxy statement, String parameterName, byte x[]) throws SQLException { + public void callableStatement_setBytes(FilterChain chain, CallableStatementProxy statement, String parameterName, + byte x[]) throws SQLException { chain.callableStatement_setBytes(statement, parameterName, x); } @Override - public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.Reader reader) - throws SQLException { + public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.Reader reader) throws SQLException { chain.callableStatement_setCharacterStream(statement, parameterName, reader); } @Override - public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.Reader reader, - int length) throws SQLException { + public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.Reader reader, int length) + throws SQLException { chain.callableStatement_setCharacterStream(statement, parameterName, reader, length); } @Override - public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.Reader reader, - long length) throws SQLException { + public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.Reader reader, long length) + throws SQLException { chain.callableStatement_setCharacterStream(statement, parameterName, reader, length); } @Override - public void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Clob x) throws SQLException { + public void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + Clob x) throws SQLException { chain.callableStatement_setClob(statement, parameterName, x); } @Override - public void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader reader) throws SQLException { + public void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + Reader reader) throws SQLException { chain.callableStatement_setClob(statement, parameterName, reader); } @Override - public void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader reader, long length) - throws SQLException { + public void callableStatement_setClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + Reader reader, long length) throws SQLException { chain.callableStatement_setClob(statement, parameterName, reader, length); } @Override - public void callableStatement_setDate(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Date x) throws SQLException { + public void callableStatement_setDate(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.sql.Date x) throws SQLException { chain.callableStatement_setDate(statement, parameterName, x); } @Override - public void callableStatement_setDate(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Date x, Calendar cal) - throws SQLException { + public void callableStatement_setDate(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.sql.Date x, Calendar cal) throws SQLException { chain.callableStatement_setDate(statement, parameterName, x, cal); } @Override - public void callableStatement_setDouble(FilterChain chain, CallableStatementProxy statement, String parameterName, double x) throws SQLException { + public void callableStatement_setDouble(FilterChain chain, CallableStatementProxy statement, String parameterName, + double x) throws SQLException { chain.callableStatement_setDouble(statement, parameterName, x); } @Override - public void callableStatement_setFloat(FilterChain chain, CallableStatementProxy statement, String parameterName, float x) throws SQLException { + public void callableStatement_setFloat(FilterChain chain, CallableStatementProxy statement, String parameterName, + float x) throws SQLException { chain.callableStatement_setFloat(statement, parameterName, x); } @Override - public void callableStatement_setInt(FilterChain chain, CallableStatementProxy statement, String parameterName, int x) throws SQLException { + public void callableStatement_setInt(FilterChain chain, CallableStatementProxy statement, String parameterName, + int x) throws SQLException { chain.callableStatement_setInt(statement, parameterName, x); } @Override - public void callableStatement_setLong(FilterChain chain, CallableStatementProxy statement, String parameterName, long x) throws SQLException { + public void callableStatement_setLong(FilterChain chain, CallableStatementProxy statement, String parameterName, + long x) throws SQLException { chain.callableStatement_setLong(statement, parameterName, x); } @Override - public void callableStatement_setNCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader value) - throws SQLException { + public void callableStatement_setNCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, Reader value) throws SQLException { chain.callableStatement_setNCharacterStream(statement, parameterName, value); } @Override - public void callableStatement_setNCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader value, long length) - throws SQLException { + public void callableStatement_setNCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, Reader value, long length) + throws SQLException { chain.callableStatement_setNCharacterStream(statement, parameterName, value, length); } @Override - public void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, NClob value) throws SQLException { + public void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + NClob value) throws SQLException { chain.callableStatement_setNClob(statement, parameterName, value); } @Override - public void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader reader) throws SQLException { + public void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + Reader reader) throws SQLException { chain.callableStatement_setNClob(statement, parameterName, reader); } @Override - public void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, Reader reader, long length) - throws SQLException { + public void callableStatement_setNClob(FilterChain chain, CallableStatementProxy statement, String parameterName, + Reader reader, long length) throws SQLException { chain.callableStatement_setNClob(statement, parameterName, reader, length); } @Override - public void callableStatement_setNString(FilterChain chain, CallableStatementProxy statement, String parameterName, String value) throws SQLException { + public void callableStatement_setNString(FilterChain chain, CallableStatementProxy statement, String parameterName, + String value) throws SQLException { chain.callableStatement_setNString(statement, parameterName, value); } @Override - public void callableStatement_setNull(FilterChain chain, CallableStatementProxy statement, String parameterName, int sqlType) throws SQLException { + public void callableStatement_setNull(FilterChain chain, CallableStatementProxy statement, String parameterName, + int sqlType) throws SQLException { chain.callableStatement_setNull(statement, parameterName, sqlType); } @Override - public void callableStatement_setNull(FilterChain chain, CallableStatementProxy statement, String parameterName, int sqlType, String typeName) - throws SQLException { + public void callableStatement_setNull(FilterChain chain, CallableStatementProxy statement, String parameterName, + int sqlType, String typeName) throws SQLException { chain.callableStatement_setNull(statement, parameterName, sqlType, typeName); } @Override - public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Object x) throws SQLException { + public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, + Object x) throws SQLException { chain.callableStatement_setObject(statement, parameterName, x); } @Override - public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Object x, int targetSqlType) - throws SQLException { + public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, + Object x, int targetSqlType) throws SQLException { chain.callableStatement_setObject(statement, parameterName, x, targetSqlType); } @Override - public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Object x, int targetSqlType, int scale) - throws SQLException { + public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, + Object x, int targetSqlType, int scale) throws SQLException { chain.callableStatement_setObject(statement, parameterName, x, targetSqlType, scale); } @Override - public void callableStatement_setRowId(FilterChain chain, CallableStatementProxy statement, String parameterName, RowId x) throws SQLException { + public void callableStatement_setRowId(FilterChain chain, CallableStatementProxy statement, String parameterName, + RowId x) throws SQLException { chain.callableStatement_setRowId(statement, parameterName, x); } @Override - public void callableStatement_setShort(FilterChain chain, CallableStatementProxy statement, String parameterName, short x) throws SQLException { + public void callableStatement_setShort(FilterChain chain, CallableStatementProxy statement, String parameterName, + short x) throws SQLException { chain.callableStatement_setShort(statement, parameterName, x); } @Override - public void callableStatement_setSQLXML(FilterChain chain, CallableStatementProxy statement, String parameterName, SQLXML xmlObject) throws SQLException { + public void callableStatement_setSQLXML(FilterChain chain, CallableStatementProxy statement, String parameterName, + SQLXML xmlObject) throws SQLException { chain.callableStatement_setSQLXML(statement, parameterName, xmlObject); } @Override - public void callableStatement_setString(FilterChain chain, CallableStatementProxy statement, String parameterName, String x) throws SQLException { + public void callableStatement_setString(FilterChain chain, CallableStatementProxy statement, String parameterName, + String x) throws SQLException { chain.callableStatement_setString(statement, parameterName, x); } @Override - public void callableStatement_setTime(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Time x) throws SQLException { + public void callableStatement_setTime(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.sql.Time x) throws SQLException { chain.callableStatement_setTime(statement, parameterName, x); } @Override - public void callableStatement_setTime(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Time x, Calendar cal) - throws SQLException { + public void callableStatement_setTime(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.sql.Time x, Calendar cal) throws SQLException { chain.callableStatement_setTime(statement, parameterName, x, cal); } @Override - public void callableStatement_setTimestamp(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Timestamp x) - throws SQLException { + public void callableStatement_setTimestamp(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.sql.Timestamp x) throws SQLException { chain.callableStatement_setTimestamp(statement, parameterName, x); } @Override - public void callableStatement_setTimestamp(FilterChain chain, CallableStatementProxy statement, String parameterName, java.sql.Timestamp x, Calendar cal) - throws SQLException { + public void callableStatement_setTimestamp(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.sql.Timestamp x, Calendar cal) + throws SQLException { chain.callableStatement_setTimestamp(statement, parameterName, x, cal); } @Override - public void callableStatement_setURL(FilterChain chain, CallableStatementProxy statement, String parameterName, java.net.URL val) throws SQLException { + public void callableStatement_setURL(FilterChain chain, CallableStatementProxy statement, String parameterName, + java.net.URL val) throws SQLException { chain.callableStatement_setURL(statement, parameterName, val); } @@ -678,7 +768,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public Array connection_createArrayOf(FilterChain chain, ConnectionProxy connection, String typeName, Object[] elements) throws SQLException { + public Array connection_createArrayOf(FilterChain chain, ConnectionProxy connection, String typeName, + Object[] elements) throws SQLException { return chain.connection_createArrayOf(connection, typeName, elements); } @@ -708,19 +799,21 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, int resultSetConcurrency) - throws SQLException { + public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, + int resultSetConcurrency) throws SQLException { return chain.connection_createStatement(connection, resultSetType, resultSetType); } @Override - public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, int resultSetConcurrency, - int resultSetHoldability) throws SQLException { + public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, + int resultSetConcurrency, int resultSetHoldability) + throws SQLException { return chain.connection_createStatement(connection, resultSetType, resultSetType, resultSetHoldability); } @Override - public Struct connection_createStruct(FilterChain chain, ConnectionProxy connection, String typeName, Object[] attributes) throws SQLException { + public Struct connection_createStruct(FilterChain chain, ConnectionProxy connection, String typeName, + Object[] attributes) throws SQLException { return chain.connection_createStruct(connection, typeName, attributes); } @@ -740,7 +833,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public String connection_getClientInfo(FilterChain chain, ConnectionProxy connection, String name) throws SQLException { + public String connection_getClientInfo(FilterChain chain, ConnectionProxy connection, String name) + throws SQLException { return chain.connection_getClientInfo(connection, name); } @@ -760,7 +854,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public Map> connection_getTypeMap(FilterChain chain, ConnectionProxy connection) throws SQLException { + public Map> connection_getTypeMap(FilterChain chain, ConnectionProxy connection) + throws SQLException { return chain.connection_getTypeMap(connection); } @@ -790,59 +885,67 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException { + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql) + throws SQLException { return chain.connection_prepareCall(connection, sql); } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency) - throws SQLException { + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency) + throws SQLException { return chain.connection_prepareCall(connection, sql, resultSetType, resultSetConcurrency); } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { return chain.connection_prepareCall(connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql) + throws SQLException { return chain.connection_prepareStatement(connection, sql); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int autoGeneratedKeys) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int autoGeneratedKeys) throws SQLException { return chain.connection_prepareStatement(connection, sql, autoGeneratedKeys); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int resultSetType, int resultSetConcurrency) + throws SQLException { return chain.connection_prepareStatement(connection, sql, resultSetType, resultSetConcurrency); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency, int resultSetHoldability) throws SQLException { - return chain.connection_prepareStatement(connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { + return chain.connection_prepareStatement(connection, sql, resultSetType, resultSetConcurrency, + resultSetHoldability); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int[] columnIndexes) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int[] columnIndexes) throws SQLException { return chain.connection_prepareStatement(connection, sql, columnIndexes); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, String[] columnNames) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, String[] columnNames) throws SQLException { return chain.connection_prepareStatement(connection, sql, columnNames); } @Override - public void connection_releaseSavepoint(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) throws SQLException { + public void connection_releaseSavepoint(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) + throws SQLException { chain.connection_releaseSavepoint(connection, savepoint); } @@ -852,37 +955,44 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public void connection_rollback(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) throws SQLException { + public void connection_rollback(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) + throws SQLException { chain.connection_rollback(connection, savepoint); } @Override - public void connection_setAutoCommit(FilterChain chain, ConnectionProxy connection, boolean autoCommit) throws SQLException { + public void connection_setAutoCommit(FilterChain chain, ConnectionProxy connection, boolean autoCommit) + throws SQLException { chain.connection_setAutoCommit(connection, autoCommit); } @Override - public void connection_setCatalog(FilterChain chain, ConnectionProxy connection, String catalog) throws SQLException { + public void connection_setCatalog(FilterChain chain, ConnectionProxy connection, String catalog) + throws SQLException { chain.connection_setCatalog(connection, catalog); } @Override - public void connection_setClientInfo(FilterChain chain, ConnectionProxy connection, Properties properties) throws SQLClientInfoException { + public void connection_setClientInfo(FilterChain chain, ConnectionProxy connection, Properties properties) + throws SQLClientInfoException { chain.connection_setClientInfo(connection, properties); } @Override - public void connection_setClientInfo(FilterChain chain, ConnectionProxy connection, String name, String value) throws SQLClientInfoException { + public void connection_setClientInfo(FilterChain chain, ConnectionProxy connection, String name, String value) + throws SQLClientInfoException { chain.connection_setClientInfo(connection, name, value); } @Override - public void connection_setHoldability(FilterChain chain, ConnectionProxy connection, int holdability) throws SQLException { + public void connection_setHoldability(FilterChain chain, ConnectionProxy connection, int holdability) + throws SQLException { chain.connection_setHoldability(connection, holdability); } @Override - public void connection_setReadOnly(FilterChain chain, ConnectionProxy connection, boolean readOnly) throws SQLException { + public void connection_setReadOnly(FilterChain chain, ConnectionProxy connection, boolean readOnly) + throws SQLException { chain.connection_setReadOnly(connection, readOnly); } @@ -892,17 +1002,20 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public Savepoint connection_setSavepoint(FilterChain chain, ConnectionProxy connection, String name) throws SQLException { + public Savepoint connection_setSavepoint(FilterChain chain, ConnectionProxy connection, String name) + throws SQLException { return chain.connection_setSavepoint(connection, name); } @Override - public void connection_setTransactionIsolation(FilterChain chain, ConnectionProxy connection, int level) throws SQLException { + public void connection_setTransactionIsolation(FilterChain chain, ConnectionProxy connection, int level) + throws SQLException { chain.connection_setTransactionIsolation(connection, level); } @Override - public void connection_setTypeMap(FilterChain chain, ConnectionProxy connection, Map> map) throws SQLException { + public void connection_setTypeMap(FilterChain chain, ConnectionProxy connection, Map> map) + throws SQLException { chain.connection_setTypeMap(connection, map); } @@ -917,7 +1030,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public void preparedStatement_clearParameters(FilterChain chain, PreparedStatementProxy statement) throws SQLException { + public void preparedStatement_clearParameters(FilterChain chain, PreparedStatementProxy statement) + throws SQLException { chain.preparedStatement_clearParameters(statement); } @@ -927,7 +1041,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public ResultSetProxy preparedStatement_executeQuery(FilterChain chain, PreparedStatementProxy statement) throws SQLException { + public ResultSetProxy preparedStatement_executeQuery(FilterChain chain, PreparedStatementProxy statement) + throws SQLException { return chain.preparedStatement_executeQuery(statement); } @@ -937,274 +1052,310 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public ResultSetMetaData preparedStatement_getMetaData(FilterChain chain, PreparedStatementProxy statement) throws SQLException { + public ResultSetMetaData preparedStatement_getMetaData(FilterChain chain, PreparedStatementProxy statement) + throws SQLException { return chain.preparedStatement_getMetaData(statement); } @Override - public ParameterMetaData preparedStatement_getParameterMetaData(FilterChain chain, PreparedStatementProxy statement) throws SQLException { + public ParameterMetaData preparedStatement_getParameterMetaData(FilterChain chain, PreparedStatementProxy statement) + throws SQLException { return chain.preparedStatement_getParameterMetaData(statement); } @Override - public void preparedStatement_setArray(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Array x) throws SQLException { + public void preparedStatement_setArray(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Array x) throws SQLException { chain.preparedStatement_setArray(statement, parameterIndex, x); } @Override - public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) - throws SQLException { + public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x) throws SQLException { chain.preparedStatement_setAsciiStream(statement, parameterIndex, x); } @Override - public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) - throws SQLException { + public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x, int length) + throws SQLException { chain.preparedStatement_setAsciiStream(statement, parameterIndex, x, length); } @Override - public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) - throws SQLException { + public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x, long length) + throws SQLException { chain.preparedStatement_setAsciiStream(statement, parameterIndex, x, length); } @Override - public void preparedStatement_setBigDecimal(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, BigDecimal x) throws SQLException { + public void preparedStatement_setBigDecimal(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, BigDecimal x) throws SQLException { chain.preparedStatement_setBigDecimal(statement, parameterIndex, x); } @Override - public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) - throws SQLException { + public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x) throws SQLException { chain.preparedStatement_setBinaryStream(statement, parameterIndex, x); } @Override - public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) - throws SQLException { + public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x, int length) + throws SQLException { chain.preparedStatement_setBinaryStream(statement, parameterIndex, x, length); } @Override - public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) - throws SQLException { + public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x, long length) + throws SQLException { chain.preparedStatement_setBinaryStream(statement, parameterIndex, x, length); } @Override - public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Blob x) throws SQLException { + public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Blob x) throws SQLException { chain.preparedStatement_setBlob(statement, parameterIndex, x); } @Override - public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream inputStream) throws SQLException { + public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + InputStream inputStream) throws SQLException { chain.preparedStatement_setBlob(statement, parameterIndex, inputStream); } @Override - public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream inputStream, long length) - throws SQLException { + public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + InputStream inputStream, long length) throws SQLException { chain.preparedStatement_setBlob(statement, parameterIndex, inputStream, length); } @Override - public void preparedStatement_setBoolean(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, boolean x) throws SQLException { + public void preparedStatement_setBoolean(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + boolean x) throws SQLException { chain.preparedStatement_setBoolean(statement, parameterIndex, x); } @Override - public void preparedStatement_setByte(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, byte x) throws SQLException { + public void preparedStatement_setByte(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + byte x) throws SQLException { chain.preparedStatement_setByte(statement, parameterIndex, x); } @Override - public void preparedStatement_setBytes(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, byte x[]) throws SQLException { + public void preparedStatement_setBytes(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + byte x[]) throws SQLException { chain.preparedStatement_setBytes(statement, parameterIndex, x); } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.Reader reader) throws SQLException { chain.preparedStatement_setCharacterStream(statement, parameterIndex, reader); } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, int length) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.Reader reader, int length) + throws SQLException { chain.preparedStatement_setCharacterStream(statement, parameterIndex, reader, length); } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, long length) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.Reader reader, long length) + throws SQLException { chain.preparedStatement_setCharacterStream(statement, parameterIndex, reader, length); } @Override - public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Clob x) throws SQLException { + public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Clob x) throws SQLException { chain.preparedStatement_setClob(statement, parameterIndex, x); } @Override - public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader) throws SQLException { + public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader) throws SQLException { chain.preparedStatement_setClob(statement, parameterIndex, reader); } @Override - public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader, long length) - throws SQLException { + public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader, long length) throws SQLException { chain.preparedStatement_setClob(statement, parameterIndex, reader, length); } @Override - public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Date x) throws SQLException { + public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Date x) throws SQLException { chain.preparedStatement_setDate(statement, parameterIndex, x); } @Override - public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Date x, Calendar cal) - throws SQLException { + public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Date x, Calendar cal) throws SQLException { chain.preparedStatement_setDate(statement, parameterIndex, x, cal); } @Override - public void preparedStatement_setDouble(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, double x) throws SQLException { + public void preparedStatement_setDouble(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + double x) throws SQLException { chain.preparedStatement_setDouble(statement, parameterIndex, x); } @Override - public void preparedStatement_setFloat(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, float x) throws SQLException { + public void preparedStatement_setFloat(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + float x) throws SQLException { chain.preparedStatement_setFloat(statement, parameterIndex, x); } @Override - public void preparedStatement_setInt(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int x) throws SQLException { + public void preparedStatement_setInt(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int x) + throws SQLException { chain.preparedStatement_setInt(statement, parameterIndex, x); } @Override - public void preparedStatement_setLong(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, long x) throws SQLException { + public void preparedStatement_setLong(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + long x) throws SQLException { chain.preparedStatement_setLong(statement, parameterIndex, x); } @Override - public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader value) - throws SQLException { + public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, Reader value) throws SQLException { chain.preparedStatement_setNCharacterStream(statement, parameterIndex, value); } @Override - public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader value, long length) - throws SQLException { + public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, Reader value, long length) + throws SQLException { chain.preparedStatement_setNCharacterStream(statement, parameterIndex, value, length); } @Override - public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, NClob value) throws SQLException { + public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + NClob value) throws SQLException { chain.preparedStatement_setNClob(statement, parameterIndex, value); } @Override - public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader) throws SQLException { + public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader) throws SQLException { chain.preparedStatement_setNClob(statement, parameterIndex, reader); } @Override - public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader, long length) - throws SQLException { + public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader, long length) throws SQLException { chain.preparedStatement_setNClob(statement, parameterIndex, reader, length); } @Override - public void preparedStatement_setNString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, String value) throws SQLException { + public void preparedStatement_setNString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + String value) throws SQLException { chain.preparedStatement_setNString(statement, parameterIndex, value); } @Override - public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int sqlType) throws SQLException { + public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + int sqlType) throws SQLException { chain.preparedStatement_setNull(statement, parameterIndex, sqlType); } @Override - public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int sqlType, String typeName) - throws SQLException { + public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + int sqlType, String typeName) throws SQLException { chain.preparedStatement_setNull(statement, parameterIndex, sqlType, typeName); } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x) throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x) throws SQLException { chain.preparedStatement_setObject(statement, parameterIndex, x); } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType) - throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x, int targetSqlType) throws SQLException { chain.preparedStatement_setObject(statement, parameterIndex, x, targetSqlType); } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType, - int scaleOrLength) throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x, int targetSqlType, int scaleOrLength) throws SQLException { chain.preparedStatement_setObject(statement, parameterIndex, x, targetSqlType, scaleOrLength); } @Override - public void preparedStatement_setRef(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Ref x) throws SQLException { + public void preparedStatement_setRef(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Ref x) + throws SQLException { chain.preparedStatement_setRef(statement, parameterIndex, x); } @Override - public void preparedStatement_setRowId(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, RowId x) throws SQLException { + public void preparedStatement_setRowId(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + RowId x) throws SQLException { chain.preparedStatement_setRowId(statement, parameterIndex, x); } @Override - public void preparedStatement_setShort(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, short x) throws SQLException { + public void preparedStatement_setShort(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + short x) throws SQLException { chain.preparedStatement_setShort(statement, parameterIndex, x); } @Override - public void preparedStatement_setSQLXML(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, SQLXML xmlObject) throws SQLException { + public void preparedStatement_setSQLXML(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + SQLXML xmlObject) throws SQLException { chain.preparedStatement_setSQLXML(statement, parameterIndex, xmlObject); } @Override - public void preparedStatement_setString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, String x) throws SQLException { + public void preparedStatement_setString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + String x) throws SQLException { chain.preparedStatement_setString(statement, parameterIndex, x); } @Override - public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Time x) throws SQLException { + public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Time x) throws SQLException { chain.preparedStatement_setTime(statement, parameterIndex, x); } @Override - public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Time x, Calendar cal) - throws SQLException { + public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Time x, Calendar cal) throws SQLException { chain.preparedStatement_setTime(statement, parameterIndex, x, cal); } @Override - public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Timestamp x) - throws SQLException { + public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Timestamp x) throws SQLException { chain.preparedStatement_setTimestamp(statement, parameterIndex, x); } @Override - public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Timestamp x, Calendar cal) - throws SQLException { + public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Timestamp x, Calendar cal) throws SQLException { chain.preparedStatement_setTimestamp(statement, parameterIndex, x, cal); } @Override - public void preparedStatement_setUnicodeStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) - throws SQLException { + public void preparedStatement_setUnicodeStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x, int length) + throws SQLException { chain.preparedStatement_setUnicodeStream(statement, parameterIndex, x, length); } @Override - public void preparedStatement_setURL(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.net.URL x) throws SQLException { + public void preparedStatement_setURL(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.net.URL x) throws SQLException { chain.preparedStatement_setURL(statement, parameterIndex, x); } @@ -1264,42 +1415,50 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public java.io.InputStream resultSet_getAsciiStream(FilterChain chain, ResultSetProxy result, int columnIndex) throws SQLException { + public java.io.InputStream resultSet_getAsciiStream(FilterChain chain, ResultSetProxy result, int columnIndex) + throws SQLException { return chain.resultSet_getAsciiStream(result, columnIndex); } @Override - public java.io.InputStream resultSet_getAsciiStream(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public java.io.InputStream resultSet_getAsciiStream(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getAsciiStream(result, columnLabel); } @Override - public BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy result, int columnIndex) throws SQLException { + public BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy result, int columnIndex) + throws SQLException { return chain.resultSet_getBigDecimal(result, columnIndex); } @Override - public BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy result, int columnIndex, int scale) throws SQLException { + public BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy result, int columnIndex, int scale) + throws SQLException { return chain.resultSet_getBigDecimal(result, columnIndex, scale); } @Override - public BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getBigDecimal(result, columnLabel); } @Override - public BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy result, String columnLabel, int scale) throws SQLException { + public BigDecimal resultSet_getBigDecimal(FilterChain chain, ResultSetProxy result, String columnLabel, int scale) + throws SQLException { return chain.resultSet_getBigDecimal(result, columnLabel, scale); } @Override - public java.io.InputStream resultSet_getBinaryStream(FilterChain chain, ResultSetProxy result, int columnIndex) throws SQLException { + public java.io.InputStream resultSet_getBinaryStream(FilterChain chain, ResultSetProxy result, int columnIndex) + throws SQLException { return chain.resultSet_getBinaryStream(result, columnIndex); } @Override - public java.io.InputStream resultSet_getBinaryStream(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public java.io.InputStream resultSet_getBinaryStream(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getBinaryStream(result, columnLabel); } @@ -1319,7 +1478,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public boolean resultSet_getBoolean(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public boolean resultSet_getBoolean(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getBoolean(result, columnLabel); } @@ -1344,12 +1504,14 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public java.io.Reader resultSet_getCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex) throws SQLException { + public java.io.Reader resultSet_getCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex) + throws SQLException { return chain.resultSet_getCharacterStream(result, columnIndex); } @Override - public java.io.Reader resultSet_getCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public java.io.Reader resultSet_getCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getCharacterStream(result, columnLabel); } @@ -1374,22 +1536,26 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy result, int columnIndex) throws SQLException { + public java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy result, int columnIndex) + throws SQLException { return chain.resultSet_getDate(result, columnIndex); } @Override - public java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy result, int columnIndex, Calendar cal) throws SQLException { + public java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy result, int columnIndex, Calendar cal) + throws SQLException { return chain.resultSet_getDate(result, columnIndex, cal); } @Override - public java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getDate(result, columnLabel); } @Override - public java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy result, String columnLabel, Calendar cal) throws SQLException { + public java.sql.Date resultSet_getDate(FilterChain chain, ResultSetProxy result, String columnLabel, Calendar cal) + throws SQLException { return chain.resultSet_getDate(result, columnLabel, cal); } @@ -1454,12 +1620,14 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public java.io.Reader resultSet_getNCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex) throws SQLException { + public java.io.Reader resultSet_getNCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex) + throws SQLException { return chain.resultSet_getNCharacterStream(result, columnIndex); } @Override - public java.io.Reader resultSet_getNCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public java.io.Reader resultSet_getNCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getNCharacterStream(result, columnLabel); } @@ -1479,7 +1647,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public String resultSet_getNString(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public String resultSet_getNString(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getNString(result, columnLabel); } @@ -1489,7 +1658,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, int columnIndex, java.util.Map> map) throws SQLException { + public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, int columnIndex, + java.util.Map> map) throws SQLException { return chain.resultSet_getObject(result, columnIndex, map); } @@ -1499,7 +1669,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, String columnLabel, java.util.Map> map) throws SQLException { + public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, String columnLabel, + java.util.Map> map) throws SQLException { return chain.resultSet_getObject(result, columnLabel, map); } @@ -1566,42 +1737,50 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy result, int columnIndex) throws SQLException { + public java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy result, int columnIndex) + throws SQLException { return chain.resultSet_getTime(result, columnIndex); } @Override - public java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy result, int columnIndex, Calendar cal) throws SQLException { + public java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy result, int columnIndex, Calendar cal) + throws SQLException { return chain.resultSet_getTime(result, columnIndex, cal); } @Override - public java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getTime(result, columnLabel); } @Override - public java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy result, String columnLabel, Calendar cal) throws SQLException { + public java.sql.Time resultSet_getTime(FilterChain chain, ResultSetProxy result, String columnLabel, Calendar cal) + throws SQLException { return chain.resultSet_getTime(result, columnLabel, cal); } @Override - public java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy result, int columnIndex) throws SQLException { + public java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy result, int columnIndex) + throws SQLException { return chain.resultSet_getTimestamp(result, columnIndex); } @Override - public java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy result, int columnIndex, Calendar cal) throws SQLException { + public java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy result, int columnIndex, + Calendar cal) throws SQLException { return chain.resultSet_getTimestamp(result, columnIndex, cal); } @Override - public java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getTimestamp(result, columnLabel); } @Override - public java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy result, String columnLabel, Calendar cal) throws SQLException { + public java.sql.Timestamp resultSet_getTimestamp(FilterChain chain, ResultSetProxy result, String columnLabel, + Calendar cal) throws SQLException { return chain.resultSet_getTimestamp(result, columnLabel, cal); } @@ -1611,12 +1790,14 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public java.io.InputStream resultSet_getUnicodeStream(FilterChain chain, ResultSetProxy result, int columnIndex) throws SQLException { + public java.io.InputStream resultSet_getUnicodeStream(FilterChain chain, ResultSetProxy result, int columnIndex) + throws SQLException { return chain.resultSet_getUnicodeStream(result, columnIndex); } @Override - public java.io.InputStream resultSet_getUnicodeStream(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public java.io.InputStream resultSet_getUnicodeStream(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getUnicodeStream(result, columnLabel); } @@ -1626,7 +1807,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public java.net.URL resultSet_getURL(FilterChain chain, ResultSetProxy result, String columnLabel) throws SQLException { + public java.net.URL resultSet_getURL(FilterChain chain, ResultSetProxy result, String columnLabel) + throws SQLException { return chain.resultSet_getURL(result, columnLabel); } @@ -1716,7 +1898,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public void resultSet_setFetchDirection(FilterChain chain, ResultSetProxy result, int direction) throws SQLException { + public void resultSet_setFetchDirection(FilterChain chain, ResultSetProxy result, int direction) + throws SQLException { chain.resultSet_setFetchDirection(result, direction); } @@ -1726,319 +1909,374 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public void resultSet_updateArray(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Array x) throws SQLException { + public void resultSet_updateArray(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Array x) + throws SQLException { chain.resultSet_updateArray(result, columnIndex, x); } @Override - public void resultSet_updateArray(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Array x) throws SQLException { + public void resultSet_updateArray(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Array x) + throws SQLException { chain.resultSet_updateArray(result, columnLabel, x); } @Override - public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.InputStream x) throws SQLException { + public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.InputStream x) throws SQLException { chain.resultSet_updateAsciiStream(result, columnIndex, x); } @Override - public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.InputStream x, int length) throws SQLException { + public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.InputStream x, int length) throws SQLException { chain.resultSet_updateAsciiStream(result, columnIndex, x, length); } @Override - public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.InputStream x, long length) throws SQLException { + public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.InputStream x, long length) throws SQLException { chain.resultSet_updateAsciiStream(result, columnIndex, x, length); } @Override - public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.InputStream x) throws SQLException { + public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.InputStream x) throws SQLException { chain.resultSet_updateAsciiStream(result, columnLabel, x); } @Override - public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.InputStream x, int length) - throws SQLException { + public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.InputStream x, int length) throws SQLException { chain.resultSet_updateAsciiStream(result, columnLabel, x, length); } @Override - public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.InputStream x, long length) - throws SQLException { + public void resultSet_updateAsciiStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.InputStream x, long length) throws SQLException { chain.resultSet_updateAsciiStream(result, columnLabel, x, length); } @Override - public void resultSet_updateBigDecimal(FilterChain chain, ResultSetProxy result, int columnIndex, BigDecimal x) throws SQLException { + public void resultSet_updateBigDecimal(FilterChain chain, ResultSetProxy result, int columnIndex, BigDecimal x) + throws SQLException { chain.resultSet_updateBigDecimal(result, columnIndex, x); } @Override - public void resultSet_updateBigDecimal(FilterChain chain, ResultSetProxy result, String columnLabel, BigDecimal x) throws SQLException { + public void resultSet_updateBigDecimal(FilterChain chain, ResultSetProxy result, String columnLabel, BigDecimal x) + throws SQLException { chain.resultSet_updateBigDecimal(result, columnLabel, x); } @Override - public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.InputStream x) throws SQLException { + public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.InputStream x) throws SQLException { chain.resultSet_updateBinaryStream(result, columnIndex, x); } @Override - public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.InputStream x, int length) throws SQLException { + public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.InputStream x, int length) throws SQLException { chain.resultSet_updateBinaryStream(result, columnIndex, x, length); } @Override - public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.InputStream x, long length) throws SQLException { + public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.InputStream x, long length) throws SQLException { chain.resultSet_updateBinaryStream(result, columnIndex, x, length); } @Override - public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.InputStream x) throws SQLException { + public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.InputStream x) throws SQLException { chain.resultSet_updateBinaryStream(result, columnLabel, x); } @Override - public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.InputStream x, int length) - throws SQLException { + public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.InputStream x, int length) throws SQLException { chain.resultSet_updateBinaryStream(result, columnLabel, x, length); } @Override - public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.InputStream x, long length) - throws SQLException { + public void resultSet_updateBinaryStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.InputStream x, long length) throws SQLException { chain.resultSet_updateBinaryStream(result, columnLabel, x, length); } @Override - public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, int columnIndex, InputStream inputStream) throws SQLException { + public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, int columnIndex, InputStream inputStream) + throws SQLException { chain.resultSet_updateBlob(result, columnIndex, inputStream); } @Override - public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, int columnIndex, InputStream inputStream, long length) throws SQLException { + public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, int columnIndex, + InputStream inputStream, long length) throws SQLException { chain.resultSet_updateBlob(result, columnIndex, inputStream, length); } @Override - public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Blob x) throws SQLException { + public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Blob x) + throws SQLException { chain.resultSet_updateBlob(result, columnIndex, x); } @Override - public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, String columnLabel, InputStream inputStream) throws SQLException { + public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, String columnLabel, + InputStream inputStream) throws SQLException { chain.resultSet_updateBlob(result, columnLabel, inputStream); } @Override - public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, String columnLabel, InputStream inputStream, long length) throws SQLException { + public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, String columnLabel, + InputStream inputStream, long length) throws SQLException { chain.resultSet_updateBlob(result, columnLabel, inputStream, length); } @Override - public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Blob x) throws SQLException { + public void resultSet_updateBlob(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Blob x) + throws SQLException { chain.resultSet_updateBlob(result, columnLabel, x); } @Override - public void resultSet_updateBoolean(FilterChain chain, ResultSetProxy result, int columnIndex, boolean x) throws SQLException { + public void resultSet_updateBoolean(FilterChain chain, ResultSetProxy result, int columnIndex, boolean x) + throws SQLException { chain.resultSet_updateBoolean(result, columnIndex, x); } @Override - public void resultSet_updateBoolean(FilterChain chain, ResultSetProxy result, String columnLabel, boolean x) throws SQLException { + public void resultSet_updateBoolean(FilterChain chain, ResultSetProxy result, String columnLabel, boolean x) + throws SQLException { chain.resultSet_updateBoolean(result, columnLabel, x); } @Override - public void resultSet_updateByte(FilterChain chain, ResultSetProxy result, int columnIndex, byte x) throws SQLException { + public void resultSet_updateByte(FilterChain chain, ResultSetProxy result, int columnIndex, byte x) + throws SQLException { chain.resultSet_updateByte(result, columnIndex, x); } @Override - public void resultSet_updateByte(FilterChain chain, ResultSetProxy result, String columnLabel, byte x) throws SQLException { + public void resultSet_updateByte(FilterChain chain, ResultSetProxy result, String columnLabel, byte x) + throws SQLException { chain.resultSet_updateByte(result, columnLabel, x); } @Override - public void resultSet_updateBytes(FilterChain chain, ResultSetProxy result, int columnIndex, byte[] x) throws SQLException { + public void resultSet_updateBytes(FilterChain chain, ResultSetProxy result, int columnIndex, byte[] x) + throws SQLException { chain.resultSet_updateBytes(result, columnIndex, x); } @Override - public void resultSet_updateBytes(FilterChain chain, ResultSetProxy result, String columnLabel, byte[] x) throws SQLException { + public void resultSet_updateBytes(FilterChain chain, ResultSetProxy result, String columnLabel, byte[] x) + throws SQLException { chain.resultSet_updateBytes(result, columnLabel, x); } @Override - public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.Reader x) throws SQLException { + public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.Reader x) throws SQLException { chain.resultSet_updateCharacterStream(result, columnIndex, x); } @Override - public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.Reader x, int length) throws SQLException { + public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.Reader x, int length) throws SQLException { chain.resultSet_updateCharacterStream(result, columnIndex, x, length); } @Override - public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.Reader x, long length) throws SQLException { + public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.Reader x, long length) throws SQLException { chain.resultSet_updateCharacterStream(result, columnIndex, x, length); } @Override - public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.Reader reader) throws SQLException { + public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.Reader reader) throws SQLException { chain.resultSet_updateCharacterStream(result, columnLabel, reader); } @Override - public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.Reader reader, int length) - throws SQLException { + public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.Reader reader, int length) throws SQLException { chain.resultSet_updateCharacterStream(result, columnLabel, reader, length); } @Override - public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.Reader reader, long length) - throws SQLException { + public void resultSet_updateCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.Reader reader, long length) throws SQLException { chain.resultSet_updateCharacterStream(result, columnLabel, reader, length); } @Override - public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Clob x) throws SQLException { + public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Clob x) + throws SQLException { chain.resultSet_updateClob(result, columnIndex, x); } @Override - public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, int columnIndex, Reader reader) throws SQLException { + public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, int columnIndex, Reader reader) + throws SQLException { chain.resultSet_updateClob(result, columnIndex, reader); } @Override - public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, int columnIndex, Reader reader, long length) throws SQLException { + public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, int columnIndex, Reader reader, + long length) throws SQLException { chain.resultSet_updateClob(result, columnIndex, reader, length); } @Override - public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Clob x) throws SQLException { + public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Clob x) + throws SQLException { chain.resultSet_updateClob(result, columnLabel, x); } @Override - public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, String columnLabel, Reader reader) throws SQLException { + public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, String columnLabel, Reader reader) + throws SQLException { chain.resultSet_updateClob(result, columnLabel, reader); } @Override - public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, String columnLabel, Reader reader, long length) throws SQLException { + public void resultSet_updateClob(FilterChain chain, ResultSetProxy result, String columnLabel, Reader reader, + long length) throws SQLException { chain.resultSet_updateClob(result, columnLabel, reader, length); } @Override - public void resultSet_updateDate(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Date x) throws SQLException { + public void resultSet_updateDate(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Date x) + throws SQLException { chain.resultSet_updateDate(result, columnIndex, x); } @Override - public void resultSet_updateDate(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Date x) throws SQLException { + public void resultSet_updateDate(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Date x) + throws SQLException { chain.resultSet_updateDate(result, columnLabel, x); } @Override - public void resultSet_updateDouble(FilterChain chain, ResultSetProxy result, int columnIndex, double x) throws SQLException { + public void resultSet_updateDouble(FilterChain chain, ResultSetProxy result, int columnIndex, double x) + throws SQLException { chain.resultSet_updateDouble(result, columnIndex, x); } @Override - public void resultSet_updateDouble(FilterChain chain, ResultSetProxy result, String columnLabel, double x) throws SQLException { + public void resultSet_updateDouble(FilterChain chain, ResultSetProxy result, String columnLabel, double x) + throws SQLException { chain.resultSet_updateDouble(result, columnLabel, x); } @Override - public void resultSet_updateFloat(FilterChain chain, ResultSetProxy result, int columnIndex, float x) throws SQLException { + public void resultSet_updateFloat(FilterChain chain, ResultSetProxy result, int columnIndex, float x) + throws SQLException { chain.resultSet_updateFloat(result, columnIndex, x); } @Override - public void resultSet_updateFloat(FilterChain chain, ResultSetProxy result, String columnLabel, float x) throws SQLException { + public void resultSet_updateFloat(FilterChain chain, ResultSetProxy result, String columnLabel, float x) + throws SQLException { chain.resultSet_updateFloat(result, columnLabel, x); } @Override - public void resultSet_updateInt(FilterChain chain, ResultSetProxy result, int columnIndex, int x) throws SQLException { + public void resultSet_updateInt(FilterChain chain, ResultSetProxy result, int columnIndex, int x) + throws SQLException { chain.resultSet_updateInt(result, columnIndex, x); } @Override - public void resultSet_updateInt(FilterChain chain, ResultSetProxy result, String columnLabel, int x) throws SQLException { + public void resultSet_updateInt(FilterChain chain, ResultSetProxy result, String columnLabel, int x) + throws SQLException { chain.resultSet_updateInt(result, columnLabel, x); } @Override - public void resultSet_updateLong(FilterChain chain, ResultSetProxy result, int columnIndex, long x) throws SQLException { + public void resultSet_updateLong(FilterChain chain, ResultSetProxy result, int columnIndex, long x) + throws SQLException { chain.resultSet_updateLong(result, columnIndex, x); } @Override - public void resultSet_updateLong(FilterChain chain, ResultSetProxy result, String columnLabel, long x) throws SQLException { + public void resultSet_updateLong(FilterChain chain, ResultSetProxy result, String columnLabel, long x) + throws SQLException { chain.resultSet_updateLong(result, columnLabel, x); } @Override - public void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.Reader x) throws SQLException { + public void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.Reader x) throws SQLException { chain.resultSet_updateNCharacterStream(result, columnIndex, x); } @Override - public void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex, java.io.Reader x, long length) throws SQLException { + public void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy result, int columnIndex, + java.io.Reader x, long length) throws SQLException { chain.resultSet_updateNCharacterStream(result, columnIndex, x, length); } @Override - public void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.Reader reader) throws SQLException { + public void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.Reader reader) throws SQLException { chain.resultSet_updateNCharacterStream(result, columnLabel, reader); } @Override - public void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel, java.io.Reader reader, long length) - throws SQLException { + public void resultSet_updateNCharacterStream(FilterChain chain, ResultSetProxy result, String columnLabel, + java.io.Reader reader, long length) throws SQLException { chain.resultSet_updateNCharacterStream(result, columnLabel, reader, length); } @Override - public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, int columnIndex, NClob nClob) throws SQLException { + public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, int columnIndex, NClob nClob) + throws SQLException { chain.resultSet_updateNClob(result, columnIndex, nClob); } @Override - public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, int columnIndex, Reader reader) throws SQLException { + public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, int columnIndex, Reader reader) + throws SQLException { chain.resultSet_updateNClob(result, columnIndex, reader); } @Override - public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, int columnIndex, Reader reader, long length) throws SQLException { + public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, int columnIndex, Reader reader, + long length) throws SQLException { chain.resultSet_updateNClob(result, columnIndex, reader, length); } @Override - public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, String columnLabel, NClob nClob) throws SQLException { + public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, String columnLabel, NClob nClob) + throws SQLException { chain.resultSet_updateNClob(result, columnLabel, nClob); } @Override - public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, String columnLabel, Reader reader) throws SQLException { + public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, String columnLabel, Reader reader) + throws SQLException { chain.resultSet_updateNClob(result, columnLabel, reader); } @Override - public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, String columnLabel, Reader reader, long length) throws SQLException { + public void resultSet_updateNClob(FilterChain chain, ResultSetProxy result, String columnLabel, Reader reader, + long length) throws SQLException { chain.resultSet_updateNClob(result, columnLabel, reader, length); } @Override - public void resultSet_updateNString(FilterChain chain, ResultSetProxy result, int columnIndex, String nString) throws SQLException { + public void resultSet_updateNString(FilterChain chain, ResultSetProxy result, int columnIndex, String nString) + throws SQLException { chain.resultSet_updateNString(result, columnIndex, nString); } @Override - public void resultSet_updateNString(FilterChain chain, ResultSetProxy result, String columnLabel, String nString) throws SQLException { + public void resultSet_updateNString(FilterChain chain, ResultSetProxy result, String columnLabel, String nString) + throws SQLException { chain.resultSet_updateNString(result, columnLabel, nString); } @@ -2053,32 +2291,38 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public void resultSet_updateObject(FilterChain chain, ResultSetProxy result, int columnIndex, Object x) throws SQLException { + public void resultSet_updateObject(FilterChain chain, ResultSetProxy result, int columnIndex, Object x) + throws SQLException { chain.resultSet_updateObject(result, columnIndex, x); } @Override - public void resultSet_updateObject(FilterChain chain, ResultSetProxy result, int columnIndex, Object x, int scaleOrLength) throws SQLException { + public void resultSet_updateObject(FilterChain chain, ResultSetProxy result, int columnIndex, Object x, + int scaleOrLength) throws SQLException { chain.resultSet_updateObject(result, columnIndex, x, scaleOrLength); } @Override - public void resultSet_updateObject(FilterChain chain, ResultSetProxy result, String columnLabel, Object x) throws SQLException { + public void resultSet_updateObject(FilterChain chain, ResultSetProxy result, String columnLabel, Object x) + throws SQLException { chain.resultSet_updateObject(result, columnLabel, x); } @Override - public void resultSet_updateObject(FilterChain chain, ResultSetProxy result, String columnLabel, Object x, int scaleOrLength) throws SQLException { + public void resultSet_updateObject(FilterChain chain, ResultSetProxy result, String columnLabel, Object x, + int scaleOrLength) throws SQLException { chain.resultSet_updateObject(result, columnLabel, x, scaleOrLength); } @Override - public void resultSet_updateRef(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Ref x) throws SQLException { + public void resultSet_updateRef(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Ref x) + throws SQLException { chain.resultSet_updateRef(result, columnIndex, x); } @Override - public void resultSet_updateRef(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Ref x) throws SQLException { + public void resultSet_updateRef(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Ref x) + throws SQLException { chain.resultSet_updateRef(result, columnLabel, x); } @@ -2088,62 +2332,74 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public void resultSet_updateRowId(FilterChain chain, ResultSetProxy result, int columnIndex, RowId x) throws SQLException { + public void resultSet_updateRowId(FilterChain chain, ResultSetProxy result, int columnIndex, RowId x) + throws SQLException { chain.resultSet_updateRowId(result, columnIndex, x); } @Override - public void resultSet_updateRowId(FilterChain chain, ResultSetProxy result, String columnLabel, RowId x) throws SQLException { + public void resultSet_updateRowId(FilterChain chain, ResultSetProxy result, String columnLabel, RowId x) + throws SQLException { chain.resultSet_updateRowId(result, columnLabel, x); } @Override - public void resultSet_updateShort(FilterChain chain, ResultSetProxy result, int columnIndex, short x) throws SQLException { + public void resultSet_updateShort(FilterChain chain, ResultSetProxy result, int columnIndex, short x) + throws SQLException { chain.resultSet_updateShort(result, columnIndex, x); } @Override - public void resultSet_updateShort(FilterChain chain, ResultSetProxy result, String columnLabel, short x) throws SQLException { + public void resultSet_updateShort(FilterChain chain, ResultSetProxy result, String columnLabel, short x) + throws SQLException { chain.resultSet_updateShort(result, columnLabel, x); } @Override - public void resultSet_updateSQLXML(FilterChain chain, ResultSetProxy result, int columnIndex, SQLXML xmlObject) throws SQLException { + public void resultSet_updateSQLXML(FilterChain chain, ResultSetProxy result, int columnIndex, SQLXML xmlObject) + throws SQLException { chain.resultSet_updateSQLXML(result, columnIndex, xmlObject); } @Override - public void resultSet_updateSQLXML(FilterChain chain, ResultSetProxy result, String columnLabel, SQLXML xmlObject) throws SQLException { + public void resultSet_updateSQLXML(FilterChain chain, ResultSetProxy result, String columnLabel, SQLXML xmlObject) + throws SQLException { chain.resultSet_updateSQLXML(result, columnLabel, xmlObject); } @Override - public void resultSet_updateString(FilterChain chain, ResultSetProxy result, int columnIndex, String x) throws SQLException { + public void resultSet_updateString(FilterChain chain, ResultSetProxy result, int columnIndex, String x) + throws SQLException { chain.resultSet_updateString(result, columnIndex, x); } @Override - public void resultSet_updateString(FilterChain chain, ResultSetProxy result, String columnLabel, String x) throws SQLException { + public void resultSet_updateString(FilterChain chain, ResultSetProxy result, String columnLabel, String x) + throws SQLException { chain.resultSet_updateString(result, columnLabel, x); } @Override - public void resultSet_updateTime(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Time x) throws SQLException { + public void resultSet_updateTime(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Time x) + throws SQLException { chain.resultSet_updateTime(result, columnIndex, x); } @Override - public void resultSet_updateTime(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Time x) throws SQLException { + public void resultSet_updateTime(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Time x) + throws SQLException { chain.resultSet_updateTime(result, columnLabel, x); } @Override - public void resultSet_updateTimestamp(FilterChain chain, ResultSetProxy result, int columnIndex, java.sql.Timestamp x) throws SQLException { + public void resultSet_updateTimestamp(FilterChain chain, ResultSetProxy result, int columnIndex, + java.sql.Timestamp x) throws SQLException { chain.resultSet_updateTimestamp(result, columnIndex, x); } @Override - public void resultSet_updateTimestamp(FilterChain chain, ResultSetProxy result, String columnLabel, java.sql.Timestamp x) throws SQLException { + public void resultSet_updateTimestamp(FilterChain chain, ResultSetProxy result, String columnLabel, + java.sql.Timestamp x) throws SQLException { chain.resultSet_updateTimestamp(result, columnLabel, x); } @@ -2183,17 +2439,20 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { return chain.statement_execute(statement, sql, autoGeneratedKeys); } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { return chain.statement_execute(statement, sql, columnIndexes); } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) + throws SQLException { return chain.statement_execute(statement, sql, columnNames); } @@ -2204,7 +2463,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple // ///////////////////////////// @Override - public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql) throws SQLException { + public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql) + throws SQLException { return chain.statement_executeQuery(statement, sql); } @@ -2214,17 +2474,20 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { return chain.statement_executeUpdate(statement, sql, autoGeneratedKeys); } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { return chain.statement_executeUpdate(statement, sql, columnIndexes); } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) + throws SQLException { return chain.statement_executeUpdate(statement, sql, columnNames); } @@ -2264,7 +2527,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public boolean statement_getMoreResults(FilterChain chain, StatementProxy statement, int current) throws SQLException { + public boolean statement_getMoreResults(FilterChain chain, StatementProxy statement, int current) + throws SQLException { return chain.statement_getMoreResults(statement, current); } @@ -2319,12 +2583,14 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public void statement_setEscapeProcessing(FilterChain chain, StatementProxy statement, boolean enable) throws SQLException { + public void statement_setEscapeProcessing(FilterChain chain, StatementProxy statement, boolean enable) + throws SQLException { chain.statement_setEscapeProcessing(statement, enable); } @Override - public void statement_setFetchDirection(FilterChain chain, StatementProxy statement, int direction) throws SQLException { + public void statement_setFetchDirection(FilterChain chain, StatementProxy statement, int direction) + throws SQLException { chain.statement_setFetchDirection(statement, direction); } @@ -2344,7 +2610,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public void statement_setPoolable(FilterChain chain, StatementProxy statement, boolean poolable) throws SQLException { + public void statement_setPoolable(FilterChain chain, StatementProxy statement, boolean poolable) + throws SQLException { chain.statement_setPoolable(statement, poolable); } @@ -2394,7 +2661,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public int clob_setString(FilterChain chain, ClobProxy wrapper, long pos, String str, int offset, int len) throws SQLException { + public int clob_setString(FilterChain chain, ClobProxy wrapper, long pos, String str, int offset, int len) + throws SQLException { return chain.clob_setString(wrapper, pos, str, offset, len); } @@ -2419,7 +2687,8 @@ public abstract class FilterAdapter extends NotificationBroadcasterSupport imple } @Override - public Reader clob_getCharacterStream(FilterChain chain, ClobProxy wrapper, long pos, long length) throws SQLException { + public Reader clob_getCharacterStream(FilterChain chain, ClobProxy wrapper, long pos, long length) + throws SQLException { return chain.clob_getCharacterStream(wrapper, pos, length); } diff --git a/src/main/java/com/alibaba/druid/filter/FilterChain.java b/src/main/java/com/alibaba/druid/filter/FilterChain.java index 04ab277582..5da56978f0 100644 --- a/src/main/java/com/alibaba/druid/filter/FilterChain.java +++ b/src/main/java/com/alibaba/druid/filter/FilterChain.java @@ -99,11 +99,14 @@ public interface FilterChain { void connection_clearWarnings(ConnectionProxy connection) throws SQLException; - StatementProxy connection_createStatement(ConnectionProxy connection, int resultSetType, int resultSetConcurrency) throws SQLException; + StatementProxy connection_createStatement(ConnectionProxy connection, int resultSetType, int resultSetConcurrency) + throws SQLException; - PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency) throws SQLException; + PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int resultSetType, + int resultSetConcurrency) throws SQLException; - CallableStatementProxy connection_prepareCall(ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency) throws SQLException; + CallableStatementProxy connection_prepareCall(ConnectionProxy connection, String sql, int resultSetType, + int resultSetConcurrency) throws SQLException; java.util.Map> connection_getTypeMap(ConnectionProxy connection) throws SQLException; @@ -121,20 +124,25 @@ public interface FilterChain { void connection_releaseSavepoint(ConnectionProxy connection, Savepoint savepoint) throws SQLException; - StatementProxy connection_createStatement(ConnectionProxy connection, int resultSetType, int resultSetConcurrency, int resultSetHoldability) - throws SQLException; + StatementProxy connection_createStatement(ConnectionProxy connection, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException; - PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency, - int resultSetHoldability) throws SQLException; + PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int resultSetType, + int resultSetConcurrency, int resultSetHoldability) + throws SQLException; - CallableStatementProxy connection_prepareCall(ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) - throws SQLException; + CallableStatementProxy connection_prepareCall(ConnectionProxy connection, String sql, int resultSetType, + int resultSetConcurrency, int resultSetHoldability) + throws SQLException; - PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int autoGeneratedKeys) throws SQLException; + PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int autoGeneratedKeys) + throws SQLException; - PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int columnIndexes[]) throws SQLException; + PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int columnIndexes[]) + throws SQLException; - PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, String columnNames[]) throws SQLException; + PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, String columnNames[]) + throws SQLException; Clob connection_createClob(ConnectionProxy connection) throws SQLException; @@ -156,7 +164,8 @@ public interface FilterChain { Array connection_createArrayOf(ConnectionProxy connection, String typeName, Object[] elements) throws SQLException; - Struct connection_createStruct(ConnectionProxy connection, String typeName, Object[] attributes) throws SQLException; + Struct connection_createStruct(ConnectionProxy connection, String typeName, Object[] attributes) + throws SQLException; // --------- @@ -195,7 +204,8 @@ public interface FilterChain { public java.io.InputStream resultSet_getAsciiStream(ResultSetProxy resultSet, int columnIndex) throws SQLException; - public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy resultSet, int columnIndex) throws SQLException; + public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy resultSet, int columnIndex) + throws SQLException; public java.io.InputStream resultSet_getBinaryStream(ResultSetProxy resultSet, int columnIndex) throws SQLException; @@ -215,7 +225,8 @@ public interface FilterChain { public double resultSet_getDouble(ResultSetProxy resultSet, String columnLabel) throws SQLException; - public BigDecimal resultSet_getBigDecimal(ResultSetProxy resultSet, String columnLabel, int scale) throws SQLException; + public BigDecimal resultSet_getBigDecimal(ResultSetProxy resultSet, String columnLabel, int scale) + throws SQLException; public byte[] resultSet_getBytes(ResultSetProxy resultSet, String columnLabel) throws SQLException; @@ -225,11 +236,14 @@ public interface FilterChain { public java.sql.Timestamp resultSet_getTimestamp(ResultSetProxy resultSet, String columnLabel) throws SQLException; - public java.io.InputStream resultSet_getAsciiStream(ResultSetProxy resultSet, String columnLabel) throws SQLException; + public java.io.InputStream resultSet_getAsciiStream(ResultSetProxy resultSet, String columnLabel) + throws SQLException; - public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy resultSet, String columnLabel) throws SQLException; + public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy resultSet, String columnLabel) + throws SQLException; - public java.io.InputStream resultSet_getBinaryStream(ResultSetProxy resultSet, String columnLabel) throws SQLException; + public java.io.InputStream resultSet_getBinaryStream(ResultSetProxy resultSet, String columnLabel) + throws SQLException; public SQLWarning resultSet_getWarnings(ResultSetProxy resultSet) throws SQLException; @@ -247,7 +261,8 @@ public interface FilterChain { public java.io.Reader resultSet_getCharacterStream(ResultSetProxy resultSet, int columnIndex) throws SQLException; - public java.io.Reader resultSet_getCharacterStream(ResultSetProxy resultSet, String columnLabel) throws SQLException; + public java.io.Reader resultSet_getCharacterStream(ResultSetProxy resultSet, String columnLabel) + throws SQLException; public BigDecimal resultSet_getBigDecimal(ResultSetProxy resultSet, int columnIndex) throws SQLException; @@ -321,15 +336,20 @@ public interface FilterChain { public void resultSet_updateTime(ResultSetProxy resultSet, int columnIndex, java.sql.Time x) throws SQLException; - public void resultSet_updateTimestamp(ResultSetProxy resultSet, int columnIndex, java.sql.Timestamp x) throws SQLException; + public void resultSet_updateTimestamp(ResultSetProxy resultSet, int columnIndex, java.sql.Timestamp x) + throws SQLException; - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, int length) throws SQLException; + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, int length) + throws SQLException; - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, int length) throws SQLException; + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, + int length) throws SQLException; - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, int length) throws SQLException; + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, int length) + throws SQLException; - public void resultSet_updateObject(ResultSetProxy resultSet, int columnIndex, Object x, int scaleOrLength) throws SQLException; + public void resultSet_updateObject(ResultSetProxy resultSet, int columnIndex, Object x, int scaleOrLength) + throws SQLException; public void resultSet_updateObject(ResultSetProxy resultSet, int columnIndex, Object x) throws SQLException; @@ -349,7 +369,8 @@ public interface FilterChain { public void resultSet_updateDouble(ResultSetProxy resultSet, String columnLabel, double x) throws SQLException; - public void resultSet_updateBigDecimal(ResultSetProxy resultSet, String columnLabel, BigDecimal x) throws SQLException; + public void resultSet_updateBigDecimal(ResultSetProxy resultSet, String columnLabel, BigDecimal x) + throws SQLException; public void resultSet_updateString(ResultSetProxy resultSet, String columnLabel, String x) throws SQLException; @@ -359,15 +380,20 @@ public interface FilterChain { public void resultSet_updateTime(ResultSetProxy resultSet, String columnLabel, java.sql.Time x) throws SQLException; - public void resultSet_updateTimestamp(ResultSetProxy resultSet, String columnLabel, java.sql.Timestamp x) throws SQLException; + public void resultSet_updateTimestamp(ResultSetProxy resultSet, String columnLabel, java.sql.Timestamp x) + throws SQLException; - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, int length) throws SQLException; + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, + int length) throws SQLException; - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, int length) throws SQLException; + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, + int length) throws SQLException; - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, int length) throws SQLException; + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, + int length) throws SQLException; - public void resultSet_updateObject(ResultSetProxy resultSet, String columnLabel, Object x, int scaleOrLength) throws SQLException; + public void resultSet_updateObject(ResultSetProxy resultSet, String columnLabel, Object x, int scaleOrLength) + throws SQLException; public void resultSet_updateObject(ResultSetProxy resultSet, String columnLabel, Object x) throws SQLException; @@ -387,7 +413,8 @@ public interface FilterChain { public Statement resultSet_getStatement(ResultSetProxy resultSet) throws SQLException; - public Object resultSet_getObject(ResultSetProxy resultSet, int columnIndex, java.util.Map> map) throws SQLException; + public Object resultSet_getObject(ResultSetProxy resultSet, int columnIndex, java.util.Map> map) + throws SQLException; public Ref resultSet_getRef(ResultSetProxy resultSet, int columnIndex) throws SQLException; @@ -397,7 +424,8 @@ public interface FilterChain { public Array resultSet_getArray(ResultSetProxy resultSet, int columnIndex) throws SQLException; - public Object resultSet_getObject(ResultSetProxy resultSet, String columnLabel, java.util.Map> map) throws SQLException; + public Object resultSet_getObject(ResultSetProxy resultSet, String columnLabel, java.util.Map> map) + throws SQLException; public Ref resultSet_getRef(ResultSetProxy resultSet, String columnLabel) throws SQLException; @@ -409,15 +437,19 @@ public interface FilterChain { public java.sql.Date resultSet_getDate(ResultSetProxy resultSet, int columnIndex, Calendar cal) throws SQLException; - public java.sql.Date resultSet_getDate(ResultSetProxy resultSet, String columnLabel, Calendar cal) throws SQLException; + public java.sql.Date resultSet_getDate(ResultSetProxy resultSet, String columnLabel, Calendar cal) + throws SQLException; public java.sql.Time resultSet_getTime(ResultSetProxy resultSet, int columnIndex, Calendar cal) throws SQLException; - public java.sql.Time resultSet_getTime(ResultSetProxy resultSet, String columnLabel, Calendar cal) throws SQLException; + public java.sql.Time resultSet_getTime(ResultSetProxy resultSet, String columnLabel, Calendar cal) + throws SQLException; - public java.sql.Timestamp resultSet_getTimestamp(ResultSetProxy resultSet, int columnIndex, Calendar cal) throws SQLException; + public java.sql.Timestamp resultSet_getTimestamp(ResultSetProxy resultSet, int columnIndex, Calendar cal) + throws SQLException; - public java.sql.Timestamp resultSet_getTimestamp(ResultSetProxy resultSet, String columnLabel, Calendar cal) throws SQLException; + public java.sql.Timestamp resultSet_getTimestamp(ResultSetProxy resultSet, String columnLabel, Calendar cal) + throws SQLException; public java.net.URL resultSet_getURL(ResultSetProxy resultSet, int columnIndex) throws SQLException; @@ -437,7 +469,8 @@ public interface FilterChain { public void resultSet_updateArray(ResultSetProxy resultSet, int columnIndex, java.sql.Array x) throws SQLException; - public void resultSet_updateArray(ResultSetProxy resultSet, String columnLabel, java.sql.Array x) throws SQLException; + public void resultSet_updateArray(ResultSetProxy resultSet, String columnLabel, java.sql.Array x) + throws SQLException; public RowId resultSet_getRowId(ResultSetProxy resultSet, int columnIndex) throws SQLException; @@ -453,7 +486,8 @@ public interface FilterChain { public void resultSet_updateNString(ResultSetProxy resultSet, int columnIndex, String nString) throws SQLException; - public void resultSet_updateNString(ResultSetProxy resultSet, String columnLabel, String nString) throws SQLException; + public void resultSet_updateNString(ResultSetProxy resultSet, String columnLabel, String nString) + throws SQLException; public void resultSet_updateNClob(ResultSetProxy resultSet, int columnIndex, NClob nClob) throws SQLException; @@ -469,7 +503,8 @@ public interface FilterChain { public void resultSet_updateSQLXML(ResultSetProxy resultSet, int columnIndex, SQLXML xmlObject) throws SQLException; - public void resultSet_updateSQLXML(ResultSetProxy resultSet, String columnLabel, SQLXML xmlObject) throws SQLException; + public void resultSet_updateSQLXML(ResultSetProxy resultSet, String columnLabel, SQLXML xmlObject) + throws SQLException; public String resultSet_getNString(ResultSetProxy resultSet, int columnIndex) throws SQLException; @@ -477,55 +512,80 @@ public interface FilterChain { public java.io.Reader resultSet_getNCharacterStream(ResultSetProxy resultSet, int columnIndex) throws SQLException; - public java.io.Reader resultSet_getNCharacterStream(ResultSetProxy resultSet, String columnLabel) throws SQLException; + public java.io.Reader resultSet_getNCharacterStream(ResultSetProxy resultSet, String columnLabel) + throws SQLException; - public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, long length) throws SQLException; + public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, + long length) throws SQLException; - public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, long length) throws SQLException; + public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, + long length) throws SQLException; - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, long length) throws SQLException; + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, + long length) throws SQLException; - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, long length) throws SQLException; + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, + long length) throws SQLException; - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, long length) throws SQLException; + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, long length) + throws SQLException; - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, long length) throws SQLException; + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, + long length) throws SQLException; - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, long length) throws SQLException; + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, + long length) throws SQLException; - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, long length) throws SQLException; + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, + long length) throws SQLException; - public void resultSet_updateBlob(ResultSetProxy resultSet, int columnIndex, InputStream inputStream, long length) throws SQLException; + public void resultSet_updateBlob(ResultSetProxy resultSet, int columnIndex, InputStream inputStream, long length) + throws SQLException; - public void resultSet_updateBlob(ResultSetProxy resultSet, String columnLabel, InputStream inputStream, long length) throws SQLException; + public void resultSet_updateBlob(ResultSetProxy resultSet, String columnLabel, InputStream inputStream, long length) + throws SQLException; - public void resultSet_updateClob(ResultSetProxy resultSet, int columnIndex, Reader reader, long length) throws SQLException; + public void resultSet_updateClob(ResultSetProxy resultSet, int columnIndex, Reader reader, long length) + throws SQLException; - public void resultSet_updateClob(ResultSetProxy resultSet, String columnLabel, Reader reader, long length) throws SQLException; + public void resultSet_updateClob(ResultSetProxy resultSet, String columnLabel, Reader reader, long length) + throws SQLException; - public void resultSet_updateNClob(ResultSetProxy resultSet, int columnIndex, Reader reader, long length) throws SQLException; + public void resultSet_updateNClob(ResultSetProxy resultSet, int columnIndex, Reader reader, long length) + throws SQLException; - public void resultSet_updateNClob(ResultSetProxy resultSet, String columnLabel, Reader reader, long length) throws SQLException; + public void resultSet_updateNClob(ResultSetProxy resultSet, String columnLabel, Reader reader, long length) + throws SQLException; - public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x) throws SQLException; + public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x) + throws SQLException; - public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader) throws SQLException; + public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader) + throws SQLException; - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) throws SQLException; + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) + throws SQLException; - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) throws SQLException; + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) + throws SQLException; - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x) throws SQLException; + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x) + throws SQLException; - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x) throws SQLException; + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x) + throws SQLException; - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x) throws SQLException; + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x) + throws SQLException; - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader) throws SQLException; + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader) + throws SQLException; - public void resultSet_updateBlob(ResultSetProxy resultSet, int columnIndex, InputStream inputStream) throws SQLException; + public void resultSet_updateBlob(ResultSetProxy resultSet, int columnIndex, InputStream inputStream) + throws SQLException; - public void resultSet_updateBlob(ResultSetProxy resultSet, String columnLabel, InputStream inputStream) throws SQLException; + public void resultSet_updateBlob(ResultSetProxy resultSet, String columnLabel, InputStream inputStream) + throws SQLException; public void resultSet_updateClob(ResultSetProxy resultSet, int columnIndex, Reader reader) throws SQLException; @@ -623,126 +683,175 @@ public interface FilterChain { public int preparedStatement_executeUpdate(PreparedStatementProxy statement) throws SQLException; - public void preparedStatement_setNull(PreparedStatementProxy statement, int parameterIndex, int sqlType) throws SQLException; + public void preparedStatement_setNull(PreparedStatementProxy statement, int parameterIndex, int sqlType) + throws SQLException; - public void preparedStatement_setBoolean(PreparedStatementProxy statement, int parameterIndex, boolean x) throws SQLException; + public void preparedStatement_setBoolean(PreparedStatementProxy statement, int parameterIndex, boolean x) + throws SQLException; - public void preparedStatement_setByte(PreparedStatementProxy statement, int parameterIndex, byte x) throws SQLException; + public void preparedStatement_setByte(PreparedStatementProxy statement, int parameterIndex, byte x) + throws SQLException; - public void preparedStatement_setShort(PreparedStatementProxy statement, int parameterIndex, short x) throws SQLException; + public void preparedStatement_setShort(PreparedStatementProxy statement, int parameterIndex, short x) + throws SQLException; - public void preparedStatement_setInt(PreparedStatementProxy statement, int parameterIndex, int x) throws SQLException; + public void preparedStatement_setInt(PreparedStatementProxy statement, int parameterIndex, int x) + throws SQLException; - public void preparedStatement_setLong(PreparedStatementProxy statement, int parameterIndex, long x) throws SQLException; + public void preparedStatement_setLong(PreparedStatementProxy statement, int parameterIndex, long x) + throws SQLException; - public void preparedStatement_setFloat(PreparedStatementProxy statement, int parameterIndex, float x) throws SQLException; + public void preparedStatement_setFloat(PreparedStatementProxy statement, int parameterIndex, float x) + throws SQLException; - public void preparedStatement_setDouble(PreparedStatementProxy statement, int parameterIndex, double x) throws SQLException; + public void preparedStatement_setDouble(PreparedStatementProxy statement, int parameterIndex, double x) + throws SQLException; - public void preparedStatement_setBigDecimal(PreparedStatementProxy statement, int parameterIndex, BigDecimal x) throws SQLException; + public void preparedStatement_setBigDecimal(PreparedStatementProxy statement, int parameterIndex, BigDecimal x) + throws SQLException; - public void preparedStatement_setString(PreparedStatementProxy statement, int parameterIndex, String x) throws SQLException; + public void preparedStatement_setString(PreparedStatementProxy statement, int parameterIndex, String x) + throws SQLException; - public void preparedStatement_setBytes(PreparedStatementProxy statement, int parameterIndex, byte x[]) throws SQLException; + public void preparedStatement_setBytes(PreparedStatementProxy statement, int parameterIndex, byte x[]) + throws SQLException; - public void preparedStatement_setDate(PreparedStatementProxy statement, int parameterIndex, java.sql.Date x) throws SQLException; + public void preparedStatement_setDate(PreparedStatementProxy statement, int parameterIndex, java.sql.Date x) + throws SQLException; - public void preparedStatement_setTime(PreparedStatementProxy statement, int parameterIndex, java.sql.Time x) throws SQLException; + public void preparedStatement_setTime(PreparedStatementProxy statement, int parameterIndex, java.sql.Time x) + throws SQLException; - public void preparedStatement_setTimestamp(PreparedStatementProxy statement, int parameterIndex, java.sql.Timestamp x) throws SQLException; + public void preparedStatement_setTimestamp(PreparedStatementProxy statement, int parameterIndex, + java.sql.Timestamp x) throws SQLException; - public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) throws SQLException; + public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, int length) throws SQLException; - public void preparedStatement_setUnicodeStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) throws SQLException; + public void preparedStatement_setUnicodeStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, int length) throws SQLException; - public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) throws SQLException; + public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, int length) throws SQLException; public void preparedStatement_clearParameters(PreparedStatementProxy statement) throws SQLException; - public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType) throws SQLException; + public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x, + int targetSqlType) throws SQLException; - public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x) throws SQLException; + public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x) + throws SQLException; public boolean preparedStatement_execute(PreparedStatementProxy statement) throws SQLException; public void preparedStatement_addBatch(PreparedStatementProxy statement) throws SQLException; - public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, int length) - throws SQLException; + public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, + java.io.Reader reader, int length) throws SQLException; - public void preparedStatement_setRef(PreparedStatementProxy statement, int parameterIndex, Ref x) throws SQLException; + public void preparedStatement_setRef(PreparedStatementProxy statement, int parameterIndex, Ref x) + throws SQLException; - public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, Blob x) throws SQLException; + public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, Blob x) + throws SQLException; - public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Clob x) throws SQLException; + public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Clob x) + throws SQLException; - public void preparedStatement_setArray(PreparedStatementProxy statement, int parameterIndex, Array x) throws SQLException; + public void preparedStatement_setArray(PreparedStatementProxy statement, int parameterIndex, Array x) + throws SQLException; public ResultSetMetaData preparedStatement_getMetaData(PreparedStatementProxy statement) throws SQLException; - public void preparedStatement_setDate(PreparedStatementProxy statement, int parameterIndex, java.sql.Date x, Calendar cal) throws SQLException; + public void preparedStatement_setDate(PreparedStatementProxy statement, int parameterIndex, java.sql.Date x, + Calendar cal) throws SQLException; - public void preparedStatement_setTime(PreparedStatementProxy statement, int parameterIndex, java.sql.Time x, Calendar cal) throws SQLException; + public void preparedStatement_setTime(PreparedStatementProxy statement, int parameterIndex, java.sql.Time x, + Calendar cal) throws SQLException; - public void preparedStatement_setTimestamp(PreparedStatementProxy statement, int parameterIndex, java.sql.Timestamp x, Calendar cal) throws SQLException; + public void preparedStatement_setTimestamp(PreparedStatementProxy statement, int parameterIndex, + java.sql.Timestamp x, Calendar cal) throws SQLException; - public void preparedStatement_setNull(PreparedStatementProxy statement, int parameterIndex, int sqlType, String typeName) throws SQLException; + public void preparedStatement_setNull(PreparedStatementProxy statement, int parameterIndex, int sqlType, + String typeName) throws SQLException; - public void preparedStatement_setURL(PreparedStatementProxy statement, int parameterIndex, java.net.URL x) throws SQLException; + public void preparedStatement_setURL(PreparedStatementProxy statement, int parameterIndex, java.net.URL x) + throws SQLException; - public ParameterMetaData preparedStatement_getParameterMetaData(PreparedStatementProxy statement) throws SQLException; + public ParameterMetaData preparedStatement_getParameterMetaData(PreparedStatementProxy statement) + throws SQLException; - public void preparedStatement_setRowId(PreparedStatementProxy statement, int parameterIndex, RowId x) throws SQLException; + public void preparedStatement_setRowId(PreparedStatementProxy statement, int parameterIndex, RowId x) + throws SQLException; - public void preparedStatement_setNString(PreparedStatementProxy statement, int parameterIndex, String value) throws SQLException; + public void preparedStatement_setNString(PreparedStatementProxy statement, int parameterIndex, String value) + throws SQLException; - public void preparedStatement_setNCharacterStream(PreparedStatementProxy statement, int parameterIndex, Reader value, long length) throws SQLException; + public void preparedStatement_setNCharacterStream(PreparedStatementProxy statement, int parameterIndex, + Reader value, long length) throws SQLException; - public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, NClob value) throws SQLException; + public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, NClob value) + throws SQLException; - public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Reader reader, long length) throws SQLException; + public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Reader reader, + long length) throws SQLException; - public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, InputStream inputStream, long length) throws SQLException; + public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, + InputStream inputStream, long length) throws SQLException; - public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, Reader reader, long length) throws SQLException; + public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, Reader reader, + long length) throws SQLException; - public void preparedStatement_setSQLXML(PreparedStatementProxy statement, int parameterIndex, SQLXML xmlObject) throws SQLException; + public void preparedStatement_setSQLXML(PreparedStatementProxy statement, int parameterIndex, SQLXML xmlObject) + throws SQLException; - public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType, int scaleOrLength) - throws SQLException; + public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x, + int targetSqlType, int scaleOrLength) throws SQLException; - public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) throws SQLException; + public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, long length) throws SQLException; - public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) throws SQLException; + public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, long length) throws SQLException; - public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, long length) - throws SQLException; + public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, + java.io.Reader reader, long length) throws SQLException; - public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) throws SQLException; + public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x) throws SQLException; - public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) throws SQLException; + public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x) throws SQLException; - public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader) throws SQLException; + public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, + java.io.Reader reader) throws SQLException; - public void preparedStatement_setNCharacterStream(PreparedStatementProxy statement, int parameterIndex, Reader value) throws SQLException; + public void preparedStatement_setNCharacterStream(PreparedStatementProxy statement, int parameterIndex, Reader value) + throws SQLException; - public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Reader reader) throws SQLException; + public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Reader reader) + throws SQLException; - public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, InputStream inputStream) throws SQLException; + public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, InputStream inputStream) + throws SQLException; - public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, Reader reader) throws SQLException; + public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, Reader reader) + throws SQLException; // ///////////////////////////// - public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, int sqlType) throws SQLException; + public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, int sqlType) + throws SQLException; - public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, int sqlType, int scale) throws SQLException; + public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, + int sqlType, int scale) throws SQLException; public boolean callableStatement_wasNull(CallableStatementProxy statement) throws SQLException; public String callableStatement_getString(CallableStatementProxy statement, int parameterIndex) throws SQLException; - public boolean callableStatement_getBoolean(CallableStatementProxy statement, int parameterIndex) throws SQLException; + public boolean callableStatement_getBoolean(CallableStatementProxy statement, int parameterIndex) + throws SQLException; public byte callableStatement_getByte(CallableStatementProxy statement, int parameterIndex) throws SQLException; @@ -756,21 +865,27 @@ public interface FilterChain { public double callableStatement_getDouble(CallableStatementProxy statement, int parameterIndex) throws SQLException; - public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, int parameterIndex, int scale) throws SQLException; + public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, int parameterIndex, int scale) + throws SQLException; public byte[] callableStatement_getBytes(CallableStatementProxy statement, int parameterIndex) throws SQLException; - public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, int parameterIndex) throws SQLException; + public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, int parameterIndex) + throws SQLException; - public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, int parameterIndex) throws SQLException; + public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, int parameterIndex) + throws SQLException; - public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, int parameterIndex) throws SQLException; + public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, int parameterIndex) + throws SQLException; public Object callableStatement_getObject(CallableStatementProxy statement, int parameterIndex) throws SQLException; - public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, int parameterIndex) throws SQLException; + public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, int parameterIndex) + throws SQLException; - public Object callableStatement_getObject(CallableStatementProxy statement, int parameterIndex, java.util.Map> map) throws SQLException; + public Object callableStatement_getObject(CallableStatementProxy statement, int parameterIndex, + java.util.Map> map) throws SQLException; public Ref callableStatement_getRef(CallableStatementProxy statement, int parameterIndex) throws SQLException; @@ -780,78 +895,110 @@ public interface FilterChain { public Array callableStatement_getArray(CallableStatementProxy statement, int parameterIndex) throws SQLException; - public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, int parameterIndex, Calendar cal) throws SQLException; + public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, int parameterIndex, Calendar cal) + throws SQLException; - public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, int parameterIndex, Calendar cal) throws SQLException; + public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, int parameterIndex, Calendar cal) + throws SQLException; - public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, int parameterIndex, Calendar cal) throws SQLException; + public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, int parameterIndex, + Calendar cal) throws SQLException; - public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, int sqlType, String typeName) throws SQLException; + public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, + int sqlType, String typeName) throws SQLException; - public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, int sqlType) throws SQLException; + public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, + int sqlType) throws SQLException; - public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, int sqlType, int scale) throws SQLException; + public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, + int sqlType, int scale) throws SQLException; - public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, int sqlType, String typeName) - throws SQLException; + public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, + int sqlType, String typeName) throws SQLException; - public java.net.URL callableStatement_getURL(CallableStatementProxy statement, int parameterIndex) throws SQLException; + public java.net.URL callableStatement_getURL(CallableStatementProxy statement, int parameterIndex) + throws SQLException; - public void callableStatement_setURL(CallableStatementProxy statement, String parameterName, java.net.URL val) throws SQLException; + public void callableStatement_setURL(CallableStatementProxy statement, String parameterName, java.net.URL val) + throws SQLException; - public void callableStatement_setNull(CallableStatementProxy statement, String parameterName, int sqlType) throws SQLException; + public void callableStatement_setNull(CallableStatementProxy statement, String parameterName, int sqlType) + throws SQLException; - public void callableStatement_setBoolean(CallableStatementProxy statement, String parameterName, boolean x) throws SQLException; + public void callableStatement_setBoolean(CallableStatementProxy statement, String parameterName, boolean x) + throws SQLException; - public void callableStatement_setByte(CallableStatementProxy statement, String parameterName, byte x) throws SQLException; + public void callableStatement_setByte(CallableStatementProxy statement, String parameterName, byte x) + throws SQLException; - public void callableStatement_setShort(CallableStatementProxy statement, String parameterName, short x) throws SQLException; + public void callableStatement_setShort(CallableStatementProxy statement, String parameterName, short x) + throws SQLException; - public void callableStatement_setInt(CallableStatementProxy statement, String parameterName, int x) throws SQLException; + public void callableStatement_setInt(CallableStatementProxy statement, String parameterName, int x) + throws SQLException; - public void callableStatement_setLong(CallableStatementProxy statement, String parameterName, long x) throws SQLException; + public void callableStatement_setLong(CallableStatementProxy statement, String parameterName, long x) + throws SQLException; - public void callableStatement_setFloat(CallableStatementProxy statement, String parameterName, float x) throws SQLException; + public void callableStatement_setFloat(CallableStatementProxy statement, String parameterName, float x) + throws SQLException; - public void callableStatement_setDouble(CallableStatementProxy statement, String parameterName, double x) throws SQLException; + public void callableStatement_setDouble(CallableStatementProxy statement, String parameterName, double x) + throws SQLException; - public void callableStatement_setBigDecimal(CallableStatementProxy statement, String parameterName, BigDecimal x) throws SQLException; + public void callableStatement_setBigDecimal(CallableStatementProxy statement, String parameterName, BigDecimal x) + throws SQLException; - public void callableStatement_setString(CallableStatementProxy statement, String parameterName, String x) throws SQLException; + public void callableStatement_setString(CallableStatementProxy statement, String parameterName, String x) + throws SQLException; - public void callableStatement_setBytes(CallableStatementProxy statement, String parameterName, byte x[]) throws SQLException; + public void callableStatement_setBytes(CallableStatementProxy statement, String parameterName, byte x[]) + throws SQLException; - public void callableStatement_setDate(CallableStatementProxy statement, String parameterName, java.sql.Date x) throws SQLException; + public void callableStatement_setDate(CallableStatementProxy statement, String parameterName, java.sql.Date x) + throws SQLException; - public void callableStatement_setTime(CallableStatementProxy statement, String parameterName, java.sql.Time x) throws SQLException; + public void callableStatement_setTime(CallableStatementProxy statement, String parameterName, java.sql.Time x) + throws SQLException; - public void callableStatement_setTimestamp(CallableStatementProxy statement, String parameterName, java.sql.Timestamp x) throws SQLException; + public void callableStatement_setTimestamp(CallableStatementProxy statement, String parameterName, + java.sql.Timestamp x) throws SQLException; - public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x, int length) throws SQLException; + public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x, int length) throws SQLException; - public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x, int length) - throws SQLException; + public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x, int length) throws SQLException; - public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x, int targetSqlType, int scale) throws SQLException; + public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x, + int targetSqlType, int scale) throws SQLException; - public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x, int targetSqlType) throws SQLException; + public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x, + int targetSqlType) throws SQLException; - public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x) throws SQLException; + public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x) + throws SQLException; - public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, java.io.Reader reader, int length) - throws SQLException; + public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, + java.io.Reader reader, int length) throws SQLException; - public void callableStatement_setDate(CallableStatementProxy statement, String parameterName, java.sql.Date x, Calendar cal) throws SQLException; + public void callableStatement_setDate(CallableStatementProxy statement, String parameterName, java.sql.Date x, + Calendar cal) throws SQLException; - public void callableStatement_setTime(CallableStatementProxy statement, String parameterName, java.sql.Time x, Calendar cal) throws SQLException; + public void callableStatement_setTime(CallableStatementProxy statement, String parameterName, java.sql.Time x, + Calendar cal) throws SQLException; - public void callableStatement_setTimestamp(CallableStatementProxy statement, String parameterName, java.sql.Timestamp x, Calendar cal) throws SQLException; + public void callableStatement_setTimestamp(CallableStatementProxy statement, String parameterName, + java.sql.Timestamp x, Calendar cal) throws SQLException; - public void callableStatement_setNull(CallableStatementProxy statement, String parameterName, int sqlType, String typeName) throws SQLException; + public void callableStatement_setNull(CallableStatementProxy statement, String parameterName, int sqlType, + String typeName) throws SQLException; - public String callableStatement_getString(CallableStatementProxy statement, String parameterName) throws SQLException; + public String callableStatement_getString(CallableStatementProxy statement, String parameterName) + throws SQLException; - public boolean callableStatement_getBoolean(CallableStatementProxy statement, String parameterName) throws SQLException; + public boolean callableStatement_getBoolean(CallableStatementProxy statement, String parameterName) + throws SQLException; public byte callableStatement_getByte(CallableStatementProxy statement, String parameterName) throws SQLException; @@ -863,21 +1010,29 @@ public interface FilterChain { public float callableStatement_getFloat(CallableStatementProxy statement, String parameterName) throws SQLException; - public double callableStatement_getDouble(CallableStatementProxy statement, String parameterName) throws SQLException; + public double callableStatement_getDouble(CallableStatementProxy statement, String parameterName) + throws SQLException; - public byte[] callableStatement_getBytes(CallableStatementProxy statement, String parameterName) throws SQLException; + public byte[] callableStatement_getBytes(CallableStatementProxy statement, String parameterName) + throws SQLException; - public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, String parameterName) throws SQLException; + public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, String parameterName) + throws SQLException; - public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, String parameterName) throws SQLException; + public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, String parameterName) + throws SQLException; - public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, String parameterName) throws SQLException; + public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, String parameterName) + throws SQLException; - public Object callableStatement_getObject(CallableStatementProxy statement, String parameterName) throws SQLException; + public Object callableStatement_getObject(CallableStatementProxy statement, String parameterName) + throws SQLException; - public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, String parameterName) throws SQLException; + public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, String parameterName) + throws SQLException; - public Object callableStatement_getObject(CallableStatementProxy statement, String parameterName, java.util.Map> map) throws SQLException; + public Object callableStatement_getObject(CallableStatementProxy statement, String parameterName, + java.util.Map> map) throws SQLException; public Ref callableStatement_getRef(CallableStatementProxy statement, String parameterName) throws SQLException; @@ -887,80 +1042,108 @@ public interface FilterChain { public Array callableStatement_getArray(CallableStatementProxy statement, String parameterName) throws SQLException; - public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, String parameterName, Calendar cal) throws SQLException; + public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, String parameterName, Calendar cal) + throws SQLException; - public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, String parameterName, Calendar cal) throws SQLException; + public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, String parameterName, Calendar cal) + throws SQLException; - public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, String parameterName, Calendar cal) throws SQLException; + public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, String parameterName, + Calendar cal) throws SQLException; - public java.net.URL callableStatement_getURL(CallableStatementProxy statement, String parameterName) throws SQLException; + public java.net.URL callableStatement_getURL(CallableStatementProxy statement, String parameterName) + throws SQLException; public RowId callableStatement_getRowId(CallableStatementProxy statement, int parameterIndex) throws SQLException; public RowId callableStatement_getRowId(CallableStatementProxy statement, String parameterName) throws SQLException; - public void callableStatement_setRowId(CallableStatementProxy statement, String parameterName, RowId x) throws SQLException; + public void callableStatement_setRowId(CallableStatementProxy statement, String parameterName, RowId x) + throws SQLException; - public void callableStatement_setNString(CallableStatementProxy statement, String parameterName, String value) throws SQLException; + public void callableStatement_setNString(CallableStatementProxy statement, String parameterName, String value) + throws SQLException; - public void callableStatement_setNCharacterStream(CallableStatementProxy statement, String parameterName, Reader value, long length) throws SQLException; + public void callableStatement_setNCharacterStream(CallableStatementProxy statement, String parameterName, + Reader value, long length) throws SQLException; - public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, NClob value) throws SQLException; + public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, NClob value) + throws SQLException; - public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Reader reader, long length) throws SQLException; + public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Reader reader, + long length) throws SQLException; - public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, InputStream inputStream, long length) throws SQLException; + public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, + InputStream inputStream, long length) throws SQLException; - public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, Reader reader, long length) throws SQLException; + public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, Reader reader, + long length) throws SQLException; public NClob callableStatement_getNClob(CallableStatementProxy statement, int parameterIndex) throws SQLException; public NClob callableStatement_getNClob(CallableStatementProxy statement, String parameterName) throws SQLException; - public void callableStatement_setSQLXML(CallableStatementProxy statement, String parameterName, SQLXML xmlObject) throws SQLException; + public void callableStatement_setSQLXML(CallableStatementProxy statement, String parameterName, SQLXML xmlObject) + throws SQLException; public SQLXML callableStatement_getSQLXML(CallableStatementProxy statement, int parameterIndex) throws SQLException; - public SQLXML callableStatement_getSQLXML(CallableStatementProxy statement, String parameterName) throws SQLException; + public SQLXML callableStatement_getSQLXML(CallableStatementProxy statement, String parameterName) + throws SQLException; - public String callableStatement_getNString(CallableStatementProxy statement, int parameterIndex) throws SQLException; + public String callableStatement_getNString(CallableStatementProxy statement, int parameterIndex) + throws SQLException; - public String callableStatement_getNString(CallableStatementProxy statement, String parameterName) throws SQLException; + public String callableStatement_getNString(CallableStatementProxy statement, String parameterName) + throws SQLException; - public java.io.Reader callableStatement_getNCharacterStream(CallableStatementProxy statement, int parameterIndex) throws SQLException; + public java.io.Reader callableStatement_getNCharacterStream(CallableStatementProxy statement, int parameterIndex) + throws SQLException; - public java.io.Reader callableStatement_getNCharacterStream(CallableStatementProxy statement, String parameterName) throws SQLException; + public java.io.Reader callableStatement_getNCharacterStream(CallableStatementProxy statement, String parameterName) + throws SQLException; - public java.io.Reader callableStatement_getCharacterStream(CallableStatementProxy statement, int parameterIndex) throws SQLException; + public java.io.Reader callableStatement_getCharacterStream(CallableStatementProxy statement, int parameterIndex) + throws SQLException; - public java.io.Reader callableStatement_getCharacterStream(CallableStatementProxy statement, String parameterName) throws SQLException; + public java.io.Reader callableStatement_getCharacterStream(CallableStatementProxy statement, String parameterName) + throws SQLException; - public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, Blob x) throws SQLException; + public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, Blob x) + throws SQLException; - public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Clob x) throws SQLException; + public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Clob x) + throws SQLException; - public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x, long length) - throws SQLException; + public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x, long length) throws SQLException; - public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x, long length) - throws SQLException; + public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x, long length) throws SQLException; - public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, java.io.Reader reader, long length) - throws SQLException; + public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, + java.io.Reader reader, long length) throws SQLException; - public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x) throws SQLException; + public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x) throws SQLException; - public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x) throws SQLException; + public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x) throws SQLException; - public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, java.io.Reader reader) throws SQLException; + public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, + java.io.Reader reader) throws SQLException; - public void callableStatement_setNCharacterStream(CallableStatementProxy statement, String parameterName, Reader value) throws SQLException; + public void callableStatement_setNCharacterStream(CallableStatementProxy statement, String parameterName, + Reader value) throws SQLException; - public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Reader reader) throws SQLException; + public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Reader reader) + throws SQLException; - public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, InputStream inputStream) throws SQLException; + public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, + InputStream inputStream) throws SQLException; - public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, Reader reader) throws SQLException; + public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, Reader reader) + throws SQLException; public void clob_free(ClobProxy wrapper) throws SQLException; diff --git a/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java b/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java index bec02b34c0..18c7b0d68b 100644 --- a/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java +++ b/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java @@ -92,7 +92,7 @@ public class FilterChainImpl implements FilterChain { if (this.pos < filterSize) { return nextFilter().isWrapperFor(this, wrapper, iface); } - + // // if driver is for jdbc 3.0 if (iface.isAssignableFrom(wrapper.getClass())) { return true; @@ -107,11 +107,11 @@ public class FilterChainImpl implements FilterChain { if (this.pos < filterSize) { return nextFilter().unwrap(this, wrapper, iface); } - + if (iface == null) { return null; } - + // if driver is for jdbc 3.0 if (iface.isAssignableFrom(wrapper.getClass())) { return (T) wrapper; @@ -161,7 +161,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public Array connection_createArrayOf(ConnectionProxy connection, String typeName, Object[] elements) throws SQLException { + public Array connection_createArrayOf(ConnectionProxy connection, String typeName, Object[] elements) + throws SQLException { if (this.pos < filterSize) { return nextFilter().connection_createArrayOf(this, connection, typeName, elements); } @@ -221,7 +222,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public StatementProxy connection_createStatement(ConnectionProxy connection, int resultSetType, int resultSetConcurrency) throws SQLException { + public StatementProxy connection_createStatement(ConnectionProxy connection, int resultSetType, + int resultSetConcurrency) throws SQLException { if (this.pos < filterSize) { return nextFilter().connection_createStatement(this, connection, resultSetType, resultSetConcurrency); } @@ -231,18 +233,22 @@ public class FilterChainImpl implements FilterChain { } @Override - public StatementProxy connection_createStatement(ConnectionProxy connection, int resultSetType, int resultSetConcurrency, int resultSetHoldability) - throws SQLException { + public StatementProxy connection_createStatement(ConnectionProxy connection, int resultSetType, + int resultSetConcurrency, int resultSetHoldability) + throws SQLException { if (this.pos < filterSize) { - return nextFilter().connection_createStatement(this, connection, resultSetType, resultSetConcurrency, resultSetHoldability); + return nextFilter().connection_createStatement(this, connection, resultSetType, resultSetConcurrency, + resultSetHoldability); } - Statement statement = connection.getConnectionRaw().createStatement(resultSetType, resultSetConcurrency, resultSetHoldability); + Statement statement = connection.getConnectionRaw().createStatement(resultSetType, resultSetConcurrency, + resultSetHoldability); return wrap(connection, statement); } @Override - public Struct connection_createStruct(ConnectionProxy connection, String typeName, Object[] attributes) throws SQLException { + public Struct connection_createStruct(ConnectionProxy connection, String typeName, Object[] attributes) + throws SQLException { if (this.pos < filterSize) { return nextFilter().connection_createStruct(this, connection, typeName, attributes); } @@ -391,29 +397,35 @@ public class FilterChainImpl implements FilterChain { } @Override - public CallableStatementProxy connection_prepareCall(ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency) - throws SQLException { + public CallableStatementProxy connection_prepareCall(ConnectionProxy connection, String sql, int resultSetType, + int resultSetConcurrency) throws SQLException { if (this.pos < filterSize) { return nextFilter().connection_prepareCall(this, connection, sql, resultSetType, resultSetConcurrency); } - CallableStatement statement = connection.getConnectionRaw().prepareCall(sql, resultSetType, resultSetConcurrency); + CallableStatement statement = connection.getConnectionRaw().prepareCall(sql, resultSetType, + resultSetConcurrency); return wrap(connection, statement, sql); } @Override - public CallableStatementProxy connection_prepareCall(ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency, - int resultSetHoldability) throws SQLException { + public CallableStatementProxy connection_prepareCall(ConnectionProxy connection, String sql, int resultSetType, + int resultSetConcurrency, int resultSetHoldability) + throws SQLException { if (this.pos < filterSize) { - return nextFilter().connection_prepareCall(this, connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + return nextFilter().connection_prepareCall(this, connection, sql, resultSetType, resultSetConcurrency, + resultSetHoldability); } - CallableStatement statement = connection.getConnectionRaw().prepareCall(sql, resultSetType, resultSetConcurrency, resultSetHoldability); + CallableStatement statement = connection.getConnectionRaw().prepareCall(sql, resultSetType, + resultSetConcurrency, + resultSetHoldability); return wrap(connection, statement, sql); } @Override - public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql) + throws SQLException { if (this.pos < filterSize) { return nextFilter().connection_prepareStatement(this, connection, sql); } @@ -423,7 +435,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int autoGeneratedKeys) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, + int autoGeneratedKeys) throws SQLException { if (this.pos < filterSize) { return nextFilter().connection_prepareStatement(this, connection, sql, autoGeneratedKeys); } @@ -433,29 +446,36 @@ public class FilterChainImpl implements FilterChain { } @Override - public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency) + throws SQLException { if (this.pos < filterSize) { return nextFilter().connection_prepareStatement(this, connection, sql, resultSetType, resultSetConcurrency); } - PreparedStatement statement = connection.getConnectionRaw().prepareStatement(sql, resultSetType, resultSetConcurrency); + PreparedStatement statement = connection.getConnectionRaw().prepareStatement(sql, resultSetType, + resultSetConcurrency); return wrap(connection, statement, sql); } @Override - public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency, + public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { if (this.pos < filterSize) { - return nextFilter().connection_prepareStatement(this, connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + return nextFilter().connection_prepareStatement(this, connection, sql, resultSetType, resultSetConcurrency, + resultSetHoldability); } - PreparedStatement statement = connection.getConnectionRaw().prepareStatement(sql, resultSetType, resultSetConcurrency, resultSetHoldability); + PreparedStatement statement = connection.getConnectionRaw().prepareStatement(sql, resultSetType, + resultSetConcurrency, + resultSetHoldability); return wrap(connection, statement, sql); } @Override - public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, int[] columnIndexes) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, + int[] columnIndexes) throws SQLException { if (this.pos < filterSize) { return nextFilter().connection_prepareStatement(this, connection, sql, columnIndexes); } @@ -465,7 +485,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, String[] columnNames) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(ConnectionProxy connection, String sql, + String[] columnNames) throws SQLException { if (this.pos < filterSize) { return nextFilter().connection_prepareStatement(this, connection, sql, columnNames); } @@ -525,7 +546,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void connection_setClientInfo(ConnectionProxy connection, Properties properties) throws SQLClientInfoException { + public void connection_setClientInfo(ConnectionProxy connection, Properties properties) + throws SQLClientInfoException { if (this.pos < filterSize) { nextFilter().connection_setClientInfo(this, connection, properties); return; @@ -535,7 +557,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void connection_setClientInfo(ConnectionProxy connection, String name, String value) throws SQLClientInfoException { + public void connection_setClientInfo(ConnectionProxy connection, String name, String value) + throws SQLClientInfoException { if (this.pos < filterSize) { nextFilter().connection_setClientInfo(this, connection, name, value); return; @@ -746,7 +769,8 @@ public class FilterChainImpl implements FilterChain { @SuppressWarnings("deprecation") @Override - public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy resultSet, int columnIndex) throws SQLException { + public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy resultSet, int columnIndex) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getUnicodeStream(this, resultSet, columnIndex); } @@ -827,7 +851,8 @@ public class FilterChainImpl implements FilterChain { @SuppressWarnings("deprecation") @Override - public BigDecimal resultSet_getBigDecimal(ResultSetProxy resultSet, String columnLabel, int scale) throws SQLException { + public BigDecimal resultSet_getBigDecimal(ResultSetProxy resultSet, String columnLabel, int scale) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getBigDecimal(this, resultSet, columnLabel, scale); } @@ -867,7 +892,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.io.InputStream resultSet_getAsciiStream(ResultSetProxy resultSet, String columnLabel) throws SQLException { + public java.io.InputStream resultSet_getAsciiStream(ResultSetProxy resultSet, String columnLabel) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getAsciiStream(this, resultSet, columnLabel); } @@ -876,7 +902,8 @@ public class FilterChainImpl implements FilterChain { @SuppressWarnings("deprecation") @Override - public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy resultSet, String columnLabel) throws SQLException { + public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy resultSet, String columnLabel) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getUnicodeStream(this, resultSet, columnLabel); } @@ -884,7 +911,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.io.InputStream resultSet_getBinaryStream(ResultSetProxy resultSet, String columnLabel) throws SQLException { + public java.io.InputStream resultSet_getBinaryStream(ResultSetProxy resultSet, String columnLabel) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getBinaryStream(this, resultSet, columnLabel); } @@ -957,7 +985,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.io.Reader resultSet_getCharacterStream(ResultSetProxy resultSet, String columnLabel) throws SQLException { + public java.io.Reader resultSet_getCharacterStream(ResultSetProxy resultSet, String columnLabel) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getCharacterStream(this, resultSet, columnLabel); } @@ -1270,7 +1299,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateTimestamp(ResultSetProxy resultSet, int columnIndex, java.sql.Timestamp x) throws SQLException { + public void resultSet_updateTimestamp(ResultSetProxy resultSet, int columnIndex, java.sql.Timestamp x) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateTimestamp(this, resultSet, columnIndex, x); return; @@ -1279,7 +1309,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, int length) throws SQLException { + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, int length) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateAsciiStream(this, resultSet, columnIndex, x, length); return; @@ -1288,7 +1319,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, int length) throws SQLException { + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, + int length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBinaryStream(this, resultSet, columnIndex, x, length); return; @@ -1297,7 +1329,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, int length) throws SQLException { + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, int length) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateCharacterStream(this, resultSet, columnIndex, x, length); return; @@ -1306,7 +1339,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateObject(ResultSetProxy resultSet, int columnIndex, Object x, int scaleOrLength) throws SQLException { + public void resultSet_updateObject(ResultSetProxy resultSet, int columnIndex, Object x, int scaleOrLength) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateObject(this, resultSet, columnIndex, x, scaleOrLength); return; @@ -1396,7 +1430,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBigDecimal(ResultSetProxy resultSet, String columnLabel, BigDecimal x) throws SQLException { + public void resultSet_updateBigDecimal(ResultSetProxy resultSet, String columnLabel, BigDecimal x) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBigDecimal(this, resultSet, columnLabel, x); return; @@ -1441,7 +1476,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateTimestamp(ResultSetProxy resultSet, String columnLabel, java.sql.Timestamp x) throws SQLException { + public void resultSet_updateTimestamp(ResultSetProxy resultSet, String columnLabel, java.sql.Timestamp x) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateTimestamp(this, resultSet, columnLabel, x); return; @@ -1450,7 +1486,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, int length) throws SQLException { + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, + int length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateAsciiStream(this, resultSet, columnLabel, x, length); return; @@ -1459,7 +1496,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, int length) throws SQLException { + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, + int length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBinaryStream(this, resultSet, columnLabel, x, length); return; @@ -1468,7 +1506,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, int length) throws SQLException { + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, + int length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateCharacterStream(this, resultSet, columnLabel, reader, length); return; @@ -1477,7 +1516,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateObject(ResultSetProxy resultSet, String columnLabel, Object x, int scaleOrLength) throws SQLException { + public void resultSet_updateObject(ResultSetProxy resultSet, String columnLabel, Object x, int scaleOrLength) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateObject(this, resultSet, columnLabel, x, scaleOrLength); return; @@ -1566,7 +1606,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public Object resultSet_getObject(ResultSetProxy resultSet, int columnIndex, java.util.Map> map) throws SQLException { + public Object resultSet_getObject(ResultSetProxy resultSet, int columnIndex, java.util.Map> map) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getObject(this, resultSet, columnIndex, map); } @@ -1612,7 +1653,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public Object resultSet_getObject(ResultSetProxy resultSet, String columnLabel, java.util.Map> map) throws SQLException { + public Object resultSet_getObject(ResultSetProxy resultSet, String columnLabel, java.util.Map> map) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getObject(this, resultSet, columnLabel, map); } @@ -1663,7 +1705,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Date resultSet_getDate(ResultSetProxy resultSet, String columnLabel, Calendar cal) throws SQLException { + public java.sql.Date resultSet_getDate(ResultSetProxy resultSet, String columnLabel, Calendar cal) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getDate(this, resultSet, columnLabel, cal); } @@ -1679,7 +1722,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Time resultSet_getTime(ResultSetProxy resultSet, String columnLabel, Calendar cal) throws SQLException { + public java.sql.Time resultSet_getTime(ResultSetProxy resultSet, String columnLabel, Calendar cal) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getTime(this, resultSet, columnLabel, cal); } @@ -1687,7 +1731,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Timestamp resultSet_getTimestamp(ResultSetProxy resultSet, int columnIndex, Calendar cal) throws SQLException { + public java.sql.Timestamp resultSet_getTimestamp(ResultSetProxy resultSet, int columnIndex, Calendar cal) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getTimestamp(this, resultSet, columnIndex, cal); } @@ -1695,7 +1740,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Timestamp resultSet_getTimestamp(ResultSetProxy resultSet, String columnLabel, Calendar cal) throws SQLException { + public java.sql.Timestamp resultSet_getTimestamp(ResultSetProxy resultSet, String columnLabel, Calendar cal) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getTimestamp(this, resultSet, columnLabel, cal); } @@ -1782,7 +1828,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateArray(ResultSetProxy resultSet, String columnLabel, java.sql.Array x) throws SQLException { + public void resultSet_updateArray(ResultSetProxy resultSet, String columnLabel, java.sql.Array x) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateArray(this, resultSet, columnLabel, x); return; @@ -1850,7 +1897,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateNString(ResultSetProxy resultSet, String columnLabel, String nString) throws SQLException { + public void resultSet_updateNString(ResultSetProxy resultSet, String columnLabel, String nString) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateNString(this, resultSet, columnLabel, nString); return; @@ -1925,7 +1973,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateSQLXML(ResultSetProxy resultSet, String columnLabel, SQLXML xmlObject) throws SQLException { + public void resultSet_updateSQLXML(ResultSetProxy resultSet, String columnLabel, SQLXML xmlObject) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateSQLXML(this, resultSet, columnLabel, xmlObject); return; @@ -1958,7 +2007,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.io.Reader resultSet_getNCharacterStream(ResultSetProxy resultSet, String columnLabel) throws SQLException { + public java.io.Reader resultSet_getNCharacterStream(ResultSetProxy resultSet, String columnLabel) + throws SQLException { if (this.pos < filterSize) { return nextFilter().resultSet_getNCharacterStream(this, resultSet, columnLabel); } @@ -1966,7 +2016,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, long length) throws SQLException { + public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateNCharacterStream(this, resultSet, columnIndex, x, length); return; @@ -1975,7 +2026,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, long length) throws SQLException { + public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateNCharacterStream(this, resultSet, columnLabel, reader, length); return; @@ -1984,7 +2036,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, long length) throws SQLException { + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateAsciiStream(this, resultSet, columnIndex, x, length); return; @@ -1993,7 +2046,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, long length) throws SQLException { + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBinaryStream(this, resultSet, columnIndex, x, length); return; @@ -2002,7 +2056,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, long length) throws SQLException { + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x, long length) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateCharacterStream(this, resultSet, columnIndex, x, length); return; @@ -2011,7 +2066,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, long length) throws SQLException { + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateAsciiStream(this, resultSet, columnLabel, x, length); return; @@ -2020,7 +2076,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, long length) throws SQLException { + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBinaryStream(this, resultSet, columnLabel, x, length); return; @@ -2029,7 +2086,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, long length) throws SQLException { + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateCharacterStream(this, resultSet, columnLabel, reader, length); return; @@ -2038,7 +2096,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBlob(ResultSetProxy resultSet, int columnIndex, InputStream inputStream, long length) throws SQLException { + public void resultSet_updateBlob(ResultSetProxy resultSet, int columnIndex, InputStream inputStream, long length) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBlob(this, resultSet, columnIndex, inputStream, length); return; @@ -2047,7 +2106,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBlob(ResultSetProxy resultSet, String columnLabel, InputStream inputStream, long length) throws SQLException { + public void resultSet_updateBlob(ResultSetProxy resultSet, String columnLabel, InputStream inputStream, long length) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBlob(this, resultSet, columnLabel, inputStream, length); return; @@ -2056,7 +2116,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateClob(ResultSetProxy resultSet, int columnIndex, Reader reader, long length) throws SQLException { + public void resultSet_updateClob(ResultSetProxy resultSet, int columnIndex, Reader reader, long length) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateClob(this, resultSet, columnIndex, reader, length); return; @@ -2065,7 +2126,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateClob(ResultSetProxy resultSet, String columnLabel, Reader reader, long length) throws SQLException { + public void resultSet_updateClob(ResultSetProxy resultSet, String columnLabel, Reader reader, long length) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateClob(this, resultSet, columnLabel, reader, length); return; @@ -2074,7 +2136,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateNClob(ResultSetProxy resultSet, int columnIndex, Reader reader, long length) throws SQLException { + public void resultSet_updateNClob(ResultSetProxy resultSet, int columnIndex, Reader reader, long length) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateNClob(this, resultSet, columnIndex, reader, length); return; @@ -2083,7 +2146,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateNClob(ResultSetProxy resultSet, String columnLabel, Reader reader, long length) throws SQLException { + public void resultSet_updateNClob(ResultSetProxy resultSet, String columnLabel, Reader reader, long length) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateNClob(this, resultSet, columnLabel, reader, length); return; @@ -2092,7 +2156,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x) throws SQLException { + public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateNCharacterStream(this, resultSet, columnIndex, x); return; @@ -2101,7 +2166,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader) throws SQLException { + public void resultSet_updateNCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateNCharacterStream(this, resultSet, columnLabel, reader); return; @@ -2110,7 +2176,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) throws SQLException { + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateAsciiStream(this, resultSet, columnIndex, x); return; @@ -2119,7 +2186,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) throws SQLException { + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, int columnIndex, java.io.InputStream x) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBinaryStream(this, resultSet, columnIndex, x); return; @@ -2128,7 +2196,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x) throws SQLException { + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, int columnIndex, java.io.Reader x) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateCharacterStream(this, resultSet, columnIndex, x); return; @@ -2137,7 +2206,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x) throws SQLException { + public void resultSet_updateAsciiStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateAsciiStream(this, resultSet, columnLabel, x); return; @@ -2146,7 +2216,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x) throws SQLException { + public void resultSet_updateBinaryStream(ResultSetProxy resultSet, String columnLabel, java.io.InputStream x) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBinaryStream(this, resultSet, columnLabel, x); return; @@ -2155,7 +2226,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader) throws SQLException { + public void resultSet_updateCharacterStream(ResultSetProxy resultSet, String columnLabel, java.io.Reader reader) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateCharacterStream(this, resultSet, columnLabel, reader); return; @@ -2164,7 +2236,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBlob(ResultSetProxy resultSet, int columnIndex, InputStream inputStream) throws SQLException { + public void resultSet_updateBlob(ResultSetProxy resultSet, int columnIndex, InputStream inputStream) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBlob(this, resultSet, columnIndex, inputStream); return; @@ -2173,7 +2246,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void resultSet_updateBlob(ResultSetProxy resultSet, String columnLabel, InputStream inputStream) throws SQLException { + public void resultSet_updateBlob(ResultSetProxy resultSet, String columnLabel, InputStream inputStream) + throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateBlob(this, resultSet, columnLabel, inputStream); return; @@ -2588,7 +2662,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setNull(PreparedStatementProxy statement, int parameterIndex, int sqlType) throws SQLException { + public void preparedStatement_setNull(PreparedStatementProxy statement, int parameterIndex, int sqlType) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setNull(this, statement, parameterIndex, sqlType); return; @@ -2597,7 +2672,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setBoolean(PreparedStatementProxy statement, int parameterIndex, boolean x) throws SQLException { + public void preparedStatement_setBoolean(PreparedStatementProxy statement, int parameterIndex, boolean x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setBoolean(this, statement, parameterIndex, x); return; @@ -2606,7 +2682,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setByte(PreparedStatementProxy statement, int parameterIndex, byte x) throws SQLException { + public void preparedStatement_setByte(PreparedStatementProxy statement, int parameterIndex, byte x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setByte(this, statement, parameterIndex, x); return; @@ -2615,7 +2692,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setShort(PreparedStatementProxy statement, int parameterIndex, short x) throws SQLException { + public void preparedStatement_setShort(PreparedStatementProxy statement, int parameterIndex, short x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setShort(this, statement, parameterIndex, x); return; @@ -2624,7 +2702,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setInt(PreparedStatementProxy statement, int parameterIndex, int x) throws SQLException { + public void preparedStatement_setInt(PreparedStatementProxy statement, int parameterIndex, int x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setInt(this, statement, parameterIndex, x); return; @@ -2633,7 +2712,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setLong(PreparedStatementProxy statement, int parameterIndex, long x) throws SQLException { + public void preparedStatement_setLong(PreparedStatementProxy statement, int parameterIndex, long x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setLong(this, statement, parameterIndex, x); return; @@ -2642,7 +2722,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setFloat(PreparedStatementProxy statement, int parameterIndex, float x) throws SQLException { + public void preparedStatement_setFloat(PreparedStatementProxy statement, int parameterIndex, float x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setFloat(this, statement, parameterIndex, x); return; @@ -2651,7 +2732,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setDouble(PreparedStatementProxy statement, int parameterIndex, double x) throws SQLException { + public void preparedStatement_setDouble(PreparedStatementProxy statement, int parameterIndex, double x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setDouble(this, statement, parameterIndex, x); return; @@ -2660,7 +2742,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setBigDecimal(PreparedStatementProxy statement, int parameterIndex, BigDecimal x) throws SQLException { + public void preparedStatement_setBigDecimal(PreparedStatementProxy statement, int parameterIndex, BigDecimal x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setBigDecimal(this, statement, parameterIndex, x); return; @@ -2669,7 +2752,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setString(PreparedStatementProxy statement, int parameterIndex, String x) throws SQLException { + public void preparedStatement_setString(PreparedStatementProxy statement, int parameterIndex, String x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setString(this, statement, parameterIndex, x); return; @@ -2678,7 +2762,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setBytes(PreparedStatementProxy statement, int parameterIndex, byte x[]) throws SQLException { + public void preparedStatement_setBytes(PreparedStatementProxy statement, int parameterIndex, byte x[]) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setBytes(this, statement, parameterIndex, x); return; @@ -2687,7 +2772,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setDate(PreparedStatementProxy statement, int parameterIndex, java.sql.Date x) throws SQLException { + public void preparedStatement_setDate(PreparedStatementProxy statement, int parameterIndex, java.sql.Date x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setDate(this, statement, parameterIndex, x); return; @@ -2696,7 +2782,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setTime(PreparedStatementProxy statement, int parameterIndex, java.sql.Time x) throws SQLException { + public void preparedStatement_setTime(PreparedStatementProxy statement, int parameterIndex, java.sql.Time x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setTime(this, statement, parameterIndex, x); return; @@ -2705,7 +2792,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setTimestamp(PreparedStatementProxy statement, int parameterIndex, java.sql.Timestamp x) throws SQLException { + public void preparedStatement_setTimestamp(PreparedStatementProxy statement, int parameterIndex, + java.sql.Timestamp x) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setTimestamp(this, statement, parameterIndex, x); return; @@ -2714,7 +2802,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) throws SQLException { + public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, int length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setAsciiStream(this, statement, parameterIndex, x, length); return; @@ -2724,7 +2813,8 @@ public class FilterChainImpl implements FilterChain { @SuppressWarnings("deprecation") @Override - public void preparedStatement_setUnicodeStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) throws SQLException { + public void preparedStatement_setUnicodeStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, int length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setUnicodeStream(this, statement, parameterIndex, x, length); return; @@ -2733,7 +2823,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) throws SQLException { + public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, int length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setBinaryStream(this, statement, parameterIndex, x, length); return; @@ -2751,7 +2842,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType) throws SQLException { + public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x, + int targetSqlType) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setObject(this, statement, parameterIndex, x, targetSqlType); return; @@ -2760,7 +2852,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x) throws SQLException { + public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setObject(this, statement, parameterIndex, x); return; @@ -2786,8 +2879,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, int length) - throws SQLException { + public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, + java.io.Reader reader, int length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setCharacterStream(this, statement, parameterIndex, reader, length); return; @@ -2796,7 +2889,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setRef(PreparedStatementProxy statement, int parameterIndex, Ref x) throws SQLException { + public void preparedStatement_setRef(PreparedStatementProxy statement, int parameterIndex, Ref x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setRef(this, statement, parameterIndex, x); return; @@ -2805,7 +2899,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, Blob x) throws SQLException { + public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, Blob x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setBlob(this, statement, parameterIndex, x); return; @@ -2814,7 +2909,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Clob x) throws SQLException { + public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Clob x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setClob(this, statement, parameterIndex, x); return; @@ -2823,7 +2919,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setArray(PreparedStatementProxy statement, int parameterIndex, Array x) throws SQLException { + public void preparedStatement_setArray(PreparedStatementProxy statement, int parameterIndex, Array x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setArray(this, statement, parameterIndex, x); return; @@ -2840,7 +2937,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setDate(PreparedStatementProxy statement, int parameterIndex, java.sql.Date x, Calendar cal) throws SQLException { + public void preparedStatement_setDate(PreparedStatementProxy statement, int parameterIndex, java.sql.Date x, + Calendar cal) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setDate(this, statement, parameterIndex, x, cal); return; @@ -2849,7 +2947,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setTime(PreparedStatementProxy statement, int parameterIndex, java.sql.Time x, Calendar cal) throws SQLException { + public void preparedStatement_setTime(PreparedStatementProxy statement, int parameterIndex, java.sql.Time x, + Calendar cal) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setTime(this, statement, parameterIndex, x, cal); return; @@ -2858,7 +2957,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setTimestamp(PreparedStatementProxy statement, int parameterIndex, java.sql.Timestamp x, Calendar cal) throws SQLException { + public void preparedStatement_setTimestamp(PreparedStatementProxy statement, int parameterIndex, + java.sql.Timestamp x, Calendar cal) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setTimestamp(this, statement, parameterIndex, x, cal); return; @@ -2867,7 +2967,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setNull(PreparedStatementProxy statement, int parameterIndex, int sqlType, String typeName) throws SQLException { + public void preparedStatement_setNull(PreparedStatementProxy statement, int parameterIndex, int sqlType, + String typeName) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setNull(this, statement, parameterIndex, sqlType, typeName); return; @@ -2876,7 +2977,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setURL(PreparedStatementProxy statement, int parameterIndex, java.net.URL x) throws SQLException { + public void preparedStatement_setURL(PreparedStatementProxy statement, int parameterIndex, java.net.URL x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setURL(this, statement, parameterIndex, x); return; @@ -2885,7 +2987,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public ParameterMetaData preparedStatement_getParameterMetaData(PreparedStatementProxy statement) throws SQLException { + public ParameterMetaData preparedStatement_getParameterMetaData(PreparedStatementProxy statement) + throws SQLException { if (this.pos < filterSize) { return nextFilter().preparedStatement_getParameterMetaData(this, statement); } @@ -2893,7 +2996,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setRowId(PreparedStatementProxy statement, int parameterIndex, RowId x) throws SQLException { + public void preparedStatement_setRowId(PreparedStatementProxy statement, int parameterIndex, RowId x) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setRowId(this, statement, parameterIndex, x); return; @@ -2902,7 +3006,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setNString(PreparedStatementProxy statement, int parameterIndex, String value) throws SQLException { + public void preparedStatement_setNString(PreparedStatementProxy statement, int parameterIndex, String value) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setNString(this, statement, parameterIndex, value); return; @@ -2911,7 +3016,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setNCharacterStream(PreparedStatementProxy statement, int parameterIndex, Reader value, long length) throws SQLException { + public void preparedStatement_setNCharacterStream(PreparedStatementProxy statement, int parameterIndex, + Reader value, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setNCharacterStream(this, statement, parameterIndex, value, length); return; @@ -2920,7 +3026,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, NClob value) throws SQLException { + public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, NClob value) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setNClob(this, statement, parameterIndex, value); return; @@ -2929,7 +3036,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Reader reader, long length) throws SQLException { + public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Reader reader, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setClob(this, statement, parameterIndex, reader, length); return; @@ -2938,7 +3046,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, InputStream inputStream, long length) throws SQLException { + public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, + InputStream inputStream, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setBlob(this, statement, parameterIndex, inputStream, length); return; @@ -2947,7 +3056,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, Reader reader, long length) throws SQLException { + public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, Reader reader, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setNClob(this, statement, parameterIndex, reader, length); return; @@ -2956,7 +3066,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setSQLXML(PreparedStatementProxy statement, int parameterIndex, SQLXML xmlObject) throws SQLException { + public void preparedStatement_setSQLXML(PreparedStatementProxy statement, int parameterIndex, SQLXML xmlObject) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setSQLXML(this, statement, parameterIndex, xmlObject); return; @@ -2965,8 +3076,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType, int scaleOrLength) - throws SQLException { + public void preparedStatement_setObject(PreparedStatementProxy statement, int parameterIndex, Object x, + int targetSqlType, int scaleOrLength) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setObject(this, statement, parameterIndex, x, targetSqlType, scaleOrLength); return; @@ -2975,7 +3086,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) throws SQLException { + public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setAsciiStream(this, statement, parameterIndex, x, length); return; @@ -2984,7 +3096,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) throws SQLException { + public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setBinaryStream(this, statement, parameterIndex, x, length); return; @@ -2993,8 +3106,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, long length) - throws SQLException { + public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, + java.io.Reader reader, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setCharacterStream(this, statement, parameterIndex, reader, length); return; @@ -3003,7 +3116,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) throws SQLException { + public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setAsciiStream(this, statement, parameterIndex, x); return; @@ -3012,7 +3126,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) throws SQLException { + public void preparedStatement_setBinaryStream(PreparedStatementProxy statement, int parameterIndex, + java.io.InputStream x) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setBinaryStream(this, statement, parameterIndex, x); return; @@ -3021,7 +3136,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader) throws SQLException { + public void preparedStatement_setCharacterStream(PreparedStatementProxy statement, int parameterIndex, + java.io.Reader reader) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setCharacterStream(this, statement, parameterIndex, reader); return; @@ -3030,7 +3146,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setNCharacterStream(PreparedStatementProxy statement, int parameterIndex, Reader value) throws SQLException { + public void preparedStatement_setNCharacterStream(PreparedStatementProxy statement, int parameterIndex, Reader value) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setNCharacterStream(this, statement, parameterIndex, value); return; @@ -3039,7 +3156,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Reader reader) throws SQLException { + public void preparedStatement_setClob(PreparedStatementProxy statement, int parameterIndex, Reader reader) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setClob(this, statement, parameterIndex, reader); return; @@ -3048,7 +3166,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, InputStream inputStream) throws SQLException { + public void preparedStatement_setBlob(PreparedStatementProxy statement, int parameterIndex, InputStream inputStream) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setBlob(this, statement, parameterIndex, inputStream); return; @@ -3057,7 +3176,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, Reader reader) throws SQLException { + public void preparedStatement_setNClob(PreparedStatementProxy statement, int parameterIndex, Reader reader) + throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setNClob(this, statement, parameterIndex, reader); return; @@ -3068,7 +3188,8 @@ public class FilterChainImpl implements FilterChain { // ///////////////////////////////////// @Override - public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, int sqlType) throws SQLException { + public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, int sqlType) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_registerOutParameter(this, statement, parameterIndex, sqlType); return; @@ -3077,7 +3198,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, int sqlType, int scale) throws SQLException { + public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, + int sqlType, int scale) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_registerOutParameter(this, statement, parameterIndex, sqlType, scale); return; @@ -3102,7 +3224,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public boolean callableStatement_getBoolean(CallableStatementProxy statement, int parameterIndex) throws SQLException { + public boolean callableStatement_getBoolean(CallableStatementProxy statement, int parameterIndex) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getBoolean(this, statement, parameterIndex); } @@ -3159,7 +3282,8 @@ public class FilterChainImpl implements FilterChain { @SuppressWarnings("deprecation") @Override - public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, int parameterIndex, int scale) throws SQLException { + public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, int parameterIndex, int scale) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getBigDecimal(this, statement, parameterIndex, scale); } @@ -3175,7 +3299,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, int parameterIndex) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getDate(this, statement, parameterIndex); } @@ -3183,7 +3308,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, int parameterIndex) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getTime(this, statement, parameterIndex); } @@ -3191,7 +3317,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, int parameterIndex) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getTimestamp(this, statement, parameterIndex); } @@ -3207,7 +3334,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, int parameterIndex) throws SQLException { + public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, int parameterIndex) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getBigDecimal(this, statement, parameterIndex); } @@ -3215,7 +3343,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public Object callableStatement_getObject(CallableStatementProxy statement, int parameterIndex, java.util.Map> map) throws SQLException { + public Object callableStatement_getObject(CallableStatementProxy statement, int parameterIndex, + java.util.Map> map) throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getObject(this, statement, parameterIndex, map); } @@ -3258,7 +3387,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, int parameterIndex, Calendar cal) throws SQLException { + public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, int parameterIndex, Calendar cal) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getDate(this, statement, parameterIndex, cal); } @@ -3266,7 +3396,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, int parameterIndex, Calendar cal) throws SQLException { + public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, int parameterIndex, Calendar cal) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getTime(this, statement, parameterIndex, cal); } @@ -3274,7 +3405,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, int parameterIndex, Calendar cal) throws SQLException { + public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, int parameterIndex, + Calendar cal) throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getTimestamp(this, statement, parameterIndex, cal); } @@ -3282,7 +3414,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, int sqlType, String typeName) throws SQLException { + public void callableStatement_registerOutParameter(CallableStatementProxy statement, int parameterIndex, + int sqlType, String typeName) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_registerOutParameter(this, statement, parameterIndex, sqlType, typeName); return; @@ -3291,7 +3424,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, int sqlType) throws SQLException { + public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, + int sqlType) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_registerOutParameter(this, statement, parameterName, sqlType); return; @@ -3300,7 +3434,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, int sqlType, int scale) throws SQLException { + public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, + int sqlType, int scale) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_registerOutParameter(this, statement, parameterName, sqlType, scale); return; @@ -3309,8 +3444,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, int sqlType, String typeName) - throws SQLException { + public void callableStatement_registerOutParameter(CallableStatementProxy statement, String parameterName, + int sqlType, String typeName) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_registerOutParameter(this, statement, parameterName, sqlType, typeName); return; @@ -3319,7 +3454,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.net.URL callableStatement_getURL(CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.net.URL callableStatement_getURL(CallableStatementProxy statement, int parameterIndex) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getURL(this, statement, parameterIndex); } @@ -3327,7 +3463,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setURL(CallableStatementProxy statement, String parameterName, java.net.URL val) throws SQLException { + public void callableStatement_setURL(CallableStatementProxy statement, String parameterName, java.net.URL val) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setURL(this, statement, parameterName, val); return; @@ -3336,7 +3473,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setNull(CallableStatementProxy statement, String parameterName, int sqlType) throws SQLException { + public void callableStatement_setNull(CallableStatementProxy statement, String parameterName, int sqlType) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setNull(this, statement, parameterName, sqlType); return; @@ -3345,7 +3483,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setBoolean(CallableStatementProxy statement, String parameterName, boolean x) throws SQLException { + public void callableStatement_setBoolean(CallableStatementProxy statement, String parameterName, boolean x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setBoolean(this, statement, parameterName, x); return; @@ -3354,7 +3493,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setByte(CallableStatementProxy statement, String parameterName, byte x) throws SQLException { + public void callableStatement_setByte(CallableStatementProxy statement, String parameterName, byte x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setByte(this, statement, parameterName, x); } @@ -3362,7 +3502,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setShort(CallableStatementProxy statement, String parameterName, short x) throws SQLException { + public void callableStatement_setShort(CallableStatementProxy statement, String parameterName, short x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setShort(this, statement, parameterName, x); return; @@ -3371,7 +3512,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setInt(CallableStatementProxy statement, String parameterName, int x) throws SQLException { + public void callableStatement_setInt(CallableStatementProxy statement, String parameterName, int x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setInt(this, statement, parameterName, x); return; @@ -3380,7 +3522,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setLong(CallableStatementProxy statement, String parameterName, long x) throws SQLException { + public void callableStatement_setLong(CallableStatementProxy statement, String parameterName, long x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setLong(this, statement, parameterName, x); return; @@ -3389,7 +3532,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setFloat(CallableStatementProxy statement, String parameterName, float x) throws SQLException { + public void callableStatement_setFloat(CallableStatementProxy statement, String parameterName, float x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setFloat(this, statement, parameterName, x); return; @@ -3398,7 +3542,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setDouble(CallableStatementProxy statement, String parameterName, double x) throws SQLException { + public void callableStatement_setDouble(CallableStatementProxy statement, String parameterName, double x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setDouble(this, statement, parameterName, x); return; @@ -3407,7 +3552,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setBigDecimal(CallableStatementProxy statement, String parameterName, BigDecimal x) throws SQLException { + public void callableStatement_setBigDecimal(CallableStatementProxy statement, String parameterName, BigDecimal x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setBigDecimal(this, statement, parameterName, x); return; @@ -3416,7 +3562,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setString(CallableStatementProxy statement, String parameterName, String x) throws SQLException { + public void callableStatement_setString(CallableStatementProxy statement, String parameterName, String x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setString(this, statement, parameterName, x); return; @@ -3425,7 +3572,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setBytes(CallableStatementProxy statement, String parameterName, byte x[]) throws SQLException { + public void callableStatement_setBytes(CallableStatementProxy statement, String parameterName, byte x[]) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setBytes(this, statement, parameterName, x); return; @@ -3434,7 +3582,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setDate(CallableStatementProxy statement, String parameterName, java.sql.Date x) throws SQLException { + public void callableStatement_setDate(CallableStatementProxy statement, String parameterName, java.sql.Date x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setDate(this, statement, parameterName, x); return; @@ -3443,7 +3592,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setTime(CallableStatementProxy statement, String parameterName, java.sql.Time x) throws SQLException { + public void callableStatement_setTime(CallableStatementProxy statement, String parameterName, java.sql.Time x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setTime(this, statement, parameterName, x); return; @@ -3452,7 +3602,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setTimestamp(CallableStatementProxy statement, String parameterName, java.sql.Timestamp x) throws SQLException { + public void callableStatement_setTimestamp(CallableStatementProxy statement, String parameterName, + java.sql.Timestamp x) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setTimestamp(this, statement, parameterName, x); return; @@ -3461,7 +3612,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x, int length) throws SQLException { + public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x, int length) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setAsciiStream(this, statement, parameterName, x, length); return; @@ -3470,8 +3622,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x, int length) - throws SQLException { + public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x, int length) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setBinaryStream(this, statement, parameterName, x, length); return; @@ -3480,7 +3632,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x, int targetSqlType, int scale) throws SQLException { + public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x, + int targetSqlType, int scale) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setObject(this, statement, parameterName, x, targetSqlType, scale); return; @@ -3489,7 +3642,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x, int targetSqlType) throws SQLException { + public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x, + int targetSqlType) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setObject(this, statement, parameterName, x, targetSqlType); return; @@ -3498,7 +3652,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x) throws SQLException { + public void callableStatement_setObject(CallableStatementProxy statement, String parameterName, Object x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setObject(this, statement, parameterName, x); return; @@ -3507,8 +3662,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, java.io.Reader reader, int length) - throws SQLException { + public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, + java.io.Reader reader, int length) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setCharacterStream(this, statement, parameterName, reader, length); return; @@ -3517,7 +3672,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setDate(CallableStatementProxy statement, String parameterName, java.sql.Date x, Calendar cal) throws SQLException { + public void callableStatement_setDate(CallableStatementProxy statement, String parameterName, java.sql.Date x, + Calendar cal) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setDate(this, statement, parameterName, x, cal); return; @@ -3526,7 +3682,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setTime(CallableStatementProxy statement, String parameterName, java.sql.Time x, Calendar cal) throws SQLException { + public void callableStatement_setTime(CallableStatementProxy statement, String parameterName, java.sql.Time x, + Calendar cal) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setTime(this, statement, parameterName, x, cal); return; @@ -3535,7 +3692,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setTimestamp(CallableStatementProxy statement, String parameterName, java.sql.Timestamp x, Calendar cal) throws SQLException { + public void callableStatement_setTimestamp(CallableStatementProxy statement, String parameterName, + java.sql.Timestamp x, Calendar cal) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setTimestamp(this, statement, parameterName, x, cal); return; @@ -3544,7 +3702,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setNull(CallableStatementProxy statement, String parameterName, int sqlType, String typeName) throws SQLException { + public void callableStatement_setNull(CallableStatementProxy statement, String parameterName, int sqlType, + String typeName) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setNull(this, statement, parameterName, sqlType, typeName); return; @@ -3553,7 +3712,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public String callableStatement_getString(CallableStatementProxy statement, String parameterName) throws SQLException { + public String callableStatement_getString(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getString(this, statement, parameterName); } @@ -3561,7 +3721,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public boolean callableStatement_getBoolean(CallableStatementProxy statement, String parameterName) throws SQLException { + public boolean callableStatement_getBoolean(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getBoolean(this, statement, parameterName); } @@ -3609,7 +3770,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public double callableStatement_getDouble(CallableStatementProxy statement, String parameterName) throws SQLException { + public double callableStatement_getDouble(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getDouble(this, statement, parameterName); } @@ -3617,7 +3779,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public byte[] callableStatement_getBytes(CallableStatementProxy statement, String parameterName) throws SQLException { + public byte[] callableStatement_getBytes(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getBytes(this, statement, parameterName); } @@ -3625,7 +3788,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, String parameterName) throws SQLException { + public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getDate(this, statement, parameterName); } @@ -3633,7 +3797,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, String parameterName) throws SQLException { + public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getTime(this, statement, parameterName); } @@ -3641,7 +3806,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, String parameterName) throws SQLException { + public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getTimestamp(this, statement, parameterName); } @@ -3649,7 +3815,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public Object callableStatement_getObject(CallableStatementProxy statement, String parameterName) throws SQLException { + public Object callableStatement_getObject(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getObject(this, statement, parameterName); } @@ -3657,7 +3824,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, String parameterName) throws SQLException { + public BigDecimal callableStatement_getBigDecimal(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getBigDecimal(this, statement, parameterName); } @@ -3665,7 +3833,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public Object callableStatement_getObject(CallableStatementProxy statement, String parameterName, java.util.Map> map) throws SQLException { + public Object callableStatement_getObject(CallableStatementProxy statement, String parameterName, + java.util.Map> map) throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getObject(this, statement, parameterName, map); } @@ -3708,7 +3877,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, String parameterName, Calendar cal) throws SQLException { + public java.sql.Date callableStatement_getDate(CallableStatementProxy statement, String parameterName, Calendar cal) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getDate(this, statement, parameterName, cal); } @@ -3716,7 +3886,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, String parameterName, Calendar cal) throws SQLException { + public java.sql.Time callableStatement_getTime(CallableStatementProxy statement, String parameterName, Calendar cal) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getTime(this, statement, parameterName, cal); } @@ -3724,7 +3895,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, String parameterName, Calendar cal) throws SQLException { + public java.sql.Timestamp callableStatement_getTimestamp(CallableStatementProxy statement, String parameterName, + Calendar cal) throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getTimestamp(this, statement, parameterName, cal); } @@ -3732,7 +3904,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.net.URL callableStatement_getURL(CallableStatementProxy statement, String parameterName) throws SQLException { + public java.net.URL callableStatement_getURL(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getURL(this, statement, parameterName); } @@ -3756,7 +3929,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setRowId(CallableStatementProxy statement, String parameterName, RowId x) throws SQLException { + public void callableStatement_setRowId(CallableStatementProxy statement, String parameterName, RowId x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setRowId(this, statement, parameterName, x); return; @@ -3765,7 +3939,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setNString(CallableStatementProxy statement, String parameterName, String value) throws SQLException { + public void callableStatement_setNString(CallableStatementProxy statement, String parameterName, String value) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setNString(this, statement, parameterName, value); return; @@ -3774,7 +3949,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setNCharacterStream(CallableStatementProxy statement, String parameterName, Reader value, long length) throws SQLException { + public void callableStatement_setNCharacterStream(CallableStatementProxy statement, String parameterName, + Reader value, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setNCharacterStream(this, statement, parameterName, value, length); return; @@ -3783,7 +3959,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, NClob value) throws SQLException { + public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, NClob value) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setNClob(this, statement, parameterName, value); return; @@ -3792,7 +3969,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Reader reader, long length) throws SQLException { + public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Reader reader, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setClob(this, statement, parameterName, reader, length); return; @@ -3801,7 +3979,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, InputStream inputStream, long length) throws SQLException { + public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, + InputStream inputStream, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setBlob(this, statement, parameterName, inputStream, length); return; @@ -3810,7 +3989,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, Reader reader, long length) throws SQLException { + public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, Reader reader, + long length) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setNClob(this, statement, parameterName, reader, length); return; @@ -3841,7 +4021,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setSQLXML(CallableStatementProxy statement, String parameterName, SQLXML xmlObject) throws SQLException { + public void callableStatement_setSQLXML(CallableStatementProxy statement, String parameterName, SQLXML xmlObject) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setSQLXML(this, statement, parameterName, xmlObject); return; @@ -3858,7 +4039,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public SQLXML callableStatement_getSQLXML(CallableStatementProxy statement, String parameterName) throws SQLException { + public SQLXML callableStatement_getSQLXML(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getSQLXML(this, statement, parameterName); } @@ -3866,7 +4048,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public String callableStatement_getNString(CallableStatementProxy statement, int parameterIndex) throws SQLException { + public String callableStatement_getNString(CallableStatementProxy statement, int parameterIndex) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getNString(this, statement, parameterIndex); } @@ -3874,7 +4057,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public String callableStatement_getNString(CallableStatementProxy statement, String parameterName) throws SQLException { + public String callableStatement_getNString(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getNString(this, statement, parameterName); } @@ -3882,7 +4066,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.io.Reader callableStatement_getNCharacterStream(CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.io.Reader callableStatement_getNCharacterStream(CallableStatementProxy statement, int parameterIndex) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getNCharacterStream(this, statement, parameterIndex); } @@ -3890,7 +4075,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.io.Reader callableStatement_getNCharacterStream(CallableStatementProxy statement, String parameterName) throws SQLException { + public java.io.Reader callableStatement_getNCharacterStream(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getNCharacterStream(this, statement, parameterName); } @@ -3898,7 +4084,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.io.Reader callableStatement_getCharacterStream(CallableStatementProxy statement, int parameterIndex) throws SQLException { + public java.io.Reader callableStatement_getCharacterStream(CallableStatementProxy statement, int parameterIndex) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getCharacterStream(this, statement, parameterIndex); } @@ -3906,7 +4093,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public java.io.Reader callableStatement_getCharacterStream(CallableStatementProxy statement, String parameterName) throws SQLException { + public java.io.Reader callableStatement_getCharacterStream(CallableStatementProxy statement, String parameterName) + throws SQLException { if (this.pos < filterSize) { return nextFilter().callableStatement_getCharacterStream(this, statement, parameterName); } @@ -3914,7 +4102,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, Blob x) throws SQLException { + public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, Blob x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setBlob(this, statement, parameterName, x); return; @@ -3923,7 +4112,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Clob x) throws SQLException { + public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Clob x) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setClob(this, statement, parameterName, x); return; @@ -3932,8 +4122,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x, long length) - throws SQLException { + public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setAsciiStream(this, statement, parameterName, x, length); return; @@ -3942,8 +4132,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x, long length) - throws SQLException { + public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setBinaryStream(this, statement, parameterName, x, length); return; @@ -3952,8 +4142,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, java.io.Reader reader, long length) - throws SQLException { + public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, + java.io.Reader reader, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setCharacterStream(this, statement, parameterName, reader, length); return; @@ -3962,7 +4152,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x) throws SQLException { + public void callableStatement_setAsciiStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setAsciiStream(this, statement, parameterName, x); return; @@ -3971,7 +4162,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, java.io.InputStream x) throws SQLException { + public void callableStatement_setBinaryStream(CallableStatementProxy statement, String parameterName, + java.io.InputStream x) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setBinaryStream(this, statement, parameterName, x); return; @@ -3980,7 +4172,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, java.io.Reader reader) throws SQLException { + public void callableStatement_setCharacterStream(CallableStatementProxy statement, String parameterName, + java.io.Reader reader) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setCharacterStream(this, statement, parameterName, reader); return; @@ -3989,7 +4182,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setNCharacterStream(CallableStatementProxy statement, String parameterName, Reader value) throws SQLException { + public void callableStatement_setNCharacterStream(CallableStatementProxy statement, String parameterName, + Reader value) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setNCharacterStream(this, statement, parameterName, value); return; @@ -3998,7 +4192,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Reader reader) throws SQLException { + public void callableStatement_setClob(CallableStatementProxy statement, String parameterName, Reader reader) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setClob(this, statement, parameterName, reader); return; @@ -4007,7 +4202,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, InputStream inputStream) throws SQLException { + public void callableStatement_setBlob(CallableStatementProxy statement, String parameterName, + InputStream inputStream) throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setBlob(this, statement, parameterName, inputStream); return; @@ -4016,7 +4212,8 @@ public class FilterChainImpl implements FilterChain { } @Override - public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, Reader reader) throws SQLException { + public void callableStatement_setNClob(CallableStatementProxy statement, String parameterName, Reader reader) + throws SQLException { if (this.pos < filterSize) { nextFilter().callableStatement_setNClob(this, statement, parameterName, reader); return; @@ -4169,7 +4366,8 @@ public class FilterChainImpl implements FilterChain { return null; } - return new ResultSetProxyImpl(statement, resultSet, dataSource.createResultSetId(), statement.getLastExecuteSql()); + return new ResultSetProxyImpl(statement, resultSet, dataSource.createResultSetId(), + statement.getLastExecuteSql()); } public ClobProxy wrap(ConnectionProxy connection, Clob clob) { @@ -4188,5 +4386,4 @@ public class FilterChainImpl implements FilterChain { return new NClobProxyImpl(dataSource, connection, nclob); } - } diff --git a/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java b/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java index 70da949017..301e5d5cdf 100644 --- a/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java +++ b/src/main/java/com/alibaba/druid/filter/FilterEventAdapter.java @@ -77,8 +77,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, int resultSetConcurrency) - throws SQLException { + public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, + int resultSetConcurrency) throws SQLException { StatementProxy statement = super.connection_createStatement(chain, connection, resultSetType, resultSetType); statementCreateAfter(statement); @@ -87,9 +87,11 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, int resultSetConcurrency, - int resultSetHoldability) throws SQLException { - StatementProxy statement = super.connection_createStatement(chain, connection, resultSetType, resultSetType, resultSetHoldability); + public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, + int resultSetConcurrency, int resultSetHoldability) + throws SQLException { + StatementProxy statement = super.connection_createStatement(chain, connection, resultSetType, resultSetType, + resultSetHoldability); statementCreateAfter(statement); @@ -97,7 +99,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException { + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql) + throws SQLException { CallableStatementProxy statement = super.connection_prepareCall(chain, connection, sql); statementPrepareCallAfter(statement); @@ -106,9 +109,11 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency) - throws SQLException { - CallableStatementProxy statement = super.connection_prepareCall(chain, connection, sql, resultSetType, resultSetConcurrency); + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency) + throws SQLException { + CallableStatementProxy statement = super.connection_prepareCall(chain, connection, sql, resultSetType, + resultSetConcurrency); statementPrepareCallAfter(statement); @@ -116,9 +121,11 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency, int resultSetHoldability) throws SQLException { - CallableStatementProxy statement = super.connection_prepareCall(chain, connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { + CallableStatementProxy statement = super.connection_prepareCall(chain, connection, sql, resultSetType, + resultSetConcurrency, resultSetHoldability); statementPrepareCallAfter(statement); @@ -126,7 +133,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql) + throws SQLException { PreparedStatementProxy statement = super.connection_prepareStatement(chain, connection, sql); statementPrepareAfter(statement); @@ -135,8 +143,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int autoGeneratedKeys) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int autoGeneratedKeys) throws SQLException { PreparedStatementProxy statement = super.connection_prepareStatement(chain, connection, sql, autoGeneratedKeys); statementPrepareAfter(statement); @@ -145,9 +153,11 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency) throws SQLException { - PreparedStatementProxy statement = super.connection_prepareStatement(chain, connection, sql, resultSetType, resultSetConcurrency); + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int resultSetType, int resultSetConcurrency) + throws SQLException { + PreparedStatementProxy statement = super.connection_prepareStatement(chain, connection, sql, resultSetType, + resultSetConcurrency); statementPrepareAfter(statement); @@ -155,9 +165,11 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency, int resultSetHoldability) throws SQLException { - PreparedStatementProxy statement = super.connection_prepareStatement(chain, connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { + PreparedStatementProxy statement = super.connection_prepareStatement(chain, connection, sql, resultSetType, + resultSetConcurrency, resultSetHoldability); statementPrepareAfter(statement); @@ -165,8 +177,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int[] columnIndexes) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int[] columnIndexes) throws SQLException { PreparedStatementProxy statement = super.connection_prepareStatement(chain, connection, sql, columnIndexes); statementPrepareAfter(statement); @@ -175,8 +187,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, String[] columnNames) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, String[] columnNames) throws SQLException { PreparedStatementProxy statement = super.connection_prepareStatement(chain, connection, sql, columnNames); statementPrepareAfter(statement); @@ -207,7 +219,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { statementExecuteBefore(statement, sql); try { @@ -229,7 +242,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { statementExecuteBefore(statement, sql); try { @@ -251,7 +265,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) + throws SQLException { statementExecuteBefore(statement, sql); try { @@ -295,7 +310,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql) throws SQLException { + public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql) + throws SQLException { statementExecuteQueryBefore(statement, sql); try { @@ -340,7 +356,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { statementExecuteUpdateBefore(statement, sql); try { @@ -362,7 +379,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { statementExecuteUpdateBefore(statement, sql); try { @@ -384,7 +402,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) + throws SQLException { statementExecuteUpdateBefore(statement, sql); try { @@ -452,7 +471,8 @@ public abstract class FilterEventAdapter extends FilterAdapter { } @Override - public ResultSetProxy preparedStatement_executeQuery(FilterChain chain, PreparedStatementProxy statement) throws SQLException { + public ResultSetProxy preparedStatement_executeQuery(FilterChain chain, PreparedStatementProxy statement) + throws SQLException { try { statementExecuteQueryBefore(statement, statement.getSql()); @@ -547,326 +567,363 @@ public abstract class FilterEventAdapter extends FilterAdapter { // //// @Override - public void preparedStatement_setArray(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Array x) throws SQLException { + public void preparedStatement_setArray(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Array x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.ARRAY, x); super.preparedStatement_setArray(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream x) throws SQLException { + public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, InputStream x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.AsciiInputStream, x); super.preparedStatement_setAsciiStream(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream x, int length) - throws SQLException { + public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, InputStream x, int length) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.AsciiInputStream, x, length); super.preparedStatement_setAsciiStream(chain, statement, parameterIndex, x, length); } @Override - public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream x, long length) - throws SQLException { + public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, InputStream x, long length) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.AsciiInputStream, x, length); super.preparedStatement_setAsciiStream(chain, statement, parameterIndex, x, length); } @Override - public void preparedStatement_setBigDecimal(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, BigDecimal x) throws SQLException { + public void preparedStatement_setBigDecimal(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, BigDecimal x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.DECIMAL, x); super.preparedStatement_setBigDecimal(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream x) throws SQLException { + public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, InputStream x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.BinaryInputStream, x); super.preparedStatement_setBinaryStream(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream x, int length) - throws SQLException { + public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, InputStream x, int length) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.BinaryInputStream, x, length); super.preparedStatement_setBinaryStream(chain, statement, parameterIndex, x, length); } @Override - public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream x, long length) - throws SQLException { + public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, InputStream x, long length) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.BinaryInputStream, x, length); super.preparedStatement_setBinaryStream(chain, statement, parameterIndex, x, length); } @Override - public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Blob x) throws SQLException { + public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Blob x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.BLOB, x); super.preparedStatement_setBlob(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream x) throws SQLException { + public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + InputStream x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.BLOB, x); super.preparedStatement_setBlob(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream x, long length) - throws SQLException { + public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + InputStream x, long length) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.BLOB, x, length); super.preparedStatement_setBlob(chain, statement, parameterIndex, x, length); } @Override - public void preparedStatement_setBoolean(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, boolean x) throws SQLException { + public void preparedStatement_setBoolean(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + boolean x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.BOOLEAN, x); super.preparedStatement_setBoolean(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setByte(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, byte x) throws SQLException { + public void preparedStatement_setByte(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + byte x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.TINYINT, x); super.preparedStatement_setByte(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setBytes(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, byte[] x) throws SQLException { + public void preparedStatement_setBytes(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + byte[] x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.BINARY, x); super.preparedStatement_setBytes(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader x) throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, Reader x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.CharacterInputStream, x); super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader x, int length) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, Reader x, int length) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.CharacterInputStream, x, length); super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, x, length); } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader x, long length) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, Reader x, long length) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.CharacterInputStream, x, length); super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, x, length); } @Override - public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Clob x) throws SQLException { + public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Clob x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.CLOB, x); super.preparedStatement_setClob(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader x) throws SQLException { + public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.CLOB, x); super.preparedStatement_setClob(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader x, long length) throws SQLException { + public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader x, long length) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.CLOB, x, length); super.preparedStatement_setClob(chain, statement, parameterIndex, x, length); } @Override - public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Date x) throws SQLException { + public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Date x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.DATE, x); super.preparedStatement_setDate(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Date x, Calendar cal) throws SQLException { + public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Date x, Calendar cal) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.DATE, x, cal); super.preparedStatement_setDate(chain, statement, parameterIndex, x, cal); } @Override - public void preparedStatement_setDouble(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, double x) throws SQLException { + public void preparedStatement_setDouble(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + double x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.DOUBLE, x); super.preparedStatement_setDouble(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setFloat(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, float x) throws SQLException { + public void preparedStatement_setFloat(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + float x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.FLOAT, x); super.preparedStatement_setFloat(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setInt(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int x) throws SQLException { + public void preparedStatement_setInt(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int x) + throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.INTEGER, x); super.preparedStatement_setInt(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setLong(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, long x) throws SQLException { + public void preparedStatement_setLong(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + long x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.BIGINT, x); super.preparedStatement_setLong(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader x) throws SQLException { + public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, Reader x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.NCharacterInputStream, x); super.preparedStatement_setNCharacterStream(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader x, long length) - throws SQLException { + public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, Reader x, long length) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.NCharacterInputStream, x, length); super.preparedStatement_setNCharacterStream(chain, statement, parameterIndex, x, length); } @Override - public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, NClob x) throws SQLException { + public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + NClob x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.NCLOB, x); super.preparedStatement_setNClob(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader x) throws SQLException { + public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.NCLOB, x); super.preparedStatement_setNClob(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader x, long length) throws SQLException { + public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader x, long length) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.NCLOB, x, length); super.preparedStatement_setNClob(chain, statement, parameterIndex, x, length); } @Override - public void preparedStatement_setNString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, String x) throws SQLException { + public void preparedStatement_setNString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + String x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.NVARCHAR, x); super.preparedStatement_setNString(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int sqlType) throws SQLException { + public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + int sqlType) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.NULL); super.preparedStatement_setNull(chain, statement, parameterIndex, sqlType); } @Override - public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int sqlType, String typeName) - throws SQLException { + public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + int sqlType, String typeName) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.NULL, sqlType, typeName); super.preparedStatement_setNull(chain, statement, parameterIndex, sqlType, typeName); } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x) throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.JAVA_OBJECT, x); super.preparedStatement_setObject(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType) - throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x, int targetSqlType) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.JAVA_OBJECT, x, targetSqlType); super.preparedStatement_setObject(chain, statement, parameterIndex, x, targetSqlType); } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType, - int scaleOrLength) throws SQLException { - preparedStatement_setParameterBefore(statement, parameterIndex, Types.JAVA_OBJECT, x, targetSqlType, scaleOrLength); + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x, int targetSqlType, int scaleOrLength) throws SQLException { + preparedStatement_setParameterBefore(statement, parameterIndex, Types.JAVA_OBJECT, x, targetSqlType, + scaleOrLength); super.preparedStatement_setObject(chain, statement, parameterIndex, x, targetSqlType, scaleOrLength); } @Override - public void preparedStatement_setRef(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Ref x) throws SQLException { + public void preparedStatement_setRef(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Ref x) + throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.REF, x); super.preparedStatement_setRef(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setRowId(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, RowId x) throws SQLException { + public void preparedStatement_setRowId(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + RowId x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.ROWID, x); super.preparedStatement_setRowId(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setSQLXML(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, SQLXML x) throws SQLException { + public void preparedStatement_setSQLXML(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + SQLXML x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.SQLXML, x); super.preparedStatement_setSQLXML(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setShort(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, short x) throws SQLException { + public void preparedStatement_setShort(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + short x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.SMALLINT, x); super.preparedStatement_setShort(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, String x) throws SQLException { + public void preparedStatement_setString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + String x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.VARCHAR, x); super.preparedStatement_setString(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Time x) throws SQLException { + public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Time x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.TIME, x); super.preparedStatement_setTime(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Time x, Calendar cal) throws SQLException { + public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Time x, Calendar cal) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.TIME, x, cal); super.preparedStatement_setTime(chain, statement, parameterIndex, x, cal); } @Override - public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Timestamp x) throws SQLException { + public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Timestamp x) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.TIMESTAMP, x); super.preparedStatement_setTimestamp(chain, statement, parameterIndex, x); } @Override - public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Timestamp x, Calendar cal) - throws SQLException { + public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Timestamp x, Calendar cal) throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, Types.TIMESTAMP, x, cal); super.preparedStatement_setTimestamp(chain, statement, parameterIndex, x, cal); } @Override - public void preparedStatement_setURL(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, URL x) throws SQLException { + public void preparedStatement_setURL(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, URL x) + throws SQLException { preparedStatement_setParameterBefore(statement, parameterIndex, TYPE.URL, x); super.preparedStatement_setURL(chain, statement, parameterIndex, x); } - protected void preparedStatement_setParameterBefore(PreparedStatementProxy statement, int parameterIndex, int sqlType, Object... values) { + protected void preparedStatement_setParameterBefore(PreparedStatementProxy statement, int parameterIndex, + int sqlType, Object... values) { } protected void statement_executeErrorAfter(StatementProxy statement, String sql, Throwable error) { diff --git a/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java b/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java index 0c1918d4c6..1a8ef8d05a 100644 --- a/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java +++ b/src/main/java/com/alibaba/druid/filter/encoding/EncodingConvertFilter.java @@ -70,7 +70,8 @@ public class EncodingConvertFilter extends FilterAdapter { param.setServerEncoding(serverEncoding); } conn.getAttributes().put(ATTR_CHARSET_PARAMETER, param); - conn.getAttributes().put(ATTR_CHARSET_CONVERTER, new CharsetConvert(param.getClientEncoding(), param.getServerEncoding())); + conn.getAttributes().put(ATTR_CHARSET_CONVERTER, + new CharsetConvert(param.getClientEncoding(), param.getServerEncoding())); return conn; } @@ -92,7 +93,7 @@ public class EncodingConvertFilter extends FilterAdapter { ResultSet rawResultSet = result.getResultSetRaw(); ResultSetMetaData metadata = rawResultSet.getMetaData(); int columnType = metadata.getColumnType(columnIndex); - + Object value = null; switch (columnType) { case Types.CHAR: @@ -110,16 +111,17 @@ public class EncodingConvertFilter extends FilterAdapter { default: value = super.resultSet_getObject(chain, result, columnIndex); } - + return decodeObject(result.getStatementProxy().getConnectionProxy(), value); } @Override - public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, int columnIndex, java.util.Map> map) throws SQLException { + public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, int columnIndex, + java.util.Map> map) throws SQLException { ResultSet rawResultSet = result.getResultSetRaw(); ResultSetMetaData metadata = rawResultSet.getMetaData(); int columnType = metadata.getColumnType(columnIndex); - + Object value = null; switch (columnType) { case Types.CHAR: @@ -137,7 +139,7 @@ public class EncodingConvertFilter extends FilterAdapter { default: value = super.resultSet_getObject(chain, result, columnIndex, map); } - + return decodeObject(result.getStatementProxy().getConnectionProxy(), value); } @@ -147,7 +149,7 @@ public class EncodingConvertFilter extends FilterAdapter { ResultSetMetaData metadata = rawResultSet.getMetaData(); int columnIndex = rawResultSet.findColumn(columnLabel); int columnType = metadata.getColumnType(columnIndex); - + Object value = null; switch (columnType) { case Types.CHAR: @@ -169,12 +171,13 @@ public class EncodingConvertFilter extends FilterAdapter { } @Override - public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, String columnLabel, java.util.Map> map) throws SQLException { + public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, String columnLabel, + java.util.Map> map) throws SQLException { ResultSet rawResultSet = result.getResultSetRaw(); ResultSetMetaData metadata = rawResultSet.getMetaData(); int columnIndex = rawResultSet.findColumn(columnLabel); int columnType = metadata.getColumnType(columnIndex); - + Object value = null; switch (columnType) { case Types.CHAR: @@ -192,7 +195,7 @@ public class EncodingConvertFilter extends FilterAdapter { default: value = super.resultSet_getObject(chain, result, columnLabel, map); } - + return decodeObject(result.getStatementProxy().getConnectionProxy(), value); } @@ -234,57 +237,67 @@ public class EncodingConvertFilter extends FilterAdapter { // //////////////// Connection @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql) + throws SQLException { return super.connection_prepareStatement(chain, connection, encode(connection, sql)); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int autoGeneratedKeys) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int autoGeneratedKeys) throws SQLException { return super.connection_prepareStatement(chain, connection, encode(connection, sql), autoGeneratedKeys); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency) throws SQLException { - return super.connection_prepareStatement(chain, connection, encode(connection, sql), resultSetType, resultSetConcurrency); + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int resultSetType, int resultSetConcurrency) + throws SQLException { + return super.connection_prepareStatement(chain, connection, encode(connection, sql), resultSetType, + resultSetConcurrency); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency, int resultSetHoldability) throws SQLException { - return super.connection_prepareStatement(chain, connection, encode(connection, sql), resultSetType, resultSetConcurrency, resultSetHoldability); + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { + return super.connection_prepareStatement(chain, connection, encode(connection, sql), resultSetType, + resultSetConcurrency, resultSetHoldability); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int[] columnIndexes) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int[] columnIndexes) throws SQLException { return super.connection_prepareStatement(chain, connection, encode(connection, sql), columnIndexes); } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, String[] columnNames) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, String[] columnNames) throws SQLException { return super.connection_prepareStatement(chain, connection, encode(connection, sql), columnNames); } // / precall @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException { + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql) + throws SQLException { return super.connection_prepareCall(chain, connection, encode(connection, sql)); } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency) - throws SQLException { - return super.connection_prepareCall(chain, connection, encode(connection, sql), resultSetType, resultSetConcurrency); + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency) + throws SQLException { + return super.connection_prepareCall(chain, connection, encode(connection, sql), resultSetType, + resultSetConcurrency); } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency, int resultSetHoldability) throws SQLException { - return super.connection_prepareCall(chain, connection, encode(connection, sql), resultSetType, resultSetConcurrency, resultSetHoldability); + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { + return super.connection_prepareCall(chain, connection, encode(connection, sql), resultSetType, + resultSetConcurrency, resultSetHoldability); } // nativeSQL @@ -308,22 +321,26 @@ public class EncodingConvertFilter extends FilterAdapter { } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { return super.statement_execute(chain, statement, encode(statement.getConnectionProxy(), sql), autoGeneratedKeys); } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { return super.statement_execute(chain, statement, encode(statement.getConnectionProxy(), sql), columnIndexes); } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) + throws SQLException { return super.statement_execute(chain, statement, encode(statement.getConnectionProxy(), sql), columnNames); } @Override - public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql) throws SQLException { + public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql) + throws SQLException { return super.statement_executeQuery(chain, statement, encode(statement.getConnectionProxy(), sql)); } @@ -333,53 +350,64 @@ public class EncodingConvertFilter extends FilterAdapter { } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { - return super.statement_executeUpdate(chain, statement, encode(statement.getConnectionProxy(), sql), autoGeneratedKeys); + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { + return super.statement_executeUpdate(chain, statement, encode(statement.getConnectionProxy(), sql), + autoGeneratedKeys); } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { - return super.statement_executeUpdate(chain, statement, encode(statement.getConnectionProxy(), sql), columnIndexes); + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { + return super.statement_executeUpdate(chain, statement, encode(statement.getConnectionProxy(), sql), + columnIndexes); } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) + throws SQLException { return super.statement_executeUpdate(chain, statement, encode(statement.getConnectionProxy(), sql), columnNames); } // ========== preparedStatement @Override - public void preparedStatement_setString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, String x) throws SQLException { + public void preparedStatement_setString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + String x) throws SQLException { super.preparedStatement_setString(chain, statement, parameterIndex, encode(statement.getConnectionProxy(), x)); } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.Reader reader) throws SQLException { String text = JdbcUtils.read(reader); String encodedText = encode(statement.getConnectionProxy(), text); super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, new StringReader(encodedText)); } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, int length) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.Reader reader, int length) + throws SQLException { String text = JdbcUtils.read(reader, length); String encodedText = encode(statement.getConnectionProxy(), text); - super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, new StringReader(encodedText), encodedText.length()); + super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, new StringReader(encodedText), + encodedText.length()); } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, long length) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.Reader reader, long length) + throws SQLException { String text = JdbcUtils.read(reader, (int) length); String encodedText = encode(statement.getConnectionProxy(), text); - super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, new StringReader(encodedText), encodedText.length()); + super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, new StringReader(encodedText), + encodedText.length()); } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x) throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x) throws SQLException { if (x instanceof String) { String encodedText = encode(statement.getConnectionProxy(), (String) x); super.preparedStatement_setObject(chain, statement, parameterIndex, encodedText); @@ -393,30 +421,33 @@ public class EncodingConvertFilter extends FilterAdapter { } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType) - throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x, int targetSqlType) throws SQLException { if (x instanceof String) { String encodedText = encode(statement.getConnectionProxy(), (String) x); super.preparedStatement_setObject(chain, statement, parameterIndex, encodedText, targetSqlType); } else if (x instanceof Reader) { String text = JdbcUtils.read((Reader) x); String encodedText = encode(statement.getConnectionProxy(), text); - super.preparedStatement_setObject(chain, statement, parameterIndex, new StringReader(encodedText), targetSqlType); + super.preparedStatement_setObject(chain, statement, parameterIndex, new StringReader(encodedText), + targetSqlType); } else { super.preparedStatement_setObject(chain, statement, parameterIndex, x, targetSqlType); } } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType, - int scaleOrLength) throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x, int targetSqlType, int scaleOrLength) throws SQLException { if (x instanceof String) { String encodedText = encode(statement.getConnectionProxy(), (String) x); - super.preparedStatement_setObject(chain, statement, parameterIndex, encodedText, targetSqlType, scaleOrLength); + super.preparedStatement_setObject(chain, statement, parameterIndex, encodedText, targetSqlType, + scaleOrLength); } else if (x instanceof Reader) { String text = JdbcUtils.read((Reader) x); String encodedText = encode(statement.getConnectionProxy(), text); - super.preparedStatement_setObject(chain, statement, parameterIndex, new StringReader(encodedText), targetSqlType, scaleOrLength); + super.preparedStatement_setObject(chain, statement, parameterIndex, new StringReader(encodedText), + targetSqlType, scaleOrLength); } else { super.preparedStatement_setObject(chain, statement, parameterIndex, x, targetSqlType, scaleOrLength); } @@ -443,7 +474,8 @@ public class EncodingConvertFilter extends FilterAdapter { } @Override - public Reader clob_getCharacterStream(FilterChain chain, ClobProxy wrapper, long pos, long length) throws SQLException { + public Reader clob_getCharacterStream(FilterChain chain, ClobProxy wrapper, long pos, long length) + throws SQLException { Reader reader = super.clob_getCharacterStream(chain, wrapper, pos, length); String text = JdbcUtils.read(reader); return new StringReader(decode(wrapper.getConnectionWrapper(), text)); @@ -455,23 +487,25 @@ public class EncodingConvertFilter extends FilterAdapter { } @Override - public int clob_setString(FilterChain chain, ClobProxy wrapper, long pos, String str, int offset, int len) throws SQLException { + public int clob_setString(FilterChain chain, ClobProxy wrapper, long pos, String str, int offset, int len) + throws SQLException { return chain.clob_setString(wrapper, pos, encode(wrapper.getConnectionWrapper(), str), offset, len); } // ///////////// callableStatement_ @Override - public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.Reader reader) - throws SQLException { + public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.Reader reader) throws SQLException { String text = JdbcUtils.read(reader); Reader encodeReader = new StringReader(encode(statement.getConnectionProxy(), text)); super.callableStatement_setCharacterStream(chain, statement, parameterName, encodeReader); } @Override - public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.Reader reader, - int length) throws SQLException { + public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.Reader reader, int length) + throws SQLException { String text = JdbcUtils.read(reader, length); String encodeText = encode(statement.getConnectionProxy(), text); Reader encodeReader = new StringReader(encodeText); @@ -479,21 +513,25 @@ public class EncodingConvertFilter extends FilterAdapter { } @Override - public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, String parameterName, java.io.Reader reader, - long length) throws SQLException { + public void callableStatement_setCharacterStream(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.io.Reader reader, long length) + throws SQLException { String text = JdbcUtils.read(reader, (int) length); String encodeText = encode(statement.getConnectionProxy(), text); Reader encodeReader = new StringReader(encodeText); - super.callableStatement_setCharacterStream(chain, statement, parameterName, encodeReader, (long) encodeText.length()); + super.callableStatement_setCharacterStream(chain, statement, parameterName, encodeReader, + (long) encodeText.length()); } @Override - public void callableStatement_setString(FilterChain chain, CallableStatementProxy statement, String parameterName, String x) throws SQLException { + public void callableStatement_setString(FilterChain chain, CallableStatementProxy statement, String parameterName, + String x) throws SQLException { super.callableStatement_setString(chain, statement, parameterName, encode(statement.getConnectionProxy(), x)); } @Override - public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Object x) throws SQLException { + public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, + Object x) throws SQLException { if (x instanceof String) { String encodedText = encode(statement.getConnectionProxy(), (String) x); super.callableStatement_setObject(chain, statement, parameterName, encodedText); @@ -507,69 +545,76 @@ public class EncodingConvertFilter extends FilterAdapter { } @Override - public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Object x, int targetSqlType) - throws SQLException { + public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, + Object x, int targetSqlType) throws SQLException { if (x instanceof String) { String encodedText = encode(statement.getConnectionProxy(), (String) x); super.callableStatement_setObject(chain, statement, parameterName, encodedText, targetSqlType); } else if (x instanceof Reader) { String text = JdbcUtils.read((Reader) x); String encodedText = encode(statement.getConnectionProxy(), text); - super.callableStatement_setObject(chain, statement, parameterName, new StringReader(encodedText), targetSqlType); + super.callableStatement_setObject(chain, statement, parameterName, new StringReader(encodedText), + targetSqlType); } else { super.callableStatement_setObject(chain, statement, parameterName, x, targetSqlType); } } @Override - public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Object x, int targetSqlType, int scale) - throws SQLException { + public void callableStatement_setObject(FilterChain chain, CallableStatementProxy statement, String parameterName, + Object x, int targetSqlType, int scale) throws SQLException { if (x instanceof String) { String encodedText = encode(statement.getConnectionProxy(), (String) x); super.callableStatement_setObject(chain, statement, parameterName, encodedText, targetSqlType, scale); } else if (x instanceof Reader) { String text = JdbcUtils.read((Reader) x); String encodedText = encode(statement.getConnectionProxy(), text); - super.callableStatement_setObject(chain, statement, parameterName, new StringReader(encodedText), targetSqlType, scale); + super.callableStatement_setObject(chain, statement, parameterName, new StringReader(encodedText), + targetSqlType, scale); } else { super.callableStatement_setObject(chain, statement, parameterName, x, targetSqlType, scale); } } @Override - public String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { String value = super.callableStatement_getString(chain, statement, parameterIndex); return decode(statement.getConnectionProxy(), value); } @Override - public String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public String callableStatement_getString(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { String value = super.callableStatement_getString(chain, statement, parameterName); return decode(statement.getConnectionProxy(), value); } @Override - public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException { + public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex) + throws SQLException { Object value = chain.callableStatement_getObject(statement, parameterIndex); return decodeObject(statement.getConnectionProxy(), value); } @Override - public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex, java.util.Map> map) - throws SQLException { + public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex, + java.util.Map> map) throws SQLException { Object value = chain.callableStatement_getObject(statement, parameterIndex, map); return decodeObject(statement.getConnectionProxy(), value); } @Override - public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException { + public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName) + throws SQLException { Object value = chain.callableStatement_getObject(statement, parameterName); return decodeObject(statement.getConnectionProxy(), value); } @Override - public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName, java.util.Map> map) - throws SQLException { + public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, + String parameterName, java.util.Map> map) + throws SQLException { Object value = chain.callableStatement_getObject(statement, parameterName, map); return decodeObject(statement.getConnectionProxy(), value); } diff --git a/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java b/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java index 210f720784..f2e8be6bc3 100644 --- a/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java +++ b/src/main/java/com/alibaba/druid/filter/logging/LogFilter.java @@ -341,7 +341,8 @@ public abstract class LogFilter extends FilterEventAdapter implements LogFilterM @Override protected void statementExecuteAfter(StatementProxy statement, String sql, boolean firstResult) { if (statementExecuteAfterLogEnable && isStatementLogEnabled()) { - statementLog("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement) + "} executed. " + sql); + statementLog("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement) + "} executed. " + + sql); } } @@ -355,7 +356,8 @@ public abstract class LogFilter extends FilterEventAdapter implements LogFilterM sql = statement.getBatchSql(); } - statementLog("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement) + "} batch executed. " + sql); + statementLog("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement) + + "} batch executed. " + sql); } } @@ -371,8 +373,8 @@ public abstract class LogFilter extends FilterEventAdapter implements LogFilterM @Override protected void statementExecuteQueryAfter(StatementProxy statement, String sql, ResultSetProxy resultSet) { if (statementExecuteQueryAfterLogEnable && isStatementLogEnabled()) { - statementLog("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement) + ", rs-" + resultSet.getId() + "} query executed. " - + sql); + statementLog("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement) + ", rs-" + + resultSet.getId() + "} query executed. " + sql); } } @@ -388,7 +390,8 @@ public abstract class LogFilter extends FilterEventAdapter implements LogFilterM @Override protected void statementExecuteUpdateAfter(StatementProxy statement, String sql, int updateCount) { if (statementExecuteUpdateAfterLogEnable && isStatementLogEnabled()) { - statementLog("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement) + "} update executed. effort " + updateCount + ". " + sql); + statementLog("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement) + + "} update executed. effort " + updateCount + ". " + sql); } } @@ -482,26 +485,30 @@ public abstract class LogFilter extends FilterEventAdapter implements LogFilterM protected void statementCreateAfter(StatementProxy statement) { if (statementCreateAfterLogEnable && isStatementLogEnabled()) { - statementLog("{conn-" + statement.getConnectionProxy().getId() + ", stmt-" + statement.getId() + "} created"); + statementLog("{conn-" + statement.getConnectionProxy().getId() + ", stmt-" + statement.getId() + + "} created"); } } protected void statementPrepareAfter(PreparedStatementProxy statement) { if (statementPrepareAfterLogEnable && isStatementLogEnabled()) { - statementLog("{conn-" + statement.getConnectionProxy().getId() + ", pstmt-" + statement.getId() + "} created. " + statement.getSql()); + statementLog("{conn-" + statement.getConnectionProxy().getId() + ", pstmt-" + statement.getId() + + "} created. " + statement.getSql()); } } protected void statementPrepareCallAfter(CallableStatementProxy statement) { if (statementPrepareCallAfterLogEnable && isStatementLogEnabled()) { - statementLog("{conn-" + statement.getConnectionProxy().getId() + ", cstmt-" + statement.getId() + "} created. " + statement.getSql()); + statementLog("{conn-" + statement.getConnectionProxy().getId() + ", cstmt-" + statement.getId() + + "} created. " + statement.getSql()); } } @Override protected void statement_executeErrorAfter(StatementProxy statement, String sql, Throwable error) { if (this.isStatementLogErrorEnabled()) { - statementLogError("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement) + "} execute error. " + sql, error); + statementLogError("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement) + + "} execute error. " + sql, error); } } @@ -523,7 +530,8 @@ public abstract class LogFilter extends FilterEventAdapter implements LogFilterM return buf.toString(); } - protected void preparedStatement_setParameterBefore(PreparedStatementProxy statement, int parameterIndex, int sqlType, Object... values) { + protected void preparedStatement_setParameterBefore(PreparedStatementProxy statement, int parameterIndex, + int sqlType, Object... values) { JdbcParameter parameter = new JdbcParameter(sqlType, values); getParameters(statement).put(parameterIndex, parameter); diff --git a/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.java b/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.java index 1c26250eb5..9f690cc88e 100644 --- a/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.java +++ b/src/main/java/com/alibaba/druid/filter/logging/Slf4jLogFilter.java @@ -3,8 +3,8 @@ package com.alibaba.druid.filter.logging; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - public class Slf4jLogFilter extends LogFilter { + private String dataSourceLoggerName = "druid.sql.DataSource"; private String connectionLoggerName = "druid.sql.Connection"; private String statementLoggerName = "druid.sql.Statement"; @@ -106,7 +106,7 @@ public class Slf4jLogFilter extends LogFilter { @Override public boolean isResultSetLogErrorEnabled() { - return resultSetLogger.isErrorEnabled() && super.isResultSetLogErrorEnabled(); + return resultSetLogger.isErrorEnabled() && super.isResultSetLogErrorEnabled(); } @Override diff --git a/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java b/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java index 8406e1a7f7..184910fbf0 100644 --- a/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java +++ b/src/main/java/com/alibaba/druid/filter/stat/StatFilter.java @@ -170,7 +170,8 @@ public class StatFilter extends FilterEventAdapter implements StatFilterMBean { } @Override - public void connection_rollback(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) throws SQLException { + public void connection_rollback(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) + throws SQLException { super.connection_rollback(chain, connection, savepoint); connectStat.incrementConnectionRollbackCount(); @@ -467,7 +468,8 @@ public class StatFilter extends FilterEventAdapter implements StatFilterMBean { JdbcConnectionStat.Entry counter = (JdbcConnectionStat.Entry) connection.getAttributes().get(ATTR_NAME_CONNECTION_STAT); if (counter == null) { - connection.getAttributes().put(ATTR_NAME_CONNECTION_STAT, new JdbcConnectionStat.Entry(this.dataSource.getName(), connection.getId())); + connection.getAttributes().put(ATTR_NAME_CONNECTION_STAT, + new JdbcConnectionStat.Entry(this.dataSource.getName(), connection.getId())); counter = (JdbcConnectionStat.Entry) connection.getAttributes().get(ATTR_NAME_CONNECTION_STAT); } diff --git a/src/main/java/com/alibaba/druid/filter/trace/TraceFilter.java b/src/main/java/com/alibaba/druid/filter/trace/TraceFilter.java index 864e574443..9038b06297 100644 --- a/src/main/java/com/alibaba/druid/filter/trace/TraceFilter.java +++ b/src/main/java/com/alibaba/druid/filter/trace/TraceFilter.java @@ -321,7 +321,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void connection_rollback(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) throws SQLException { + public void connection_rollback(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) + throws SQLException { if (!isTraceConnectionEnable()) { chain.connection_rollback(connection, savepoint); return; @@ -389,7 +390,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql) + throws SQLException { if (!isTraceConnectionEnable()) { return chain.connection_prepareStatement(connection, sql); } @@ -410,7 +412,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -421,7 +424,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { return statement; } catch (SQLException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -431,7 +435,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (RuntimeException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -441,7 +446,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (Error ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -453,8 +459,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int autoGeneratedKeys) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int autoGeneratedKeys) throws SQLException { if (!isTraceConnectionEnable()) { return chain.connection_prepareStatement(connection, sql, autoGeneratedKeys); } @@ -476,7 +482,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -489,7 +496,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { return statement; } catch (SQLException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -500,7 +508,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (RuntimeException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -511,7 +520,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (Error ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -524,8 +534,9 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int resultSetType, int resultSetConcurrency) + throws SQLException { if (!isTraceConnectionEnable()) { return chain.connection_prepareStatement(connection, sql, resultSetType, resultSetConcurrency); } @@ -544,11 +555,13 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } try { - PreparedStatementProxy statement = chain.connection_prepareStatement(connection, sql, resultSetType, resultSetConcurrency); + PreparedStatementProxy statement = chain.connection_prepareStatement(connection, sql, resultSetType, + resultSetConcurrency); long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -562,7 +575,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { return statement; } catch (SQLException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -574,7 +588,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (RuntimeException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -586,7 +601,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (Error ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -600,10 +616,12 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { if (!isTraceConnectionEnable()) { - return chain.connection_prepareStatement(connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + return chain.connection_prepareStatement(connection, sql, resultSetType, resultSetConcurrency, + resultSetHoldability); } long startMillis = System.currentTimeMillis(); @@ -621,11 +639,14 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } try { - PreparedStatementProxy statement = chain.connection_prepareStatement(connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + PreparedStatementProxy statement = chain.connection_prepareStatement(connection, sql, resultSetType, + resultSetConcurrency, + resultSetHoldability); long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -640,7 +661,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { return statement; } catch (SQLException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -653,7 +675,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (RuntimeException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -666,7 +689,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (Error ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -681,8 +705,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int[] columnIndexes) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, int[] columnIndexes) throws SQLException { if (!isTraceConnectionEnable()) { return chain.connection_prepareStatement(connection, sql, columnIndexes); } @@ -704,7 +728,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -717,7 +742,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { return statement; } catch (SQLException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -728,7 +754,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (RuntimeException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -739,7 +766,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (Error ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -752,8 +780,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, String[] columnNames) - throws SQLException { + public PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, + String sql, String[] columnNames) throws SQLException { if (!isTraceConnectionEnable()) { return chain.connection_prepareStatement(connection, sql, columnNames); } @@ -775,7 +803,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("ConnectionPrepareStatementAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -788,7 +817,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { return statement; } catch (SQLException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -799,7 +829,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (RuntimeException ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -810,7 +841,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (Error ex) { { - TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("ConnectionPrepareStatementError", new Date(startMillis), + ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -823,7 +855,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql) throws SQLException { + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql) + throws SQLException { if (!isTraceConnectionEnable()) { return chain.connection_prepareCall(connection, sql); } @@ -888,8 +921,9 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency) - throws SQLException { + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency) + throws SQLException { if (!isTraceConnectionEnable()) { return chain.connection_prepareCall(connection, sql, resultSetType, resultSetConcurrency); } @@ -908,7 +942,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } try { - CallableStatementProxy statement = chain.connection_prepareCall(connection, sql, resultSetType, resultSetConcurrency); + CallableStatementProxy statement = chain.connection_prepareCall(connection, sql, resultSetType, + resultSetConcurrency); long timespan = System.currentTimeMillis() - startMillis; { @@ -964,10 +999,12 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, - int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, + int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { if (!isTraceConnectionEnable()) { - return chain.connection_prepareCall(connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + return chain.connection_prepareCall(connection, sql, resultSetType, resultSetConcurrency, + resultSetHoldability); } long startMillis = System.currentTimeMillis(); @@ -985,7 +1022,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } try { - CallableStatementProxy statement = chain.connection_prepareCall(connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + CallableStatementProxy statement = chain.connection_prepareCall(connection, sql, resultSetType, + resultSetConcurrency, resultSetHoldability); long timespan = System.currentTimeMillis() - startMillis; { @@ -1065,7 +1103,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("ConnectionCreateStatementAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("ConnectionCreateStatementAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -1105,8 +1144,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, int resultSetConcurrency) - throws SQLException { + public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, + int resultSetConcurrency) throws SQLException { if (!isTraceConnectionEnable()) { return chain.connection_createStatement(connection, resultSetType, resultSetConcurrency); } @@ -1128,7 +1167,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("ConnectionCreateStatementAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("ConnectionCreateStatementAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -1176,10 +1216,12 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, int resultSetConcurrency, - int resultSetHoldability) throws SQLException { + public StatementProxy connection_createStatement(FilterChain chain, ConnectionProxy connection, int resultSetType, + int resultSetConcurrency, int resultSetHoldability) + throws SQLException { if (!isTraceConnectionEnable()) { - return chain.connection_createStatement(connection, resultSetType, resultSetConcurrency, resultSetHoldability); + return chain.connection_createStatement(connection, resultSetType, resultSetConcurrency, + resultSetHoldability); } long startMillis = System.currentTimeMillis(); @@ -1197,11 +1239,13 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } try { - StatementProxy statement = chain.connection_createStatement(connection, resultSetType, resultSetType, resultSetHoldability); + StatementProxy statement = chain.connection_createStatement(connection, resultSetType, resultSetType, + resultSetHoldability); long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("ConnectionCreateStatementAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("ConnectionCreateStatementAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -1324,7 +1368,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { if (!isTraceStatementEnable()) { return chain.statement_execute(statement, sql, autoGeneratedKeys); } @@ -1400,7 +1445,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { if (!isTraceStatementEnable()) { return chain.statement_execute(statement, sql, columnIndexes); } @@ -1476,7 +1522,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) + throws SQLException { if (!isTraceStatementEnable()) { return chain.statement_execute(statement, sql, columnNames); } @@ -1575,7 +1622,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("StatementExecuteBatchAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("StatementExecuteBatchAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -1619,7 +1667,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql) throws SQLException { + public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql) + throws SQLException { if (!isTraceStatementEnable()) { return chain.statement_executeQuery(statement, sql); } @@ -1643,7 +1692,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("StatementExecuteQueryAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("StatementExecuteQueryAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -1717,7 +1767,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("StatementExecuteUpdateAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("StatementExecuteUpdateAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -1765,7 +1816,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { if (!isTraceStatementEnable()) { return chain.statement_executeUpdate(statement, sql, autoGeneratedKeys); } @@ -1790,7 +1842,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("StatementExecuteUpdateAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("StatementExecuteUpdateAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -1842,7 +1895,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { if (!isTraceStatementEnable()) { return chain.statement_executeUpdate(statement, sql, columnIndexes); } @@ -1867,7 +1921,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("StatementExecuteUpdateAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("StatementExecuteUpdateAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -1919,7 +1974,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String columnNames[]) + throws SQLException { if (!isTraceStatementEnable()) { return chain.statement_executeUpdate(statement, sql, columnNames); } @@ -1944,7 +2000,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("StatementExecuteUpdateAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("StatementExecuteUpdateAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2320,7 +2377,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("PreparedStatementExecuteAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("PreparedStatementExecuteAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2372,7 +2430,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public ResultSetProxy preparedStatement_executeQuery(FilterChain chain, PreparedStatementProxy statement) throws SQLException { + public ResultSetProxy preparedStatement_executeQuery(FilterChain chain, PreparedStatementProxy statement) + throws SQLException { if (!isTraceStatementEnable()) { return chain.preparedStatement_executeQuery(statement); } @@ -2397,7 +2456,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("PreparedStatementExecuteQueryAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("PreparedStatementExecuteQueryAfter", + new Date(startMillis), timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2413,7 +2473,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { return resultSet; } catch (SQLException ex) { { - TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteQueryError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteQueryError", + new Date(startMillis), ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2425,7 +2486,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (RuntimeException ex) { { - TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteQueryError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteQueryError", + new Date(startMillis), ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2437,7 +2499,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (Error ex) { { - TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteQueryError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteQueryError", + new Date(startMillis), ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2476,7 +2539,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("PreparedStatementExecuteQueryAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("PreparedStatementExecuteQueryAfter", + new Date(startMillis), timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2490,7 +2554,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { return updateCount; } catch (SQLException ex) { { - TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteUpdateError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteUpdateError", + new Date(startMillis), ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2502,7 +2567,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (RuntimeException ex) { { - TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteUpdateError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteUpdateError", + new Date(startMillis), ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2514,7 +2580,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (Error ex) { { - TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteUpdateError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("PreparedStatementExecuteUpdateError", + new Date(startMillis), ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2528,7 +2595,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_clearParameters(FilterChain chain, PreparedStatementProxy statement) throws SQLException { + public void preparedStatement_clearParameters(FilterChain chain, PreparedStatementProxy statement) + throws SQLException { if (!isTraceStatementEnable()) { chain.preparedStatement_clearParameters(statement); return; @@ -2554,7 +2622,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("PreparedStatementClearParametersAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("PreparedStatementClearParametersAfter", + new Date(startMillis), timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2565,7 +2634,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } } catch (SQLException ex) { { - TraceErrorEvent event = new TraceErrorEvent("PreparedStatementClearParametersError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("PreparedStatementClearParametersError", + new Date(startMillis), ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2577,7 +2647,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (RuntimeException ex) { { - TraceErrorEvent event = new TraceErrorEvent("PreparedStatementClearParametersError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("PreparedStatementClearParametersError", + new Date(startMillis), ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2589,7 +2660,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { throw ex; } catch (Error ex) { { - TraceErrorEvent event = new TraceErrorEvent("PreparedStatementClearParametersError", new Date(startMillis), ex); + TraceErrorEvent event = new TraceErrorEvent("PreparedStatementClearParametersError", + new Date(startMillis), ex); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2629,7 +2701,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { long timespan = System.currentTimeMillis() - startMillis; { - TraceAfterEvent event = new TraceAfterEvent("PreparedStatementAddBatchAfter", new Date(startMillis), timespan); + TraceAfterEvent event = new TraceAfterEvent("PreparedStatementAddBatchAfter", new Date(startMillis), + timespan); event.putContext(TRACE_CONN_INFO, connection.getProperties().clone()); event.putContext(TRACE_CONN_CONNECTED_TIME, connection.getConnectedTime()); event.putContext(TRACE_CONN_ID, connection.getId()); @@ -2685,7 +2758,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { // ////////////////////////////////////////////// @Override - public void preparedStatement_setArray(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Array x) throws SQLException { + public void preparedStatement_setArray(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Array x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setArray(chain, statement, parameterIndex, x); return; @@ -2702,8 +2776,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) - throws SQLException { + public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setAsciiStream(chain, statement, parameterIndex, x); return; @@ -2720,8 +2794,9 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) - throws SQLException { + public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x, int length) + throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setAsciiStream(chain, statement, parameterIndex, x, length); return; @@ -2739,8 +2814,9 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) - throws SQLException { + public void preparedStatement_setAsciiStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x, long length) + throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setAsciiStream(chain, statement, parameterIndex, x, length); return; @@ -2758,7 +2834,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setBigDecimal(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, BigDecimal x) throws SQLException { + public void preparedStatement_setBigDecimal(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, BigDecimal x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setBigDecimal(chain, statement, parameterIndex, x); return; @@ -2775,8 +2852,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) - throws SQLException { + public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setBinaryStream(chain, statement, parameterIndex, x); return; @@ -2793,8 +2870,9 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) - throws SQLException { + public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x, int length) + throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setBinaryStream(chain, statement, parameterIndex, x, length); return; @@ -2812,8 +2890,9 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) - throws SQLException { + public void preparedStatement_setBinaryStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x, long length) + throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setBinaryStream(chain, statement, parameterIndex, x, length); return; @@ -2831,7 +2910,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Blob x) throws SQLException { + public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Blob x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setBlob(chain, statement, parameterIndex, x); return; @@ -2848,7 +2928,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream inputStream) throws SQLException { + public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + InputStream inputStream) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setBlob(chain, statement, parameterIndex, inputStream); return; @@ -2865,8 +2946,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, InputStream inputStream, long length) - throws SQLException { + public void preparedStatement_setBlob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + InputStream inputStream, long length) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setBlob(chain, statement, parameterIndex, inputStream, length); return; @@ -2884,7 +2965,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setBoolean(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, boolean x) throws SQLException { + public void preparedStatement_setBoolean(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + boolean x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setBoolean(chain, statement, parameterIndex, x); return; @@ -2901,7 +2983,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setByte(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, byte x) throws SQLException { + public void preparedStatement_setByte(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + byte x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setByte(chain, statement, parameterIndex, x); return; @@ -2918,7 +3001,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setBytes(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, byte x[]) throws SQLException { + public void preparedStatement_setBytes(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + byte x[]) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setBytes(chain, statement, parameterIndex, x); return; @@ -2935,8 +3019,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.Reader reader) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, reader); return; @@ -2953,8 +3037,9 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, int length) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.Reader reader, int length) + throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, reader, length); return; @@ -2972,8 +3057,9 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.Reader reader, long length) - throws SQLException { + public void preparedStatement_setCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.Reader reader, long length) + throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setCharacterStream(chain, statement, parameterIndex, reader, length); return; @@ -2991,7 +3077,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Clob x) throws SQLException { + public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Clob x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setClob(chain, statement, parameterIndex, x); return; @@ -3008,7 +3095,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader) throws SQLException { + public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setClob(chain, statement, parameterIndex, reader); return; @@ -3025,8 +3113,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader, long length) - throws SQLException { + public void preparedStatement_setClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader, long length) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setClob(chain, statement, parameterIndex, reader, length); return; @@ -3044,7 +3132,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Date x) throws SQLException { + public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Date x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setDate(chain, statement, parameterIndex, x); return; @@ -3061,8 +3150,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Date x, Calendar calendar) - throws SQLException { + public void preparedStatement_setDate(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Date x, Calendar calendar) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setDate(chain, statement, parameterIndex, x, calendar); return; @@ -3080,7 +3169,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setDouble(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, double x) throws SQLException { + public void preparedStatement_setDouble(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + double x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setDouble(chain, statement, parameterIndex, x); return; @@ -3097,7 +3187,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setFloat(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, float x) throws SQLException { + public void preparedStatement_setFloat(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + float x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setFloat(chain, statement, parameterIndex, x); return; @@ -3114,7 +3205,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setInt(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int x) throws SQLException { + public void preparedStatement_setInt(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int x) + throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setInt(chain, statement, parameterIndex, x); return; @@ -3131,7 +3223,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setLong(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, long x) throws SQLException { + public void preparedStatement_setLong(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + long x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setLong(chain, statement, parameterIndex, x); return; @@ -3148,8 +3241,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader value) - throws SQLException { + public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, Reader value) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setNCharacterStream(chain, statement, parameterIndex, value); return; @@ -3166,8 +3259,9 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader value, long length) - throws SQLException { + public void preparedStatement_setNCharacterStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, Reader value, long length) + throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setNCharacterStream(chain, statement, parameterIndex, value, length); return; @@ -3185,7 +3279,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, NClob value) throws SQLException { + public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + NClob value) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setNClob(chain, statement, parameterIndex, value); return; @@ -3202,7 +3297,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader) throws SQLException { + public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setNClob(chain, statement, parameterIndex, reader); return; @@ -3219,8 +3315,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Reader reader, long length) - throws SQLException { + public void preparedStatement_setNClob(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Reader reader, long length) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setNClob(chain, statement, parameterIndex, reader, length); return; @@ -3238,7 +3334,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setNString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, String value) throws SQLException { + public void preparedStatement_setNString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + String value) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setNString(chain, statement, parameterIndex, value); return; @@ -3255,7 +3352,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int sqlType) throws SQLException { + public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + int sqlType) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setNull(chain, statement, parameterIndex, sqlType); return; @@ -3273,8 +3371,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, int sqlType, String typeName) - throws SQLException { + public void preparedStatement_setNull(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + int sqlType, String typeName) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setNull(chain, statement, parameterIndex, sqlType, typeName); return; @@ -3293,7 +3391,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x) throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setObject(chain, statement, parameterIndex, x); return; @@ -3322,8 +3421,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType) - throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x, int targetSqlType) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setObject(chain, statement, parameterIndex, x, targetSqlType); return; @@ -3353,8 +3452,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Object x, int targetSqlType, - int scaleOrLength) throws SQLException { + public void preparedStatement_setObject(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + Object x, int targetSqlType, int scaleOrLength) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setObject(chain, statement, parameterIndex, x, targetSqlType, scaleOrLength); return; @@ -3385,7 +3484,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setRef(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Ref x) throws SQLException { + public void preparedStatement_setRef(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, Ref x) + throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setRef(chain, statement, parameterIndex, x); return; @@ -3402,7 +3502,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setRowId(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, RowId x) throws SQLException { + public void preparedStatement_setRowId(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + RowId x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setRowId(chain, statement, parameterIndex, x); return; @@ -3419,7 +3520,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setShort(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, short x) throws SQLException { + public void preparedStatement_setShort(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + short x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setShort(chain, statement, parameterIndex, x); return; @@ -3436,7 +3538,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setSQLXML(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, SQLXML xmlObject) throws SQLException { + public void preparedStatement_setSQLXML(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + SQLXML xmlObject) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setSQLXML(chain, statement, parameterIndex, xmlObject); return; @@ -3453,7 +3556,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, String x) throws SQLException { + public void preparedStatement_setString(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + String x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setString(chain, statement, parameterIndex, x); return; @@ -3470,7 +3574,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Time x) throws SQLException { + public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Time x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setTime(chain, statement, parameterIndex, x); return; @@ -3487,8 +3592,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Time x, Calendar calendar) - throws SQLException { + public void preparedStatement_setTime(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Time x, Calendar calendar) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setTime(chain, statement, parameterIndex, x, calendar); return; @@ -3506,8 +3611,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Timestamp x) - throws SQLException { + public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Timestamp x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setTimestamp(chain, statement, parameterIndex, x); return; @@ -3524,8 +3629,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.sql.Timestamp x, Calendar calendar) - throws SQLException { + public void preparedStatement_setTimestamp(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.sql.Timestamp x, Calendar calendar) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setTimestamp(chain, statement, parameterIndex, x, calendar); return; @@ -3543,8 +3648,9 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setUnicodeStream(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) - throws SQLException { + public void preparedStatement_setUnicodeStream(FilterChain chain, PreparedStatementProxy statement, + int parameterIndex, java.io.InputStream x, int length) + throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setUnicodeStream(chain, statement, parameterIndex, x, length); return; @@ -3562,7 +3668,8 @@ public class TraceFilter extends FilterAdapter implements TraceFilterMBean { } @Override - public void preparedStatement_setURL(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, java.net.URL x) throws SQLException { + public void preparedStatement_setURL(FilterChain chain, PreparedStatementProxy statement, int parameterIndex, + java.net.URL x) throws SQLException { if (!isTraceStatementEnable()) { super.preparedStatement_setURL(chain, statement, parameterIndex, x); return; diff --git a/src/main/java/com/alibaba/druid/jconsole/ConnectionsPanel.java b/src/main/java/com/alibaba/druid/jconsole/ConnectionsPanel.java index 9786c4b7b0..1ff49a3d48 100644 --- a/src/main/java/com/alibaba/druid/jconsole/ConnectionsPanel.java +++ b/src/main/java/com/alibaba/druid/jconsole/ConnectionsPanel.java @@ -14,7 +14,8 @@ import com.alibaba.druid.logging.Log; import com.alibaba.druid.logging.LogFactory; public class ConnectionsPanel extends JPanel { - private final static Log LOG = LogFactory.getLog(ConnectionsPanel.class); + + private final static Log LOG = LogFactory.getLog(ConnectionsPanel.class); private static final long serialVersionUID = 1L; @@ -24,17 +25,20 @@ public class ConnectionsPanel extends JPanel { private JTable table; - private String[] columns = new String[] { "id", "connectTime", "connectTimespan", "establishTime", "aliveTimespan", "lastSql", - "lastError", "lastErrorTime", "connectStatckTrace", "lastStatementStackTrace", "dataSource" }; + private String[] columns = new String[] { "id", "connectTime", "connectTimespan", + "establishTime", "aliveTimespan", "lastSql", "lastError", "lastErrorTime", "connectStatckTrace", + "lastStatementStackTrace", "dataSource" }; - public ConnectionsPanel(MBeanServerConnection connection, ObjectInstance objectInstance, DataSourceInfo dataSourceInfo){ + public ConnectionsPanel(MBeanServerConnection connection, ObjectInstance objectInstance, + DataSourceInfo dataSourceInfo){ super(); this.connection = connection; this.objectInstance = objectInstance; this.dataSourceInfo = dataSourceInfo; try { - TabularData connectionTabularData = (TabularData) connection.getAttribute(objectInstance.getObjectName(), "ConnectionList"); + TabularData connectionTabularData = (TabularData) connection.getAttribute(objectInstance.getObjectName(), + "ConnectionList"); Object[][] rows = new Object[connectionTabularData.size()][]; int rowIndex = 0; @@ -46,21 +50,22 @@ public class ConnectionsPanel extends JPanel { row[2] = rowData.get("connectTimespan"); row[3] = rowData.get("establishTime"); row[4] = rowData.get("aliveTimespan"); - + row[5] = rowData.get("lastSql"); row[6] = rowData.get("lastError"); row[7] = rowData.get("lastErrorTime"); row[8] = rowData.get("connectStatckTrace"); row[9] = rowData.get("lastStatementStackTrace"); - + row[10] = rowData.get("dataSource"); - + rows[rowIndex++] = row; } table = new JTable(rows, columns); - JScrollPane tableScrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); + JScrollPane tableScrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, + JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); this.setLayout(new BorderLayout()); this.add(tableScrollPane, BorderLayout.CENTER); diff --git a/src/main/java/com/alibaba/druid/jconsole/DataSourcePanel.java b/src/main/java/com/alibaba/druid/jconsole/DataSourcePanel.java index 6e842dd7f4..f747c694f6 100644 --- a/src/main/java/com/alibaba/druid/jconsole/DataSourcePanel.java +++ b/src/main/java/com/alibaba/druid/jconsole/DataSourcePanel.java @@ -19,21 +19,18 @@ public class DataSourcePanel extends Panel { public DataSourcePanel(DataSourceInfo dataSourceInfo){ this.dataSourceInfo = dataSourceInfo; - Object[][] rows = new Object[][] { - { "ID", dataSourceInfo.getId() }, - { "Name", dataSourceInfo.getName() }, - { "URL", dataSourceInfo.getUrl() }, - { "Filters", dataSourceInfo.getFilters() }, - { "CreatedTime", dataSourceInfo.getCreatedTime() }, - { "RawDriverClassName", dataSourceInfo.getRawDriverClassName() }, - { "RawUrl", dataSourceInfo.getRawUrl() }, - { "RawDriverMajorVersion", dataSourceInfo.getRawDriverMajorVersion() }, - { "RawDriverMinorVersion", dataSourceInfo.getRawDriverMinorVersion() }, - { "Properties", dataSourceInfo.getProperties() }, - }; + Object[][] rows = new Object[][] { { "ID", dataSourceInfo.getId() }, { "Name", dataSourceInfo.getName() }, + { "URL", dataSourceInfo.getUrl() }, { "Filters", dataSourceInfo.getFilters() }, + { "CreatedTime", dataSourceInfo.getCreatedTime() }, + { "RawDriverClassName", dataSourceInfo.getRawDriverClassName() }, + { "RawUrl", dataSourceInfo.getRawUrl() }, + { "RawDriverMajorVersion", dataSourceInfo.getRawDriverMajorVersion() }, + { "RawDriverMinorVersion", dataSourceInfo.getRawDriverMinorVersion() }, + { "Properties", dataSourceInfo.getProperties() }, }; table = new JTable(rows, columns); - JScrollPane tableScrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); + JScrollPane tableScrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, + JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); this.setLayout(new BorderLayout()); this.add(tableScrollPane, BorderLayout.CENTER); diff --git a/src/main/java/com/alibaba/druid/jconsole/DruidPanel.java b/src/main/java/com/alibaba/druid/jconsole/DruidPanel.java index 7360e51dc4..14cb3975f8 100644 --- a/src/main/java/com/alibaba/druid/jconsole/DruidPanel.java +++ b/src/main/java/com/alibaba/druid/jconsole/DruidPanel.java @@ -37,8 +37,9 @@ import com.alibaba.druid.stat.JdbcStatManager; import com.sun.tools.jconsole.JConsoleContext; public class DruidPanel extends JPanel { - private final static Log LOG = LogFactory.getLog(DruidPanel.class); - + + private final static Log LOG = LogFactory.getLog(DruidPanel.class); + private static final long serialVersionUID = 1L; protected JSplitPane mainSplit; @@ -55,7 +56,9 @@ public class DruidPanel extends JPanel { mainSplit.setBorder(BorderFactory.createEmptyBorder()); rootNode = new DefaultMutableTreeNode("root", true); - dataSourcesNode = new DefaultMutableTreeNode(new NodeInfo(null, null, NodeType.DataSources, null, "DataSources"), true); + dataSourcesNode = new DefaultMutableTreeNode( + new NodeInfo(null, null, NodeType.DataSources, null, "DataSources"), + true); rootNode.add(dataSourcesNode); tree = new JTree(rootNode); @@ -70,7 +73,8 @@ public class DruidPanel extends JPanel { } }); - JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); + JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, + JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); JPanel treePanel = new JPanel(new BorderLayout()); treePanel.add(theScrollPane, BorderLayout.CENTER); mainSplit.setLeftComponent(treePanel); @@ -99,11 +103,13 @@ public class DruidPanel extends JPanel { mainSplit.setRightComponent(new DataSourcePanel(dataSourceInfo)); } else if (nodeInfo.getType() == NodeType.Connections) { DataSourceInfo dataSourceInfo = (DataSourceInfo) nodeInfo.getData(); - ConnectionsPanel connectionsPanel = new ConnectionsPanel(nodeInfo.getConnection(), nodeInfo.getObjectInstance(), dataSourceInfo); + ConnectionsPanel connectionsPanel = new ConnectionsPanel(nodeInfo.getConnection(), + nodeInfo.getObjectInstance(), dataSourceInfo); mainSplit.setRightComponent(connectionsPanel); } else if (nodeInfo.getType() == NodeType.SQL) { DataSourceInfo dataSourceInfo = (DataSourceInfo) nodeInfo.getData(); - SQLPanel connectionsPanel = new SQLPanel(nodeInfo.getConnection(), nodeInfo.getObjectInstance(), dataSourceInfo); + SQLPanel connectionsPanel = new SQLPanel(nodeInfo.getConnection(), nodeInfo.getObjectInstance(), + dataSourceInfo); mainSplit.setRightComponent(connectionsPanel); } else { mainSplit.setRightComponent(sheet); @@ -112,11 +118,14 @@ public class DruidPanel extends JPanel { public void init() { try { - ManagementFactory.getPlatformMBeanServer().registerMBean(JdbcStatManager.getInstance(), new ObjectName("com.alibaba.druid:type=JdbcStatManager")); + ManagementFactory.getPlatformMBeanServer().registerMBean(JdbcStatManager.getInstance(), + new ObjectName( + "com.alibaba.druid:type=JdbcStatManager")); DruidDataSource dataSource = new DruidDataSource(); - ManagementFactory.getPlatformMBeanServer().registerMBean(dataSource, new ObjectName("com.alibaba.druid:type=DataSource")); + ManagementFactory.getPlatformMBeanServer().registerMBean(dataSource, + new ObjectName("com.alibaba.druid:type=DataSource")); dataSource.setUrl("jdbc:mock:"); dataSource.setFilters("stat,trace"); @@ -167,10 +176,12 @@ public class DruidPanel extends JPanel { DataSourceInfo dataSourceInfo = new DataSourceInfo(conn, rowData); - NodeInfo dataSourceNodeInfo = new NodeInfo(conn, statInstance, NodeType.DataSource, dataSourceInfo, dataSourceInfo.getName()); + NodeInfo dataSourceNodeInfo = new NodeInfo(conn, statInstance, NodeType.DataSource, dataSourceInfo, + dataSourceInfo.getName()); DefaultMutableTreeNode dataSourceNode = new DefaultMutableTreeNode(dataSourceNodeInfo, true); - NodeInfo connectionsNodeInfo = new NodeInfo(conn, statInstance, NodeType.Connections, dataSourceInfo, "Connections"); + NodeInfo connectionsNodeInfo = new NodeInfo(conn, statInstance, NodeType.Connections, dataSourceInfo, + "Connections"); DefaultMutableTreeNode connections = new DefaultMutableTreeNode(connectionsNodeInfo, true); { } diff --git a/src/main/java/com/alibaba/druid/jconsole/NodeInfo.java b/src/main/java/com/alibaba/druid/jconsole/NodeInfo.java index 6277ed9dea..7b3beca572 100644 --- a/src/main/java/com/alibaba/druid/jconsole/NodeInfo.java +++ b/src/main/java/com/alibaba/druid/jconsole/NodeInfo.java @@ -11,7 +11,8 @@ public class NodeInfo { private Object data; private String name; - public NodeInfo(MBeanServerConnection connection, ObjectInstance objectInstance, NodeType type, Object data, String name){ + public NodeInfo(MBeanServerConnection connection, ObjectInstance objectInstance, NodeType type, Object data, + String name){ this.connection = connection; this.objectInstance = objectInstance; this.type = type; diff --git a/src/main/java/com/alibaba/druid/jconsole/NodeType.java b/src/main/java/com/alibaba/druid/jconsole/NodeType.java index ddce15b3c1..46f0bc0c00 100644 --- a/src/main/java/com/alibaba/druid/jconsole/NodeType.java +++ b/src/main/java/com/alibaba/druid/jconsole/NodeType.java @@ -1,8 +1,5 @@ package com.alibaba.druid.jconsole; public enum NodeType { - DataSources, - DataSource, - SQL, - Connections + DataSources, DataSource, SQL, Connections } diff --git a/src/main/java/com/alibaba/druid/jconsole/SQLDetailDialog.java b/src/main/java/com/alibaba/druid/jconsole/SQLDetailDialog.java index 0e08f28333..be9645acd3 100644 --- a/src/main/java/com/alibaba/druid/jconsole/SQLDetailDialog.java +++ b/src/main/java/com/alibaba/druid/jconsole/SQLDetailDialog.java @@ -18,21 +18,22 @@ import com.alibaba.druid.sql.dialect.oracle.visitor.OracleOutputVisitor; public class SQLDetailDialog extends JDialog { private static final long serialVersionUID = 1L; - - private JTextArea textArea; - public SQLDetailDialog(CompositeData rowData) { + private JTextArea textArea; + + public SQLDetailDialog(CompositeData rowData){ textArea = new JTextArea(); - JScrollPane textAreaScrollPane = new JScrollPane(textArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); + JScrollPane textAreaScrollPane = new JScrollPane(textArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, + JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); this.getContentPane().add(textAreaScrollPane); - + String sql = (String) rowData.get("SQL"); - + sql = format(sql); - + textArea.setText(sql); } - + public static String format(String sql) { if (sql == null || sql.length() == 0) { return sql; @@ -52,7 +53,7 @@ public class SQLDetailDialog extends JDialog { return sql; // 返回原来的SQL } - + public static String mergeMySql(String sql) { MySqlStatementParser parser = new MySqlStatementParser(sql); List statementList = parser.parseStatementList(); diff --git a/src/main/java/com/alibaba/druid/jconsole/SQLDetailPanel.java b/src/main/java/com/alibaba/druid/jconsole/SQLDetailPanel.java index 9bbdbe7bb1..3cb32d6e1a 100644 --- a/src/main/java/com/alibaba/druid/jconsole/SQLDetailPanel.java +++ b/src/main/java/com/alibaba/druid/jconsole/SQLDetailPanel.java @@ -6,12 +6,12 @@ public class SQLDetailPanel extends JPanel { private static final long serialVersionUID = 1L; - private Object[] row; - - public SQLDetailPanel(Object[] row) { + private Object[] row; + + public SQLDetailPanel(Object[] row){ this.row = row; } - + public Object[] getRow() { return row; } diff --git a/src/main/java/com/alibaba/druid/jconsole/SQLPanel.java b/src/main/java/com/alibaba/druid/jconsole/SQLPanel.java index f920507602..b163bdbc7e 100644 --- a/src/main/java/com/alibaba/druid/jconsole/SQLPanel.java +++ b/src/main/java/com/alibaba/druid/jconsole/SQLPanel.java @@ -29,8 +29,9 @@ import com.alibaba.druid.logging.Log; import com.alibaba.druid.logging.LogFactory; public class SQLPanel extends JPanel { - private final static Log LOG = LogFactory.getLog(SQLPanel.class); - + + private final static Log LOG = LogFactory.getLog(SQLPanel.class); + private static final long serialVersionUID = 1L; private MBeanServerConnection connection; @@ -43,9 +44,10 @@ public class SQLPanel extends JPanel { private String[] columnNames = { "ID", "File", "Name", "SQL", "ExecCount", - "TotalTime", "EffectedRows", "FetchRowCount", "Running", "ConcurrentMax", + "TotalTime", "EffectedRows", "FetchRowCount", "Running", + "ConcurrentMax", - "MaxTimespan", "LastTime", "LastError","ErrorCount", }; + "MaxTimespan", "LastTime", "LastError", "ErrorCount", }; public SQLPanel(MBeanServerConnection connection, ObjectInstance objectInstance, DataSourceInfo dataSourceInfo){ super(); @@ -54,7 +56,8 @@ public class SQLPanel extends JPanel { this.dataSourceInfo = dataSourceInfo; try { - TabularData connectionTabularData = (TabularData) connection.getAttribute(objectInstance.getObjectName(), "SqlList"); + TabularData connectionTabularData = (TabularData) connection.getAttribute(objectInstance.getObjectName(), + "SqlList"); List rowList = new ArrayList(); @@ -74,13 +77,13 @@ public class SQLPanel extends JPanel { row[columnIndex++] = rowData.get("Name"); row[columnIndex++] = rowData.get("SQL"); row[columnIndex++] = rowData.get("ExecuteCount"); - + row[columnIndex++] = rowData.get("TotalTime"); row[columnIndex++] = rowData.get("EffectedRowCount"); row[columnIndex++] = rowData.get("FetchRowCount"); row[columnIndex++] = rowData.get("RunningCount"); row[columnIndex++] = rowData.get("ConcurrentMax"); - + row[columnIndex++] = rowData.get("MaxTimespan"); row[columnIndex++] = rowData.get("LastTime"); row[columnIndex++] = rowData.get("LastError"); @@ -107,7 +110,8 @@ public class SQLPanel extends JPanel { table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); - JScrollPane tableScrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); + JScrollPane tableScrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, + JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); this.setLayout(new BorderLayout()); this.add(tableScrollPane, BorderLayout.CENTER); @@ -118,7 +122,8 @@ public class SQLPanel extends JPanel { void refresh() { try { - TabularData connectionTabularData = (TabularData) connection.getAttribute(objectInstance.getObjectName(), "SqlList"); + TabularData connectionTabularData = (TabularData) connection.getAttribute(objectInstance.getObjectName(), + "SqlList"); List rowList = new ArrayList(); @@ -360,7 +365,7 @@ public class SQLPanel extends JPanel { public int compare(Object a, Object b) { long aValue = Long.parseLong(a.toString()); long bValue = Long.parseLong(b.toString()); - + if (aValue == bValue) { return 0; } diff --git a/src/main/java/com/alibaba/druid/logging/JakartaCommonsLoggingImpl.java b/src/main/java/com/alibaba/druid/logging/JakartaCommonsLoggingImpl.java index fbb9e8214f..fa15c96ddb 100644 --- a/src/main/java/com/alibaba/druid/logging/JakartaCommonsLoggingImpl.java +++ b/src/main/java/com/alibaba/druid/logging/JakartaCommonsLoggingImpl.java @@ -3,7 +3,6 @@ package com.alibaba.druid.logging; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; - public class JakartaCommonsLoggingImpl implements com.alibaba.druid.logging.Log { private Log log; @@ -27,7 +26,7 @@ public class JakartaCommonsLoggingImpl implements com.alibaba.druid.logging.Log public void debug(String s) { log.debug(s); } - + public void debug(String s, Throwable e) { log.debug(s, e); } diff --git a/src/main/java/com/alibaba/druid/logging/Jdk14LoggingImpl.java b/src/main/java/com/alibaba/druid/logging/Jdk14LoggingImpl.java index 2a893de74d..e1470bf8fe 100644 --- a/src/main/java/com/alibaba/druid/logging/Jdk14LoggingImpl.java +++ b/src/main/java/com/alibaba/druid/logging/Jdk14LoggingImpl.java @@ -26,7 +26,7 @@ public class Jdk14LoggingImpl implements Log { public void debug(String s) { log.log(Level.FINE, s); } - + public void debug(String s, Throwable e) { log.log(Level.FINE, s, e); } diff --git a/src/main/java/com/alibaba/druid/logging/Log.java b/src/main/java/com/alibaba/druid/logging/Log.java index ab599824b8..7437126796 100644 --- a/src/main/java/com/alibaba/druid/logging/Log.java +++ b/src/main/java/com/alibaba/druid/logging/Log.java @@ -9,11 +9,11 @@ public interface Log { void error(String s); public void debug(String s); - + public void debug(String s, Throwable e); public void warn(String s); - + void warn(String s, Throwable e); } diff --git a/src/main/java/com/alibaba/druid/logging/Log4jImpl.java b/src/main/java/com/alibaba/druid/logging/Log4jImpl.java index 981c8af9b7..cc048a28ad 100644 --- a/src/main/java/com/alibaba/druid/logging/Log4jImpl.java +++ b/src/main/java/com/alibaba/druid/logging/Log4jImpl.java @@ -25,7 +25,7 @@ public class Log4jImpl implements Log { public void debug(String s) { log.debug(s); } - + public void debug(String s, Throwable e) { log.debug(s, e); } diff --git a/src/main/java/com/alibaba/druid/logging/NoLoggingImpl.java b/src/main/java/com/alibaba/druid/logging/NoLoggingImpl.java index b34f98cdc4..e9f33a2109 100644 --- a/src/main/java/com/alibaba/druid/logging/NoLoggingImpl.java +++ b/src/main/java/com/alibaba/druid/logging/NoLoggingImpl.java @@ -17,7 +17,7 @@ public class NoLoggingImpl implements Log { public void debug(String s) { } - + public void debug(String s, Throwable e) { } diff --git a/src/main/java/com/alibaba/druid/mock/MockConnection.java b/src/main/java/com/alibaba/druid/mock/MockConnection.java index dff53f920c..107a53e5c4 100644 --- a/src/main/java/com/alibaba/druid/mock/MockConnection.java +++ b/src/main/java/com/alibaba/druid/mock/MockConnection.java @@ -227,7 +227,8 @@ public class MockConnection implements Connection { } @Override - public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { + public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) + throws SQLException { return new MockPreparedStatement(this, sql); } @@ -277,17 +278,20 @@ public class MockConnection implements Connection { } @Override - public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) + throws SQLException { return new MockStatement(this); } @Override - public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { return new MockPreparedStatement(this, sql); } @Override - public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { return new MockCallableStatement(this, sql); } diff --git a/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java b/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java index 87d1ca2c0a..e248e187c8 100644 --- a/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java +++ b/src/main/java/com/alibaba/druid/pool/DruidAbstractDataSource.java @@ -107,7 +107,8 @@ public abstract class DruidAbstractDataSource implements DruidAbstractDataSource protected boolean inited = false; - protected PrintWriter logWriter = new PrintWriter(System.out); + protected PrintWriter logWriter = new PrintWriter( + System.out); protected List filters = new ArrayList(); protected ExceptionSorter exceptionSoter = null; diff --git a/src/main/java/com/alibaba/druid/pool/DruidDataSource.java b/src/main/java/com/alibaba/druid/pool/DruidDataSource.java index 73749c6127..4df29a73f6 100644 --- a/src/main/java/com/alibaba/druid/pool/DruidDataSource.java +++ b/src/main/java/com/alibaba/druid/pool/DruidDataSource.java @@ -81,18 +81,19 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat private long recycleCount = 0; private long createConnectionCount = 0L; private long destroyCount = 0; + private long idleCheckCount = 0; // store private ConnectionHolder[] connections; private int count = 0; private int activeCount = 0; - private long idleCheckCount = 0; // threads private CreateConnectionThread createConnectionThread; private DestroyConnectionThread destoryConnectionThread; - private final CountDownLatch initedLatch = new CountDownLatch(2); + private final CountDownLatch initedLatch = new CountDownLatch( + 2); private long id; private Date createdTime; @@ -248,7 +249,8 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat final int maxWaitThreadCount = getMaxWaitThreadCount(); if (maxWaitThreadCount > 0) { if (lock.getQueueLength() > maxWaitThreadCount) { - throw new SQLException("maxWaitThreadCount " + maxWaitThreadCount + ", current wait Thread count " + lock.getQueueLength()); + throw new SQLException("maxWaitThreadCount " + maxWaitThreadCount + ", current wait Thread count " + + lock.getQueueLength()); } } @@ -277,7 +279,9 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat if (isRemoveAbandoned()) { StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace(); - activeConnections.put(poolalbeConnection, new ActiveConnectionTraceInfo(poolalbeConnection, System.currentTimeMillis(), stackTrace)); + activeConnections.put(poolalbeConnection, + new ActiveConnectionTraceInfo(poolalbeConnection, System.currentTimeMillis(), + stackTrace)); } return poolalbeConnection; diff --git a/src/main/java/com/alibaba/druid/pool/PoolableConnection.java b/src/main/java/com/alibaba/druid/pool/PoolableConnection.java index fdfd711c73..60338bdd88 100644 --- a/src/main/java/com/alibaba/druid/pool/PoolableConnection.java +++ b/src/main/java/com/alibaba/druid/pool/PoolableConnection.java @@ -184,7 +184,8 @@ public class PoolableConnection implements PooledConnection, Connection { } @Override - public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { + public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) + throws SQLException { checkOpen(); PreparedStatementKey key = new PreparedStatementKey(sql, getCatalog(), MethodType.M2); @@ -213,7 +214,8 @@ public class PoolableConnection implements PooledConnection, Connection { } @Override - public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { checkOpen(); PreparedStatementKey key = new PreparedStatementKey(sql, getCatalog(), MethodType.M3); @@ -352,7 +354,8 @@ public class PoolableConnection implements PooledConnection, Connection { } @Override - public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { checkOpen(); PreparedStatementKey key = new PreparedStatementKey(sql, getCatalog(), MethodType.Precall_2); @@ -422,7 +425,8 @@ public class PoolableConnection implements PooledConnection, Connection { } @Override - public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) + throws SQLException { checkOpen(); Statement stmt = conn.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability); diff --git a/src/main/java/com/alibaba/druid/pool/PoolablePreparedStatement.java b/src/main/java/com/alibaba/druid/pool/PoolablePreparedStatement.java index c9a6a8ec1b..9926e429c0 100644 --- a/src/main/java/com/alibaba/druid/pool/PoolablePreparedStatement.java +++ b/src/main/java/com/alibaba/druid/pool/PoolablePreparedStatement.java @@ -80,12 +80,11 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep void setClosed(boolean value) { this.closed = value; } - @Override public ResultSet executeQuery() throws SQLException { checkOpen(); - + try { ResultSet rs = stmt.executeQuery(); @@ -101,7 +100,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public int executeUpdate() throws SQLException { checkOpen(); - + try { return stmt.executeUpdate(); } catch (Throwable t) { @@ -112,7 +111,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setNull(int parameterIndex, int sqlType) throws SQLException { checkOpen(); - + try { stmt.setNull(parameterIndex, sqlType); } catch (Throwable t) { @@ -123,7 +122,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setBoolean(int parameterIndex, boolean x) throws SQLException { checkOpen(); - + try { stmt.setBoolean(parameterIndex, x); } catch (Throwable t) { @@ -134,7 +133,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setByte(int parameterIndex, byte x) throws SQLException { checkOpen(); - + try { stmt.setByte(parameterIndex, x); } catch (Throwable t) { @@ -145,7 +144,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setShort(int parameterIndex, short x) throws SQLException { checkOpen(); - + try { stmt.setShort(parameterIndex, x); } catch (Throwable t) { @@ -156,7 +155,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setInt(int parameterIndex, int x) throws SQLException { checkOpen(); - + try { stmt.setInt(parameterIndex, x); } catch (Throwable t) { @@ -167,7 +166,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setLong(int parameterIndex, long x) throws SQLException { checkOpen(); - + try { stmt.setLong(parameterIndex, x); } catch (Throwable t) { @@ -178,7 +177,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setFloat(int parameterIndex, float x) throws SQLException { checkOpen(); - + try { stmt.setFloat(parameterIndex, x); } catch (Throwable t) { @@ -189,7 +188,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setDouble(int parameterIndex, double x) throws SQLException { checkOpen(); - + try { stmt.setDouble(parameterIndex, x); } catch (Throwable t) { @@ -200,7 +199,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { checkOpen(); - + try { stmt.setBigDecimal(parameterIndex, x); } catch (Throwable t) { @@ -211,7 +210,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setString(int parameterIndex, String x) throws SQLException { checkOpen(); - + try { stmt.setString(parameterIndex, x); } catch (Throwable t) { @@ -222,7 +221,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setBytes(int parameterIndex, byte[] x) throws SQLException { checkOpen(); - + try { stmt.setBytes(parameterIndex, x); } catch (Throwable t) { @@ -233,7 +232,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setDate(int parameterIndex, Date x) throws SQLException { checkOpen(); - + try { stmt.setDate(parameterIndex, x); } catch (Throwable t) { @@ -244,7 +243,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setTime(int parameterIndex, Time x) throws SQLException { checkOpen(); - + try { stmt.setTime(parameterIndex, x); } catch (Throwable t) { @@ -255,7 +254,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException { checkOpen(); - + try { stmt.setTimestamp(parameterIndex, x); } catch (Throwable t) { @@ -266,7 +265,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException { checkOpen(); - + try { stmt.setAsciiStream(parameterIndex, x, length); } catch (Throwable t) { @@ -278,7 +277,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Deprecated public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException { checkOpen(); - + try { stmt.setUnicodeStream(parameterIndex, x, length); } catch (Throwable t) { @@ -289,7 +288,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException { checkOpen(); - + try { stmt.setBinaryStream(parameterIndex, x, length); } catch (Throwable t) { @@ -300,7 +299,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void clearParameters() throws SQLException { checkOpen(); - + try { stmt.clearParameters(); } catch (Throwable t) { @@ -311,7 +310,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException { checkOpen(); - + try { stmt.setObject(parameterIndex, x, targetSqlType); } catch (Throwable t) { @@ -322,7 +321,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setObject(int parameterIndex, Object x) throws SQLException { checkOpen(); - + try { stmt.setObject(parameterIndex, x); } catch (Throwable t) { @@ -333,7 +332,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public boolean execute() throws SQLException { checkOpen(); - + try { return stmt.execute(); } catch (Throwable t) { @@ -344,7 +343,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void addBatch() throws SQLException { checkOpen(); - + try { stmt.addBatch(); } catch (Throwable t) { @@ -355,7 +354,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException { checkOpen(); - + try { stmt.setCharacterStream(parameterIndex, reader, length); } catch (Throwable t) { @@ -366,7 +365,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setRef(int parameterIndex, Ref x) throws SQLException { checkOpen(); - + try { stmt.setRef(parameterIndex, x); } catch (Throwable t) { @@ -377,7 +376,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setBlob(int parameterIndex, Blob x) throws SQLException { checkOpen(); - + try { stmt.setBlob(parameterIndex, x); } catch (Throwable t) { @@ -388,7 +387,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setClob(int parameterIndex, Clob x) throws SQLException { checkOpen(); - + try { stmt.setClob(parameterIndex, x); } catch (Throwable t) { @@ -399,7 +398,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setArray(int parameterIndex, Array x) throws SQLException { checkOpen(); - + try { stmt.setArray(parameterIndex, x); } catch (Throwable t) { @@ -410,7 +409,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public ResultSetMetaData getMetaData() throws SQLException { checkOpen(); - + try { return stmt.getMetaData(); } catch (Throwable t) { @@ -421,7 +420,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException { checkOpen(); - + try { stmt.setDate(parameterIndex, x, cal); } catch (Throwable t) { @@ -432,7 +431,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException { checkOpen(); - + try { stmt.setTime(parameterIndex, x, cal); } catch (Throwable t) { @@ -443,7 +442,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException { checkOpen(); - + try { stmt.setTimestamp(parameterIndex, x, cal); } catch (Throwable t) { @@ -454,7 +453,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException { checkOpen(); - + try { stmt.setNull(parameterIndex, sqlType, typeName); } catch (Throwable t) { @@ -465,7 +464,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setURL(int parameterIndex, URL x) throws SQLException { checkOpen(); - + try { stmt.setURL(parameterIndex, x); } catch (Throwable t) { @@ -476,7 +475,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public ParameterMetaData getParameterMetaData() throws SQLException { checkOpen(); - + try { return stmt.getParameterMetaData(); } catch (Throwable t) { @@ -487,7 +486,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setRowId(int parameterIndex, RowId x) throws SQLException { checkOpen(); - + try { stmt.setRowId(parameterIndex, x); } catch (Throwable t) { @@ -498,7 +497,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setNString(int parameterIndex, String value) throws SQLException { checkOpen(); - + try { stmt.setNString(parameterIndex, value); } catch (Throwable t) { @@ -509,7 +508,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException { checkOpen(); - + try { stmt.setNCharacterStream(parameterIndex, value, length); } catch (Throwable t) { @@ -520,7 +519,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setNClob(int parameterIndex, NClob value) throws SQLException { checkOpen(); - + try { stmt.setNClob(parameterIndex, value); } catch (Throwable t) { @@ -531,7 +530,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setClob(int parameterIndex, Reader reader, long length) throws SQLException { checkOpen(); - + try { stmt.setClob(parameterIndex, reader, length); } catch (Throwable t) { @@ -542,7 +541,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException { checkOpen(); - + try { stmt.setBlob(parameterIndex, inputStream, length); } catch (Throwable t) { @@ -553,7 +552,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException { checkOpen(); - + try { stmt.setNClob(parameterIndex, reader, length); } catch (Throwable t) { @@ -564,7 +563,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { checkOpen(); - + try { stmt.setSQLXML(parameterIndex, xmlObject); } catch (Throwable t) { @@ -575,7 +574,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException { checkOpen(); - + try { stmt.setObject(parameterIndex, x, targetSqlType, scaleOrLength); } catch (Throwable t) { @@ -586,7 +585,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException { checkOpen(); - + try { stmt.setAsciiStream(parameterIndex, x, length); } catch (Throwable t) { @@ -597,7 +596,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException { checkOpen(); - + try { stmt.setBinaryStream(parameterIndex, x, length); } catch (Throwable t) { @@ -608,7 +607,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException { checkOpen(); - + try { stmt.setCharacterStream(parameterIndex, reader, length); } catch (Throwable t) { @@ -619,7 +618,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException { checkOpen(); - + try { stmt.setAsciiStream(parameterIndex, x); } catch (Throwable t) { @@ -630,7 +629,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException { checkOpen(); - + try { stmt.setBinaryStream(parameterIndex, x); } catch (Throwable t) { @@ -641,7 +640,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException { checkOpen(); - + try { stmt.setCharacterStream(parameterIndex, reader); } catch (Throwable t) { @@ -652,7 +651,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException { checkOpen(); - + try { stmt.setNCharacterStream(parameterIndex, value); } catch (Throwable t) { @@ -663,7 +662,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setClob(int parameterIndex, Reader reader) throws SQLException { checkOpen(); - + try { stmt.setClob(parameterIndex, reader); } catch (Throwable t) { @@ -674,7 +673,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException { checkOpen(); - + try { stmt.setBlob(parameterIndex, inputStream); } catch (Throwable t) { @@ -685,7 +684,7 @@ public class PoolablePreparedStatement extends PoolableStatement implements Prep @Override public void setNClob(int parameterIndex, Reader reader) throws SQLException { checkOpen(); - + try { stmt.setNClob(parameterIndex, reader); } catch (Throwable t) { diff --git a/src/main/java/com/alibaba/druid/pool/PoolableStatement.java b/src/main/java/com/alibaba/druid/pool/PoolableStatement.java index ad680c3e3a..62c239849f 100644 --- a/src/main/java/com/alibaba/druid/pool/PoolableStatement.java +++ b/src/main/java/com/alibaba/druid/pool/PoolableStatement.java @@ -323,7 +323,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final int getFetchSize() throws SQLException { checkOpen(); - + try { return stmt.getFetchSize(); } catch (Throwable t) { @@ -334,7 +334,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final int getResultSetConcurrency() throws SQLException { checkOpen(); - + try { return stmt.getResultSetConcurrency(); } catch (Throwable t) { @@ -345,7 +345,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final int getResultSetType() throws SQLException { checkOpen(); - + try { return stmt.getResultSetType(); } catch (Throwable t) { @@ -356,7 +356,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final void addBatch(String sql) throws SQLException { checkOpen(); - + try { stmt.addBatch(sql); } catch (Throwable t) { @@ -367,7 +367,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final void clearBatch() throws SQLException { checkOpen(); - + try { stmt.clearBatch(); } catch (Throwable t) { @@ -378,7 +378,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final int[] executeBatch() throws SQLException { checkOpen(); - + try { return stmt.executeBatch(); } catch (Throwable t) { @@ -389,14 +389,14 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final Connection getConnection() throws SQLException { checkOpen(); - + return conn; } @Override public final boolean getMoreResults(int current) throws SQLException { checkOpen(); - + try { return stmt.getMoreResults(current); } catch (Throwable t) { @@ -407,7 +407,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final ResultSet getGeneratedKeys() throws SQLException { checkOpen(); - + try { ResultSet rs = stmt.getGeneratedKeys(); @@ -424,7 +424,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException { checkOpen(); - + try { return stmt.executeUpdate(sql, autoGeneratedKeys); } catch (Throwable t) { @@ -435,7 +435,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final int executeUpdate(String sql, int columnIndexes[]) throws SQLException { checkOpen(); - + try { return stmt.executeUpdate(sql, columnIndexes); } catch (Throwable t) { @@ -446,7 +446,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final int executeUpdate(String sql, String columnNames[]) throws SQLException { checkOpen(); - + try { return stmt.executeUpdate(sql, columnNames); } catch (Throwable t) { @@ -457,7 +457,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final boolean execute(String sql, int autoGeneratedKeys) throws SQLException { checkOpen(); - + try { return stmt.execute(sql, autoGeneratedKeys); } catch (Throwable t) { @@ -468,7 +468,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final boolean execute(String sql, int columnIndexes[]) throws SQLException { checkOpen(); - + try { return stmt.execute(sql, columnIndexes); } catch (Throwable t) { @@ -479,7 +479,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final boolean execute(String sql, String columnNames[]) throws SQLException { checkOpen(); - + try { return stmt.execute(sql, columnNames); } catch (Throwable t) { @@ -490,7 +490,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement { @Override public final int getResultSetHoldability() throws SQLException { checkOpen(); - + try { return stmt.getResultSetHoldability(); } catch (Throwable t) { diff --git a/src/main/java/com/alibaba/druid/pool/PoolableWrapper.java b/src/main/java/com/alibaba/druid/pool/PoolableWrapper.java index 8760665f05..a506430827 100644 --- a/src/main/java/com/alibaba/druid/pool/PoolableWrapper.java +++ b/src/main/java/com/alibaba/druid/pool/PoolableWrapper.java @@ -38,7 +38,7 @@ public class PoolableWrapper implements Wrapper { if (iface.isInstance(this)) { return true; } - + if (iface.isInstance(wraaper)) { return true; } @@ -56,7 +56,7 @@ public class PoolableWrapper implements Wrapper { if (iface.isInstance(this)) { return (T) this; } - + if (iface.isInstance(wraaper)) { return (T) wraaper; } diff --git a/src/main/java/com/alibaba/druid/pool/ValidConnectionChecker.java b/src/main/java/com/alibaba/druid/pool/ValidConnectionChecker.java index 4f41aee33b..9090559bfe 100644 --- a/src/main/java/com/alibaba/druid/pool/ValidConnectionChecker.java +++ b/src/main/java/com/alibaba/druid/pool/ValidConnectionChecker.java @@ -3,5 +3,6 @@ package com.alibaba.druid.pool; import java.sql.Connection; public interface ValidConnectionChecker { - boolean isValidConnection(Connection c, String query, int validationQueryTimeout) ; + + boolean isValidConnection(Connection c, String query, int validationQueryTimeout); } diff --git a/src/main/java/com/alibaba/druid/pool/ha/HADataSource.java b/src/main/java/com/alibaba/druid/pool/ha/HADataSource.java index 975f821a99..bb3f9c9b35 100644 --- a/src/main/java/com/alibaba/druid/pool/ha/HADataSource.java +++ b/src/main/java/com/alibaba/druid/pool/ha/HADataSource.java @@ -56,6 +56,4 @@ public class HADataSource extends MultiDataSource implements DataSource { } } - - } diff --git a/src/main/java/com/alibaba/druid/pool/ha/MultiDataSource.java b/src/main/java/com/alibaba/druid/pool/ha/MultiDataSource.java index c4ac2bb97a..d494dfad16 100644 --- a/src/main/java/com/alibaba/druid/pool/ha/MultiDataSource.java +++ b/src/main/java/com/alibaba/druid/pool/ha/MultiDataSource.java @@ -11,14 +11,13 @@ import com.alibaba.druid.pool.DruidDataSource; public abstract class MultiDataSource extends DataSourceAdapter { + private Properties properties = new Properties(); - private Properties properties = new Properties(); - - private final AtomicInteger connectionIdSeed = new AtomicInteger(); - private final AtomicInteger statementIdSeed = new AtomicInteger(); + private final AtomicInteger connectionIdSeed = new AtomicInteger(); + private final AtomicInteger statementIdSeed = new AtomicInteger(); public MultiDataSource(){ - + } public int createConnectionId() { @@ -41,6 +40,6 @@ public abstract class MultiDataSource extends DataSourceAdapter { public abstract Connection getConnection() throws SQLException; public abstract Connection getConnectionInternal(MultiDataSourceConnection conn, String sql) throws SQLException; - + public abstract void handleNotAwailableDatasource(DruidDataSource dataSource); } diff --git a/src/main/java/com/alibaba/druid/pool/ha/MultiDataSourceConnection.java b/src/main/java/com/alibaba/druid/pool/ha/MultiDataSourceConnection.java index 9b2e4d70c4..2d6eac6747 100644 --- a/src/main/java/com/alibaba/druid/pool/ha/MultiDataSourceConnection.java +++ b/src/main/java/com/alibaba/druid/pool/ha/MultiDataSourceConnection.java @@ -28,7 +28,7 @@ import com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl; public class MultiDataSourceConnection extends WrapperAdapter implements Connection, ConnectionProxy { - private final MultiDataSource haDataSource; + private final MultiDataSource haDataSource; private Connection conn; @@ -51,7 +51,7 @@ public class MultiDataSourceConnection extends WrapperAdapter implements Connect this.haDataSource = haDataSource; this.id = id; } - + public void checkConnection(String sql) throws SQLException { if (conn == null) { conn = haDataSource.getConnectionInternal(this, sql); @@ -349,7 +349,8 @@ public class MultiDataSourceConnection extends WrapperAdapter implements Connect } @Override - public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { + public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) + throws SQLException { checkConnection(sql); PreparedStatement stmt = conn.prepareStatement(sql, resultSetType, resultSetConcurrency); @@ -369,14 +370,17 @@ public class MultiDataSourceConnection extends WrapperAdapter implements Connect } @Override - public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) + throws SQLException { long stmtId = haDataSource.createStatementId(); - MultiDataSourceStatement stmt = new MultiDataSourceStatement(this, stmtId, resultSetType, resultSetConcurrency, resultSetHoldability); + MultiDataSourceStatement stmt = new MultiDataSourceStatement(this, stmtId, resultSetType, resultSetConcurrency, + resultSetHoldability); return stmt; } @Override - public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { checkConnection(sql); PreparedStatement stmt = conn.prepareStatement(sql, resultSetType, resultSetConcurrency, resultSetHoldability); @@ -386,7 +390,8 @@ public class MultiDataSourceConnection extends WrapperAdapter implements Connect } @Override - public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { checkConnection(sql); CallableStatement stmt = conn.prepareCall(sql, resultSetType, resultSetConcurrency, resultSetHoldability); diff --git a/src/main/java/com/alibaba/druid/pool/ha/MultiDataSourceStatement.java b/src/main/java/com/alibaba/druid/pool/ha/MultiDataSourceStatement.java index d0a2b2e770..815e921939 100644 --- a/src/main/java/com/alibaba/druid/pool/ha/MultiDataSourceStatement.java +++ b/src/main/java/com/alibaba/druid/pool/ha/MultiDataSourceStatement.java @@ -10,20 +10,20 @@ import com.alibaba.druid.pool.WrapperAdapter; public class MultiDataSourceStatement extends WrapperAdapter implements Statement { private final MultiDataSourceConnection conn; - private final long id; - private Integer resultSetType; - private Integer resultSetConcurrency; - private Integer resultSetHoldability; - private Statement stmt; + private final long id; + private Integer resultSetType; + private Integer resultSetConcurrency; + private Integer resultSetHoldability; + private Statement stmt; + + private Integer maxFieldSize; + private Integer maxRows; + private Boolean escapeProcessing; + private Integer queryTimeout; + private String cursorName; + private Integer fetchDirection; + private Integer fetchSize; - private Integer maxFieldSize; - private Integer maxRows; - private Boolean escapeProcessing; - private Integer queryTimeout; - private String cursorName; - private Integer fetchDirection; - private Integer fetchSize; - void checkStatement(String sql) throws SQLException { conn.checkConnection(sql); @@ -58,7 +58,6 @@ public class MultiDataSourceStatement extends WrapperAdapter implements Statemen } } - public MultiDataSourceStatement(MultiDataSourceConnection conn, long id){ super(); this.conn = conn; @@ -73,7 +72,8 @@ public class MultiDataSourceStatement extends WrapperAdapter implements Statemen this.resultSetConcurrency = resultSetConcurrency; } - public MultiDataSourceStatement(MultiDataSourceConnection conn, long id, int resultSetType, int resultSetConcurrency, int resultSetHoldability){ + public MultiDataSourceStatement(MultiDataSourceConnection conn, long id, int resultSetType, + int resultSetConcurrency, int resultSetHoldability){ super(); this.conn = conn; this.id = id; @@ -86,7 +86,6 @@ public class MultiDataSourceStatement extends WrapperAdapter implements Statemen return id; } - @Override public ResultSet executeQuery(String sql) throws SQLException { checkStatement(sql); @@ -116,7 +115,7 @@ public class MultiDataSourceStatement extends WrapperAdapter implements Statemen if (maxFieldSize == null) { return 0; } - + return maxFieldSize; } @@ -135,7 +134,7 @@ public class MultiDataSourceStatement extends WrapperAdapter implements Statemen if (stmt != null) { return stmt.getMaxRows(); } - + if (maxRows == null) { return 0; } @@ -168,7 +167,7 @@ public class MultiDataSourceStatement extends WrapperAdapter implements Statemen if (stmt != null) { return stmt.getQueryTimeout(); } - + if (queryTimeout == null) { return 0; } @@ -299,7 +298,7 @@ public class MultiDataSourceStatement extends WrapperAdapter implements Statemen if (resultSetConcurrency != null) { return resultSetConcurrency; } - + return 0; } diff --git a/src/main/java/com/alibaba/druid/pool/ha/balance/Balancer.java b/src/main/java/com/alibaba/druid/pool/ha/balance/Balancer.java index d1a77abc8e..7d82112536 100644 --- a/src/main/java/com/alibaba/druid/pool/ha/balance/Balancer.java +++ b/src/main/java/com/alibaba/druid/pool/ha/balance/Balancer.java @@ -6,5 +6,6 @@ import java.sql.SQLException; import com.alibaba.druid.pool.ha.MultiDataSourceConnection; public interface Balancer { + Connection getConnection(MultiDataSourceConnection connectionProxy, String sql) throws SQLException; } diff --git a/src/main/java/com/alibaba/druid/pool/vendor/MSSQLValidConnectionChecker.java b/src/main/java/com/alibaba/druid/pool/vendor/MSSQLValidConnectionChecker.java index a2aa16787c..ab9fe21195 100644 --- a/src/main/java/com/alibaba/druid/pool/vendor/MSSQLValidConnectionChecker.java +++ b/src/main/java/com/alibaba/druid/pool/vendor/MSSQLValidConnectionChecker.java @@ -26,7 +26,7 @@ public class MSSQLValidConnectionChecker implements ValidConnectionChecker, Seri return false; } } catch (SQLException ex) { - // skip + // skip return false; } diff --git a/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java b/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java index ec0604696b..ab510e4206 100644 --- a/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java +++ b/src/main/java/com/alibaba/druid/pool/vendor/MySqlExceptionSorter.java @@ -15,7 +15,7 @@ public class MySqlExceptionSorter implements ExceptionSorter { final int errorCode = e.getErrorCode(); switch (errorCode) { - // Communications Errors + // Communications Errors case 1040: // ER_CON_COUNT_ERROR case 1042: // ER_BAD_HOST_ERROR case 1043: // ER_HANDSHAKE_ERROR @@ -38,7 +38,7 @@ public class MySqlExceptionSorter implements ExceptionSorter { case 1037: // ER_OUTOFMEMORY case 1038: // ER_OUT_OF_SORTMEMORY return true; - + default: break; } diff --git a/src/main/java/com/alibaba/druid/pool/vendor/MySqlValidConnectionChecker.java b/src/main/java/com/alibaba/druid/pool/vendor/MySqlValidConnectionChecker.java index 5af4f81f45..f9d4b4485b 100644 --- a/src/main/java/com/alibaba/druid/pool/vendor/MySqlValidConnectionChecker.java +++ b/src/main/java/com/alibaba/druid/pool/vendor/MySqlValidConnectionChecker.java @@ -42,14 +42,14 @@ public class MySqlValidConnectionChecker implements ValidConnectionChecker, Seri return false; } } catch (SQLException ex) { - // skip + // skip return false; } - + if (valiateQuery == null) { return true; } - + if (driverHasPingMethod) { if (conn instanceof PoolableConnection) { conn = ((PoolableConnection) conn).getConnection(); diff --git a/src/main/java/com/alibaba/druid/pool/vendor/OracleValidConnectionChecker.java b/src/main/java/com/alibaba/druid/pool/vendor/OracleValidConnectionChecker.java index 4b06066705..ee811ad066 100644 --- a/src/main/java/com/alibaba/druid/pool/vendor/OracleValidConnectionChecker.java +++ b/src/main/java/com/alibaba/druid/pool/vendor/OracleValidConnectionChecker.java @@ -61,14 +61,14 @@ public class OracleValidConnectionChecker implements ValidConnectionChecker, Ser return false; } } catch (SQLException ex) { - // skip + // skip return false; } - + if (valiateQuery == null) { return true; } - + try { if (conn instanceof PoolableConnection) { conn = ((PoolableConnection) conn).getConnection(); diff --git a/src/main/java/com/alibaba/druid/proxy/DruidDriver.java b/src/main/java/com/alibaba/druid/proxy/DruidDriver.java index 362803ad2e..372c75b368 100644 --- a/src/main/java/com/alibaba/druid/proxy/DruidDriver.java +++ b/src/main/java/com/alibaba/druid/proxy/DruidDriver.java @@ -45,8 +45,9 @@ import com.alibaba.druid.util.JdbcUtils; * @author wenshao */ public class DruidDriver implements Driver, DruidDriverMBean { - private final static Log LOG = LogFactory.getLog(DruidDriver.class); - + + private final static Log LOG = LogFactory.getLog(DruidDriver.class); + private final static DruidDriver instance = new DruidDriver(); private final static ConcurrentMap proxyDataSources = new ConcurrentHashMap(); diff --git a/src/main/java/com/alibaba/druid/proxy/config/DruidFilterConfigLoader.java b/src/main/java/com/alibaba/druid/proxy/config/DruidFilterConfigLoader.java index ec80bf577b..b4afbd07bb 100644 --- a/src/main/java/com/alibaba/druid/proxy/config/DruidFilterConfigLoader.java +++ b/src/main/java/com/alibaba/druid/proxy/config/DruidFilterConfigLoader.java @@ -51,7 +51,8 @@ public class DruidFilterConfigLoader { private static final String CONFIG_CLAZZ_TAG = "configClass"; - public static void loadConfig(String config, List druidFilterConfigList) throws SQLException { + public static void loadConfig(String config, List druidFilterConfigList) + throws SQLException { URL url = findResource(config); if (url != null) { try { @@ -76,7 +77,8 @@ public class DruidFilterConfigLoader { NodeList filterNodeList = filtersNode.getChildNodes(); for (int i = 0; i < filterNodeList.getLength(); i++) { Node filterNode = filterNodeList.item(i); - if (filterNode != null && filterNode.getNodeType() == Node.ELEMENT_NODE && filterNode.getAttributes().getNamedItem(NAME_TAG) != null) { + if (filterNode != null && filterNode.getNodeType() == Node.ELEMENT_NODE + && filterNode.getAttributes().getNamedItem(NAME_TAG) != null) { Node configClassNode = filterNode.getAttributes().getNamedItem(CONFIG_CLAZZ_TAG); if (configClassNode != null && !"".equalsIgnoreCase(configClassNode.getNodeValue())) { Class configClass = DruidLoaderUtils.loadClass(configClassNode.getNodeValue()); diff --git a/src/main/java/com/alibaba/druid/proxy/jdbc/ClobProxyImpl.java b/src/main/java/com/alibaba/druid/proxy/jdbc/ClobProxyImpl.java index 9d3b061474..c66473b9f9 100644 --- a/src/main/java/com/alibaba/druid/proxy/jdbc/ClobProxyImpl.java +++ b/src/main/java/com/alibaba/druid/proxy/jdbc/ClobProxyImpl.java @@ -118,7 +118,7 @@ public class ClobProxyImpl implements ClobProxy { public void truncate(long len) throws SQLException { createChain().clob_truncate(this, len); } - + public String toString() { return clob.toString(); } diff --git a/src/main/java/com/alibaba/druid/proxy/jdbc/ConnectionProxyImpl.java b/src/main/java/com/alibaba/druid/proxy/jdbc/ConnectionProxyImpl.java index a47531ca2e..585a02f82a 100644 --- a/src/main/java/com/alibaba/druid/proxy/jdbc/ConnectionProxyImpl.java +++ b/src/main/java/com/alibaba/druid/proxy/jdbc/ConnectionProxyImpl.java @@ -129,7 +129,8 @@ public class ConnectionProxyImpl extends WrapperProxyImpl implements ConnectionP } @Override - public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { + public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) + throws SQLException { return createChain().connection_createStatement(this, resultSetType, resultSetType, resultSetHoldability); } @@ -214,8 +215,10 @@ public class ConnectionProxyImpl extends WrapperProxyImpl implements ConnectionP } @Override - public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { - return createChain().connection_prepareCall(this, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { + return createChain().connection_prepareCall(this, sql, resultSetType, resultSetConcurrency, + resultSetHoldability); } @Override @@ -239,13 +242,16 @@ public class ConnectionProxyImpl extends WrapperProxyImpl implements ConnectionP } @Override - public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { + public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) + throws SQLException { return createChain().connection_prepareStatement(this, sql, resultSetType, resultSetConcurrency); } @Override - public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { - return createChain().connection_prepareStatement(this, sql, resultSetType, resultSetConcurrency, resultSetHoldability); + public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException { + return createChain().connection_prepareStatement(this, sql, resultSetType, resultSetConcurrency, + resultSetHoldability); } @Override diff --git a/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyConfig.java b/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyConfig.java index 081853989d..73242b9f28 100644 --- a/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyConfig.java +++ b/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyConfig.java @@ -48,7 +48,7 @@ public class DataSourceProxyConfig { public void setJmxOption(boolean jmx) { this.jmx = jmx; } - + public void setJmxOption(String jmx) { this.jmx = Boolean.parseBoolean(jmx); } diff --git a/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyImpl.java b/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyImpl.java index d8903ca8f0..75531c1b61 100644 --- a/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyImpl.java +++ b/src/main/java/com/alibaba/druid/proxy/jdbc/DataSourceProxyImpl.java @@ -255,7 +255,7 @@ public class DataSourceProxyImpl implements DataSourceProxy, DataSourceProxyImpl map.put("ResultSetOpenningMax", stat.getResultSetStat().getOpenningMax()); map.put("ResultSetFetchRowCount", stat.getResultSetStat().getFetchRowCount()); map.put("ResultSetLastOpenTime", stat.getResultSetStat().getLastOpenTime()); - + map.put("ResultSetErrorCount", stat.getResultSetStat().getErrorCount()); map.put("ResultSetOpenningMillisTotal", stat.getResultSetStat().getAliveMillisTotal()); map.put("ResultSetLastErrorTime", stat.getResultSetStat().getLastErrorTime()); @@ -267,7 +267,7 @@ public class DataSourceProxyImpl implements DataSourceProxy, DataSourceProxyImpl map.put("ResultSetLastErrorMessage", null); map.put("ResultSetLastErrorStackTrace", null); } - + map.put("ConnectionConnectCount", stat.getConnectionStat().getConnectCount()); Throwable lastConnectionError = stat.getConnectionStat().getErrorLast(); if (lastConnectionError != null) { @@ -279,48 +279,48 @@ public class DataSourceProxyImpl implements DataSourceProxy, DataSourceProxyImpl } map.put("ConnectionConnectMillisTotal", stat.getConnectionStat().getConnectMillis()); map.put("ConnectionConnectingCountMax", stat.getConnectionStat().getConnectingMax()); - + map.put("ConnectionConnectMillisMax", stat.getConnectionStat().getConnectMillisMax()); map.put("ConnectionErrorLastTime", stat.getConnectionStat().getErrorLastTime()); map.put("ConnectionAliveMillisMax", stat.getConnectionConnectAliveMillisMax()); map.put("ConnectionAliveMillisMin", stat.getConnectionConnectAliveMillisMin()); - + map.put("ConnectionCount_Alive_0_1_Seconds", stat.getConnectionCount_Alive_0_1_Seconds()); map.put("ConnectionCount_Alive_1_5_Seconds", stat.getConnectionCount_Alive_1_5_Seconds()); map.put("ConnectionCount_Alive_5_10_Seconds", stat.getConnectionCount_Alive_5_10_Seconds()); map.put("ConnectionCount_Alive_10_30_Seconds", stat.getConnectionCount_Alive_10_30_Seconds()); map.put("ConnectionCount_Alive_30_60_Seconds", stat.getConnectionCount_Alive_30_60_Seconds()); - + map.put("ConnectionCount_Alive_1_5_Minutes", stat.getConnectionCount_Alive_1_5_Minutes()); map.put("ConnectionCount_Alive_5_10_Minutes", stat.getConnectionCount_Alive_5_10_Minutes()); map.put("ConnectionCount_Alive_10_30_Minutes", stat.getConnectionCount_Alive_10_30_Minutes()); map.put("ConnectionCount_Alive_30_60_Minutes", stat.getConnectionCount_Alive_30_60_Minutes()); map.put("ConnectionCount_Alive_1_6_Hours", stat.getConnectionCount_Alive_1_6_Hours()); - + map.put("ConnectionCount_Alive_6_24_Hours", stat.getConnectionCount_Alive_6_24_Hours()); map.put("ConnectionCount_Alive_1_7_Day", stat.getConnectionCount_Alive_1_7_day()); map.put("ConnectionCount_Alive_7_30_Day", stat.getConnectionCount_Alive_7_30_Day()); map.put("ConnectionCount_Alive_30_90_Day", stat.getConnectionCount_Alive_30_90_Day()); map.put("ConnectionCount_Alive_90_more_Day", stat.getConnectionCount_Alive_90_more_Day()); - + map.put("StatementExecuteCount_0_1_Millis", stat.getStatementStat().getCount_0_1_Millis()); map.put("StatementExecuteCount_1_2_Millis", stat.getStatementStat().getCount_1_2_Millis()); map.put("StatementExecuteCount_2_5_Millis", stat.getStatementStat().getCount_2_5_Millis()); map.put("StatementExecuteCount_5_10_Millis", stat.getStatementStat().getCount_5_10_Millis()); map.put("StatementExecuteCount_10_20_Millis", stat.getStatementStat().getCount_10_20_Millis()); - + map.put("StatementExecuteCount_20_50_Millis", stat.getStatementStat().getCount_20_50_Millis()); map.put("StatementExecuteCount_50_100_Millis", stat.getStatementStat().getCount_50_100_Millis()); map.put("StatementExecuteCount_100_200_Millis", stat.getStatementStat().getCount_100_200_Millis()); map.put("StatementExecuteCount_200_500_Millis", stat.getStatementStat().getCount_200_500_Millis()); map.put("StatementExecuteCount_500_1000_Millis", stat.getStatementStat().getCount_500_1000_Millis()); - + map.put("StatementExecuteCount_1_2_Seconds", stat.getStatementStat().getCount_1_2_Seconds()); map.put("StatementExecuteCount_2_5_Seconds", stat.getStatementStat().getCount_2_5_Seconds()); map.put("StatementExecuteCount_5_10_Seconds", stat.getStatementStat().getCount_5_10_Seconds()); map.put("StatementExecuteCount_10_30_Seconds", stat.getStatementStat().getCount_10_30_Seconds()); map.put("StatementExecuteCount_30_60_Seconds", stat.getStatementStat().getCount_30_60_Seconds()); - + map.put("StatementExecuteCount_1_2_Minutes", stat.getStatementStat().getCount_1_2_minutes()); map.put("StatementExecuteCount_2_5_Minutes", stat.getStatementStat().getCount_2_5_minutes()); map.put("StatementExecuteCount_5_10_Minutes", stat.getStatementStat().getCount_5_10_minutes()); @@ -362,61 +362,60 @@ public class DataSourceProxyImpl implements DataSourceProxy, DataSourceProxyImpl map.put("ResultSetOpenningMax", null); map.put("ResultSetFetchRowCount", null); map.put("ResultSetLastOpenTime", null); - + map.put("ResultSetLastErrorCount", null); map.put("ResultSetOpenningMillisTotal", null); map.put("ResultSetLastErrorTime", null); map.put("ResultSetLastErrorMessage", null); map.put("ResultSetLastErrorStackTrace", null); - + map.put("ConnectionConnectCount", null); map.put("ConnectionErrorLastMessage", null); map.put("ConnectionErrorLastStackTrace", null); map.put("ConnectionConnectMillisTotal", null); map.put("ConnectionConnectingCountMax", null); - + map.put("ConnectionConnectMillisMax", null); map.put("ConnectionErrorLastTime", null); map.put("ConnectionAliveMillisMax", null); map.put("ConnectionAliveMillisMin", null); - - + map.put("ConnectionCount_Alive_0_1_Seconds", null); map.put("ConnectionCount_Alive_1_5_Seconds", null); map.put("ConnectionCount_Alive_5_10_Seconds", null); map.put("ConnectionCount_Alive_10_30_Seconds", null); map.put("ConnectionCount_Alive_30_60_Seconds", null); - + map.put("ConnectionCount_Alive_1_5_Minutes", null); map.put("ConnectionCount_Alive_5_10_Minutes", null); map.put("ConnectionCount_Alive_10_30_Minutes", null); map.put("ConnectionCount_Alive_30_60_Minutes", null); map.put("ConnectionCount_Alive_1_6_Hours", null); - + map.put("ConnectionCount_Alive_6_24_Hours", null); map.put("ConnectionCount_Alive_1_7_Day", null); map.put("ConnectionCount_Alive_7_30_Day", null); map.put("ConnectionCount_Alive_30_90_Day", null); map.put("ConnectionCount_Alive_90_more_Day", null); - + map.put("StatementExecuteCount_0_1_Millis", null); map.put("StatementExecuteCount_1_2_Millis", null); map.put("StatementExecuteCount_2_5_Millis", null); map.put("StatementExecuteCount_5_10_Millis", null); map.put("StatementExecuteCount_10_20_Millis", null); - + map.put("StatementExecuteCount_20_50_Millis", null); map.put("StatementExecuteCount_50_100_Millis", null); map.put("StatementExecuteCount_100_200_Millis", null); map.put("StatementExecuteCount_200_500_Millis", null); map.put("StatementExecuteCount_500_1000_Millis", null); - + map.put("StatementExecuteCount_1_2_Seconds", null); map.put("StatementExecuteCount_2_5_Seconds", null); map.put("StatementExecuteCount_5_10_Seconds", null); map.put("StatementExecuteCount_10_30_Seconds", null); map.put("StatementExecuteCount_30_60_Seconds", null); - + map.put("StatementExecuteCount_1_2_Minutes", null); map.put("StatementExecuteCount_2_5_Minutes", null); map.put("StatementExecuteCount_5_10_Minutes", null); diff --git a/src/main/java/com/alibaba/druid/sql/ast/expr/SQLListExpr.java b/src/main/java/com/alibaba/druid/sql/ast/expr/SQLListExpr.java index 41f17e19e4..65db3a1610 100644 --- a/src/main/java/com/alibaba/druid/sql/ast/expr/SQLListExpr.java +++ b/src/main/java/com/alibaba/druid/sql/ast/expr/SQLListExpr.java @@ -10,7 +10,7 @@ import com.alibaba.druid.sql.visitor.SQLASTVisitor; public class SQLListExpr extends SQLExprImpl { private static final long serialVersionUID = 1L; - + private final List items = new ArrayList(); public List getItems() { diff --git a/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java b/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java index e495a35b73..7ac1bb968c 100644 --- a/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java +++ b/src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java @@ -91,7 +91,8 @@ public class SQLJoinTableSource extends SQLTableSource { } public static enum JoinType { - COMMA, JOIN, INNER_JOIN, CROSS_JOIN, NATURAL_JOIN, NATURAL_INNER_JOIN, LEFT_OUTER_JOIN, RIGHT_OUTER_JOIN, FULL_OUTER_JOIN; + COMMA, JOIN, INNER_JOIN, CROSS_JOIN, NATURAL_JOIN, NATURAL_INNER_JOIN, LEFT_OUTER_JOIN, RIGHT_OUTER_JOIN, + FULL_OUTER_JOIN; public static String toString(JoinType joinType) { if (JOIN.equals(joinType)) return "JOIN"; diff --git a/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java b/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java index 4ea3bd27ba..a8800371f7 100644 --- a/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java +++ b/src/main/java/com/alibaba/druid/sql/ast/statement/SQLSubqueryTableSource.java @@ -51,10 +51,10 @@ public class SQLSubqueryTableSource extends SQLTableSource { @Override protected void accept0(SQLASTVisitor visitor) { - if (visitor.visit(this)) { - acceptChild(visitor, select); - } - visitor.endVisit(this); + if (visitor.visit(this)) { + acceptChild(visitor, select); + } + visitor.endVisit(this); } public void output(StringBuffer buf) { diff --git a/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionOperator.java b/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionOperator.java index b755a8771d..da1a8c99b3 100644 --- a/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionOperator.java +++ b/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnionOperator.java @@ -1,17 +1,14 @@ package com.alibaba.druid.sql.ast.statement; public enum SQLUnionOperator { - UNION("UNION"), - UNION_ALL("UNION ALL"), - MINUS("MINUS"), - INTERSECT("INTERSECT"); - + UNION("UNION"), UNION_ALL("UNION ALL"), MINUS("MINUS"), INTERSECT("INTERSECT"); + public final String name; - - private SQLUnionOperator(String name) { + + private SQLUnionOperator(String name){ this.name = name; } - + public String toString() { return name; } diff --git a/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlBooleanExpr.java b/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlBooleanExpr.java index 161323e90a..3df54b79ea 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlBooleanExpr.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlBooleanExpr.java @@ -28,7 +28,7 @@ public class MySqlBooleanExpr extends SQLLiteralExpr implements MySqlExpr { public MySqlBooleanExpr(){ } - + public MySqlBooleanExpr(boolean value){ this.value = value; } diff --git a/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlMatchAgainstExpr.java b/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlMatchAgainstExpr.java index 7aa93693c4..34c6ef1b9c 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlMatchAgainstExpr.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/expr/MySqlMatchAgainstExpr.java @@ -59,7 +59,8 @@ public class MySqlMatchAgainstExpr extends SQLExprImpl implements MySqlExpr { public static enum SearchModifier { IN_BOOLEAN_MODE("IN BOOLEAN MODE"), IN_NATURAL_LANGUAGE_MODE("IN NATURAL LANGUAGE MODE"), - IN_NATURAL_LANGUAGE_MODE_WITH_QUERY_EXPANSION("IN NATURAL LANGUAGE MODE WITH QUERY EXPANSION"), WITH_QUERY_EXPANSION("WITH QUERY EXPANSION"), ; + IN_NATURAL_LANGUAGE_MODE_WITH_QUERY_EXPANSION("IN NATURAL LANGUAGE MODE WITH QUERY EXPANSION"), + WITH_QUERY_EXPANSION("WITH QUERY EXPANSION"), ; public final String name; diff --git a/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.java b/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.java index eef74e3e30..b1c72e363a 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MySqlTableIndex.java @@ -62,7 +62,7 @@ public class MySqlTableIndex extends SQLObjectImpl implements SQLTableElement { accept0((MySqlASTVisitor) visitor); return; } - + if (visitor.visit(this)) { acceptChild(visitor, name); acceptChild(visitor, columns); diff --git a/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java b/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java index 1f00287d79..6902f82f14 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlExprParser.java @@ -190,7 +190,8 @@ public class MySqlExprParser extends SQLExprParser { String collate = lexer.stringVal(); lexer.nextToken(); - SQLBinaryOpExpr binaryExpr = new SQLBinaryOpExpr(expr, SQLBinaryOperator.COLLATE, new SQLIdentifierExpr(collate)); + SQLBinaryOpExpr binaryExpr = new SQLBinaryOpExpr(expr, SQLBinaryOperator.COLLATE, + new SQLIdentifierExpr(collate)); expr = binaryExpr; diff --git a/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java b/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java index ad2a797073..dd77f4f966 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlLexer.java @@ -29,8 +29,9 @@ import com.alibaba.druid.sql.parser.SQLParseException; import com.alibaba.druid.sql.parser.Token; public class MySqlLexer extends Lexer { - public final static Keywords DEFAULT_MYSQL_KEYWORDS; - + + public final static Keywords DEFAULT_MYSQL_KEYWORDS; + static { Map map = new HashMap(); map.put("EXISTS", Token.EXISTS); @@ -102,11 +103,11 @@ public class MySqlLexer extends Lexer { map.put("LOCK", Token.LOCK); map.put("SOME", Token.SOME); map.put("ANY", Token.ANY); - + map.put("TRUE", Token.TRUE); map.put("FALSE", Token.FALSE); map.put("LIMIT", Token.LIMIT); - + DEFAULT_MYSQL_KEYWORDS = new Keywords(map); } diff --git a/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java b/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java index 2b2b3a988b..178fc9cadf 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlSelectParser.java @@ -38,7 +38,7 @@ public class MySqlSelectParser extends SQLSelectParser { this(new MySqlLexer(sql)); this.lexer.nextToken(); } - + @Override protected SQLSelectQuery query() throws ParserException { if (lexer.token() == (Token.LPAREN)) { diff --git a/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java b/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java index 2c6126d4ce..c5cc16a371 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/mysql/parser/MySqlStatementParser.java @@ -771,7 +771,7 @@ public class MySqlStatementParser extends SQLStatementParser { SQLName tableName = this.exprParser.name(); insertStatement.setTableName(tableName); - + if (lexer.token() == Token.IDENTIFIER) { insertStatement.setAlias(lexer.stringVal()); lexer.nextToken(); diff --git a/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java b/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java index 9ed538abaa..83c26f0da1 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/mysql/visitor/MySqlOutputVisitor.java @@ -131,7 +131,8 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV print(select.getOutFileCharset()); } - if (select.getOutFileColumnsTerminatedBy() != null || select.getOutFileColumnsEnclosedBy() != null || select.getOutFileColumnsEscaped() != null) { + if (select.getOutFileColumnsTerminatedBy() != null || select.getOutFileColumnsEnclosedBy() != null + || select.getOutFileColumnsEscaped() != null) { print(" COLUMNS"); if (select.getOutFileColumnsTerminatedBy() != null) { print(" TERMINATED BY "); diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OracleOrderBy.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OracleOrderBy.java index 672e958306..f1c58d300c 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OracleOrderBy.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/OracleOrderBy.java @@ -37,7 +37,7 @@ public class OracleOrderBy extends SQLOrderBy { public void setSibings(boolean sibings) { this.sibings = sibings; } - + protected void accept0(SQLASTVisitor visitor) { accept0((OracleASTVisitor) visitor); } diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/FlashbackQueryClause.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/FlashbackQueryClause.java index f6b8dbe514..a2a2272ba4 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/FlashbackQueryClause.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/FlashbackQueryClause.java @@ -7,7 +7,7 @@ import com.alibaba.druid.sql.dialect.oracle.visitor.OracleASTVisitor; public abstract class FlashbackQueryClause extends OracleSQLObject { private static final long serialVersionUID = 1L; - + private Type type; public Type getType() { @@ -23,10 +23,11 @@ public abstract class FlashbackQueryClause extends OracleSQLObject { } public static class VersionsFlashbackQueryClause extends FlashbackQueryClause { + private static final long serialVersionUID = 1L; - - private SQLExpr begin; - private SQLExpr end; + + private SQLExpr begin; + private SQLExpr end; public SQLExpr getBegin() { return begin; @@ -55,9 +56,10 @@ public abstract class FlashbackQueryClause extends OracleSQLObject { } public static class AsOfFlashbackQueryClause extends FlashbackQueryClause { + private static final long serialVersionUID = 1L; - - private SQLExpr expr; + + private SQLExpr expr; public SQLExpr getExpr() { return expr; diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/GroupingSetExpr.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/GroupingSetExpr.java index 8f7d6e4784..5662f1e157 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/GroupingSetExpr.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/GroupingSetExpr.java @@ -10,8 +10,8 @@ import com.alibaba.druid.sql.visitor.SQLASTVisitor; public class GroupingSetExpr extends SQLExprImpl { - private static final long serialVersionUID = 1L; - private final List parameters = new ArrayList(); + private static final long serialVersionUID = 1L; + private final List parameters = new ArrayList(); public List getParameters() { return parameters; @@ -21,7 +21,7 @@ public class GroupingSetExpr extends SQLExprImpl { protected void accept0(SQLASTVisitor visitor) { accept0((OracleASTVisitor) visitor); } - + protected void accept0(OracleASTVisitor visitor) { if (visitor.visit(this)) { acceptChild(visitor, parameters); diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/PartitionExtensionClause.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/PartitionExtensionClause.java index 2bb0d066b0..d4f3d278b3 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/PartitionExtensionClause.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/clause/PartitionExtensionClause.java @@ -10,10 +10,10 @@ import com.alibaba.druid.sql.dialect.oracle.visitor.OracleASTVisitor; public class PartitionExtensionClause extends OracleSQLObject { private static final long serialVersionUID = 1L; - + private boolean subPartition; private SQLName partition; - private final List target = new ArrayList(); + private final List target = new ArrayList(); public boolean isSubPartition() { return subPartition; diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleBinaryFloatExpr.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleBinaryFloatExpr.java index d1f043760f..5577a33bb3 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleBinaryFloatExpr.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OracleBinaryFloatExpr.java @@ -8,7 +8,7 @@ public class OracleBinaryFloatExpr extends SQLNumericLiteralExpr { private static final long serialVersionUID = 1L; - private Float value; + private Float value; public OracleBinaryFloatExpr(){ diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OraclePriorExpr.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OraclePriorExpr.java index e6b1b675c5..a1d21f1b37 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OraclePriorExpr.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/expr/OraclePriorExpr.java @@ -9,12 +9,12 @@ public class OraclePriorExpr extends SQLExprImpl { private static final long serialVersionUID = 1L; private SQLExpr expr; - - public OraclePriorExpr() { - + + public OraclePriorExpr(){ + } - - public OraclePriorExpr(SQLExpr expr) { + + public OraclePriorExpr(SQLExpr expr){ this.expr = expr; } @@ -25,7 +25,7 @@ public class OraclePriorExpr extends SQLExprImpl { public void setExpr(SQLExpr expr) { this.expr = expr; } - + @Override protected void accept0(SQLASTVisitor visitor) { accept0((OracleASTVisitor) visitor); diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleOrderByItem.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleOrderByItem.java index 5a1e03cdcf..38e7b64dba 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleOrderByItem.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleOrderByItem.java @@ -37,7 +37,7 @@ public class OracleOrderByItem extends SQLSelectOrderByItem { public void setNullsOrderType(NullsOrderType nullsOrderType) { this.nullsOrderType = nullsOrderType; } - + protected void accept0(SQLASTVisitor visitor) { accept0((OracleASTVisitor) visitor); } diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectQueryBlock.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectQueryBlock.java index 6c3500ac99..04b8345ee0 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectQueryBlock.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/ast/stmt/OracleSelectQueryBlock.java @@ -55,7 +55,7 @@ public class OracleSelectQueryBlock extends SQLSelectQueryBlock { accept0((OracleASTVisitor) visitor); return; } - + if (visitor.visit(this)) { acceptChild(visitor, this.selectList); acceptChild(visitor, this.from); diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java index b32835c6b9..1e3ebce00d 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java @@ -46,6 +46,7 @@ import com.alibaba.druid.sql.parser.Token; public class OracleExprParser extends SQLExprParser { + public boolean allowStringAdditive = false; /** diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java index f5b38f507b..1a8090aa17 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleLexer.java @@ -11,8 +11,9 @@ import com.alibaba.druid.sql.parser.SQLParseException; import com.alibaba.druid.sql.parser.Token; public class OracleLexer extends Lexer { - public final static Keywords DEFAULT_ORACLE_KEYWORDS; - + + public final static Keywords DEFAULT_ORACLE_KEYWORDS; + static { Map map = new HashMap(); map.put("EXISTS", Token.EXISTS); @@ -84,7 +85,7 @@ public class OracleLexer extends Lexer { map.put("LOCK", Token.LOCK); map.put("SOME", Token.SOME); map.put("ANY", Token.ANY); - + map.put("START", Token.START); map.put("CONNECT", Token.CONNECT); map.put("PRIOR", Token.PRIOR); @@ -92,7 +93,7 @@ public class OracleLexer extends Lexer { map.put("EXTRACT", Token.EXTRACT); map.put("DATE", Token.DATE); map.put("TIMESTAMP", Token.TIMESTAMP); - + DEFAULT_ORACLE_KEYWORDS = new Keywords(map); } @@ -105,14 +106,14 @@ public class OracleLexer extends Lexer { super(input); super.keywods = DEFAULT_ORACLE_KEYWORDS; } - + public void scanVariable() { if (ch == '@') { scanChar(); token = Token.MONKEYS_AT; return; } - + if (ch != ':') { throw new SQLParseException("illegal variable"); } @@ -122,7 +123,7 @@ public class OracleLexer extends Lexer { np = bp; sp = 1; char ch; - + for (;;) { ch = buf[++bp]; @@ -157,16 +158,16 @@ public class OracleLexer extends Lexer { scanChar(); sp++; - // /*+ */ + // /*+ */ if (ch == '*') { scanChar(); sp++; - + while (ch == ' ') { scanChar(); sp++; } - + boolean isHint = false; int startHintSp = sp + 1; if (ch == '+') { @@ -187,8 +188,6 @@ public class OracleLexer extends Lexer { sp++; } - - if (isHint) { stringVal = new String(buf, np + startHintSp, (sp - startHintSp) - 2).trim(); token = Token.HINT; @@ -196,7 +195,7 @@ public class OracleLexer extends Lexer { stringVal = new String(buf, np, sp); token = Token.MULTI_LINE_COMMENT; } - + return; } @@ -230,7 +229,7 @@ public class OracleLexer extends Lexer { return; } } - + public void scanNumber() { np = bp; @@ -285,13 +284,13 @@ public class OracleLexer extends Lexer { isDouble = true; } - + if (ch == 'f' || ch == 'F') { token = Token.BINARY_FLOAT; scanChar(); return; } - + if (ch == 'd' || ch == 'D') { token = Token.BINARY_DOUBLE; scanChar(); diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java index 01b3dbb85a..dcc7e49f8d 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleSelectParser.java @@ -521,7 +521,7 @@ public class OracleSelectParser extends SQLSelectParser { clause.setType(AsOfFlashbackQueryClause.Type.SCN); lexer.nextToken(); } else { - accept(Token.TIMESTAMP); + accept(Token.TIMESTAMP); clause.setType(AsOfFlashbackQueryClause.Type.TIMESTAMP); } @@ -576,7 +576,7 @@ public class OracleSelectParser extends SQLSelectParser { accept(Token.JOIN); joinType = OracleSelectJoin.JoinType.FULL_OUTER_JOIN; } - + if (lexer.token() == Token.INNER) { lexer.nextToken(); accept(Token.JOIN); diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java index 79fe4483f5..441ababbbe 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleStatementParser.java @@ -38,7 +38,7 @@ public class OracleStatementParser extends SQLStatementParser { public OracleStatementParser(Lexer lexer){ super(lexer); } - + protected SQLExprParser createExprParser() { return new OracleExprParser(lexer); } @@ -102,12 +102,12 @@ public class OracleStatementParser extends SQLStatementParser { if (lexer.token() == Token.ALTER) { throw new ParserException("TODO"); } - + if (lexer.token() == Token.WITH) { statementList.add(new SQLSelectStatement(new OracleSelectParser(this.lexer).select())); continue; } - + if (identifierEquals("CALL")) { statementList.add(this.parseCall()); continue; @@ -116,7 +116,7 @@ public class OracleStatementParser extends SQLStatementParser { throw new ParserException("TODO : " + lexer.token() + " " + lexer.stringVal()); } } - + public OracleCreateTableStatement parseOracleCreateTable() throws ParserException { // OracleCreateTableParser parser = new OracleCreateTableParser(this.tokenList); // return parser.parseCrateTable(); diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleUpdateParser.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleUpdateParser.java index b0baa358fa..e147d69eca 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleUpdateParser.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleUpdateParser.java @@ -109,7 +109,7 @@ public class OracleUpdateParser extends SQLStatementParser { update.setSetClause(setListClause); } - + protected SQLExprParser createExprParser() { return new OracleExprParser(lexer); } diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleASTVIsitorAdapter.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleASTVIsitorAdapter.java index b0e57317c7..f843645dba 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleASTVIsitorAdapter.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleASTVIsitorAdapter.java @@ -80,10 +80,10 @@ public class OracleASTVIsitorAdapter extends SQLASTVisitorAdapter implements Ora public boolean visit(OracleSelect x) { return true; } - + public void endVisit(OracleSelect x) { } - + @Override public void endVisit(OracleAggregateExpr astNode) { diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleASTVisitor.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleASTVisitor.java index 4768cad6b9..45a2962442 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleASTVisitor.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleASTVisitor.java @@ -363,8 +363,8 @@ public interface OracleASTVisitor extends SQLASTVisitor { boolean visit(OracleBinaryDoubleExpr x); void endVisit(OracleBinaryDoubleExpr x); - + boolean visit(OracleSelect x); - + void endVisit(OracleSelect x); } diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java index f165d78f29..8e35be24e4 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java @@ -1675,7 +1675,7 @@ public class OracleOutputVisitor extends SQLASTOutputVisitor implements OracleAS @Override public void endVisit(OracleSelect x) { - + } } diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleParameterizedOutputVisitor.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleParameterizedOutputVisitor.java index 0095e80939..6af26d06cf 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleParameterizedOutputVisitor.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleParameterizedOutputVisitor.java @@ -12,8 +12,9 @@ import com.alibaba.druid.sql.ast.expr.SQLNumberExpr; import com.alibaba.druid.sql.ast.expr.SQLVariantRefExpr; public class OracleParameterizedOutputVisitor extends OracleOutputVisitor { + private static final String ATTR_PARAMS_SKIP = "_params.skip_"; - + public OracleParameterizedOutputVisitor(Appendable appender){ super(appender); } @@ -33,13 +34,13 @@ public class OracleParameterizedOutputVisitor extends OracleOutputVisitor { return false; } - + public boolean visit(SQLBinaryOpExpr x) { x = merge(x); return super.visit(x); } - + public SQLBinaryOpExpr merge(SQLBinaryOpExpr x) { if (x.getLeft() instanceof SQLLiteralExpr && x.getRight() instanceof SQLLiteralExpr) { if (x.getOperator() == SQLBinaryOperator.Equality || x.getOperator() == SQLBinaryOperator.NotEqual) { @@ -128,12 +129,12 @@ public class OracleParameterizedOutputVisitor extends OracleOutputVisitor { return false; } - + public boolean visit(SQLIntegerExpr x) { if (Boolean.TRUE.equals(x.getAttribute(ATTR_PARAMS_SKIP))) { return super.visit(x); } - + print('?'); return false; } @@ -142,7 +143,7 @@ public class OracleParameterizedOutputVisitor extends OracleOutputVisitor { if (Boolean.TRUE.equals(x.getAttribute(ATTR_PARAMS_SKIP))) { return super.visit(x); } - + print('?'); return false; } @@ -151,7 +152,7 @@ public class OracleParameterizedOutputVisitor extends OracleOutputVisitor { if (Boolean.TRUE.equals(x.getAttribute(ATTR_PARAMS_SKIP))) { return super.visit(x); } - + print('?'); return false; } @@ -160,7 +161,7 @@ public class OracleParameterizedOutputVisitor extends OracleOutputVisitor { if (Boolean.TRUE.equals(x.getAttribute(ATTR_PARAMS_SKIP))) { return super.visit(x); } - + print('?'); return false; } diff --git a/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java b/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java index 579bfb6473..0078d3dc70 100644 --- a/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java +++ b/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleSchemaStatVisitor.java @@ -129,7 +129,7 @@ public class OracleSchemaStatVisitor extends OracleASTVIsitorAdapter { } return false; } - + accept(x.getExpr()); return false; @@ -419,7 +419,7 @@ public class OracleSchemaStatVisitor extends OracleASTVIsitorAdapter { if ("SYSDATE".equalsIgnoreCase(x.getName())) { return false; } - + if ("+".equalsIgnoreCase(x.getName())) { return false; } diff --git a/src/main/java/com/alibaba/druid/sql/parser/Lexer.java b/src/main/java/com/alibaba/druid/sql/parser/Lexer.java index 43370dfb12..521479f3bf 100644 --- a/src/main/java/com/alibaba/druid/sql/parser/Lexer.java +++ b/src/main/java/com/alibaba/druid/sql/parser/Lexer.java @@ -446,7 +446,7 @@ public class Lexer { private final void scanAlias() { np = bp; - + for (;;) { if (bp >= buflen) { lexError(tokenPos, "unclosed.str.lit"); @@ -467,7 +467,7 @@ public class Lexer { sbuf[sp++] = ch; } } - + stringVal = new String(buf, np + 1, sp); } @@ -483,14 +483,14 @@ public class Lexer { np = bp; sp = 1; char ch; - + if (buf[bp + 1] == '@') { ch = buf[++bp]; hash = 31 * hash + ch; sp++; } - + for (;;) { ch = buf[++bp]; diff --git a/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java b/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java index 7d4c0ecf9c..51d3b1eb25 100644 --- a/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java +++ b/src/main/java/com/alibaba/druid/sql/parser/SQLParser.java @@ -87,7 +87,7 @@ public class SQLParser { alias = "'" + lexer.stringVal() + "'"; lexer.nextToken(); } - + switch (lexer.token()) { case KEY: alias = lexer.token().name(); @@ -96,7 +96,7 @@ public class SQLParser { default: break; } - + return alias; } diff --git a/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java b/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java index 667406bd5d..91f634ada1 100644 --- a/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java +++ b/src/main/java/com/alibaba/druid/sql/parser/SQLStatementParser.java @@ -138,7 +138,7 @@ public class SQLStatementParser extends SQLParser { SQLName tableName = this.exprParser.name(); insertStatement.setTableName(tableName); - + if (lexer.token() == Token.IDENTIFIER) { insertStatement.setAlias(lexer.stringVal()); lexer.nextToken(); diff --git a/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java b/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java index d70863f027..3513d12bc2 100644 --- a/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java +++ b/src/main/java/com/alibaba/druid/sql/visitor/SQLASTOutputVisitor.java @@ -786,7 +786,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter { } print(", "); } - + x.getValues().get(i).accept(this); } decrementIndent(); @@ -861,7 +861,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter { println(); decrementIndent(); print(")"); - + if (x.getAlias() != null) { print(' '); print(x.getAlias()); diff --git a/src/main/java/com/alibaba/druid/sql/visitor/SQLASTVisitor.java b/src/main/java/com/alibaba/druid/sql/visitor/SQLASTVisitor.java index 2d1c584d31..5895dc6244 100644 --- a/src/main/java/com/alibaba/druid/sql/visitor/SQLASTVisitor.java +++ b/src/main/java/com/alibaba/druid/sql/visitor/SQLASTVisitor.java @@ -325,8 +325,8 @@ public interface SQLASTVisitor { void endVisit(SQLListExpr x); boolean visit(SQLListExpr x); - + void endVisit(SQLSubqueryTableSource x); - + boolean visit(SQLSubqueryTableSource x); } diff --git a/src/main/java/com/alibaba/druid/sql/visitor/SQLASTVisitorAdapter.java b/src/main/java/com/alibaba/druid/sql/visitor/SQLASTVisitorAdapter.java index 355b7eb4bd..05490a028c 100644 --- a/src/main/java/com/alibaba/druid/sql/visitor/SQLASTVisitorAdapter.java +++ b/src/main/java/com/alibaba/druid/sql/visitor/SQLASTVisitorAdapter.java @@ -546,19 +546,19 @@ public class SQLASTVisitorAdapter implements SQLASTVisitor { @Override public void endVisit(SQLListExpr x) { - + } @Override public boolean visit(SQLListExpr x) { return true; } - + @Override public void endVisit(SQLSubqueryTableSource x) { - + } - + @Override public boolean visit(SQLSubqueryTableSource x) { return true; diff --git a/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java b/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java index 9c4a725826..757ec8776a 100644 --- a/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java +++ b/src/main/java/com/alibaba/druid/stat/JdbcConnectionStat.java @@ -490,17 +490,22 @@ public class JdbcConnectionStat implements JdbcConnectionStatMBean { return new Date(lastErrorTime); } - private static String[] indexNames = { "ID", "ConnectTime", "ConnectTimespan", "EstablishTime", "AliveTimespan", "LastSql", "LastError", "LastErrorTime", "ConnectStatckTrace", "LastStatementStackTrace", "DataSource" }; + private static String[] indexNames = { "ID", "ConnectTime", "ConnectTimespan", "EstablishTime", + "AliveTimespan", "LastSql", "LastError", "LastErrorTime", + "ConnectStatckTrace", "LastStatementStackTrace", "DataSource" }; private static String[] indexDescriptions = indexNames; public static CompositeType getCompositeType() throws JMException { - OpenType[] indexTypes = new OpenType[] { SimpleType.LONG, SimpleType.DATE, SimpleType.LONG, SimpleType.DATE, SimpleType.LONG, + OpenType[] indexTypes = new OpenType[] { SimpleType.LONG, SimpleType.DATE, SimpleType.LONG, + SimpleType.DATE, SimpleType.LONG, - SimpleType.STRING, JMXUtils.getThrowableCompositeType(), SimpleType.DATE, SimpleType.STRING, SimpleType.STRING, + SimpleType.STRING, JMXUtils.getThrowableCompositeType(), SimpleType.DATE, SimpleType.STRING, + SimpleType.STRING, - SimpleType.STRING }; + SimpleType.STRING }; - return new CompositeType("ConnectionStatistic", "Connection Statistic", indexNames, indexDescriptions, indexTypes); + return new CompositeType("ConnectionStatistic", "Connection Statistic", indexNames, indexDescriptions, + indexTypes); } public String getDataSource() { diff --git a/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java b/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java index 833c8de21b..2204f0c615 100644 --- a/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java +++ b/src/main/java/com/alibaba/druid/stat/JdbcDataSourceStat.java @@ -125,7 +125,8 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { CompositeType rowType = JdbcConnectionStat.Entry.getCompositeType(); String[] indexNames = rowType.keySet().toArray(new String[rowType.keySet().size()]); - TabularType tabularType = new TabularType("ConnectionListStatistic", "ConnectionListStatistic", rowType, indexNames); + TabularType tabularType = new TabularType("ConnectionListStatistic", "ConnectionListStatistic", rowType, + indexNames); TabularData data = new TabularDataSupport(tabularType); for (Map.Entry entry : getConnections().entrySet()) { @@ -207,7 +208,7 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { return count; } - + public long getConnectionCount_Alive_1_5_Seconds() { long count = this.getConnectionStat().getCount_Alive_1_5_Seconds(); @@ -221,10 +222,10 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { return count; } - + public long getConnectionCount_Alive_5_10_Seconds() { long count = this.getConnectionStat().getCount_Alive_5_10_Seconds(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -232,13 +233,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_10_30_Seconds() { long count = this.getConnectionStat().getCount_Alive_10_30_Seconds(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -246,13 +247,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_30_60_Seconds() { long count = this.getConnectionStat().getCount_Alive_30_60_Seconds(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -260,13 +261,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_1_5_Minutes() { long count = this.getConnectionStat().getCount_Alive_1_5_Minutes(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -274,13 +275,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_5_10_Minutes() { long count = this.getConnectionStat().getCount_Alive_5_10_Minutes(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -288,13 +289,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_10_30_Minutes() { long count = this.getConnectionStat().getCount_Alive_10_30_Minutes(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -302,13 +303,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_30_60_Minutes() { long count = this.getConnectionStat().getCount_Alive_30_60_Minutes(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -316,13 +317,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_1_6_Hours() { long count = this.getConnectionStat().getCount_Alive_1_6_Hours(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -330,13 +331,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_6_24_Hours() { long count = this.getConnectionStat().getCount_Alive_6_24_Hours(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -344,13 +345,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_1_7_day() { long count = this.getConnectionStat().getCount_Alive_1_7_Day(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -358,13 +359,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_7_30_Day() { long count = this.getConnectionStat().getCount_Alive_7_30_Day(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -372,13 +373,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_30_90_Day() { long count = this.getConnectionStat().getCount_Alive_30_90_Day(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -386,13 +387,13 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + public long getConnectionCount_Alive_90_more_Day() { long count = this.getConnectionStat().getCount_Alive_90_more_Day(); - + long nowNano = System.nanoTime(); for (JdbcConnectionStat.Entry connection : connections.values()) { long connectionAliveNano = nowNano - connection.getEstablishNano(); @@ -400,8 +401,8 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean { count++; } } - + return count; } - + } diff --git a/src/main/java/com/alibaba/druid/stat/JdbcResultSetStat.java b/src/main/java/com/alibaba/druid/stat/JdbcResultSetStat.java index 2a01e4a5e6..0e21648891 100644 --- a/src/main/java/com/alibaba/druid/stat/JdbcResultSetStat.java +++ b/src/main/java/com/alibaba/druid/stat/JdbcResultSetStat.java @@ -21,22 +21,22 @@ import java.util.concurrent.atomic.AtomicLong; public class JdbcResultSetStat implements JdbcResultSetStatMBean { - private final AtomicInteger openningCount = new AtomicInteger(); + private final AtomicInteger openningCount = new AtomicInteger(); private final AtomicInteger opeeningtMax = new AtomicInteger(); - private final AtomicLong openCount = new AtomicLong(); - private final AtomicLong errorCount = new AtomicLong(); + private final AtomicLong openCount = new AtomicLong(); + private final AtomicLong errorCount = new AtomicLong(); - private final AtomicLong aliveNanoTotal = new AtomicLong(); - private final AtomicLong aliveNanoMax = new AtomicLong(); - private final AtomicLong aliveNanoMin = new AtomicLong(); + private final AtomicLong aliveNanoTotal = new AtomicLong(); + private final AtomicLong aliveNanoMax = new AtomicLong(); + private final AtomicLong aliveNanoMin = new AtomicLong(); private Throwable lastError; private long lastErrorTime; - private long lastOpenTime = 0; + private long lastOpenTime = 0; - private final AtomicLong fetchRowCount = new AtomicLong(0); // 总共读取的行数 - private final AtomicLong closeCount = new AtomicLong(0); // ResultSet打开的计数 + private final AtomicLong fetchRowCount = new AtomicLong(0); // 总共读取的行数 + private final AtomicLong closeCount = new AtomicLong(0); // ResultSet打开的计数 public void reset() { opeeningtMax.set(0); @@ -99,15 +99,15 @@ public class JdbcResultSetStat implements JdbcResultSetStatMBean { public long getAliveNanoTotal() { return aliveNanoTotal.get(); } - + public long getAliveMillisTotal() { return aliveNanoTotal.get() / (1000 * 1000); } - + public long getAliveMilisMin() { return aliveNanoMin.get() / (1000 * 1000); } - + public long getAliveMilisMax() { return aliveNanoMax.get() / (1000 * 1000); } @@ -116,7 +116,7 @@ public class JdbcResultSetStat implements JdbcResultSetStatMBean { openningCount.decrementAndGet(); aliveNanoTotal.addAndGet(aliveNano); - + for (;;) { long max = aliveNanoMax.get(); if (aliveNano > max) { @@ -129,7 +129,7 @@ public class JdbcResultSetStat implements JdbcResultSetStatMBean { break; } } - + for (;;) { long min = aliveNanoMin.get(); if (aliveNano < min) { diff --git a/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java b/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java index bea4c43943..b2285040fb 100644 --- a/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java +++ b/src/main/java/com/alibaba/druid/stat/JdbcSqlStat.java @@ -59,30 +59,30 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean { private final AtomicLong updateCount = new AtomicLong(); private final AtomicLong fetchRowCount = new AtomicLong(); - - private AtomicLong count_0_1_Millis = new AtomicLong(); - private AtomicLong count_1_2_Millis = new AtomicLong(); - private AtomicLong count_2_5_Millis = new AtomicLong(); - private AtomicLong count_5_10_Millis = new AtomicLong(); - private AtomicLong count_10_20_Millis = new AtomicLong(); - private AtomicLong count_20_50_Millis = new AtomicLong(); - private AtomicLong count_50_100_Millis = new AtomicLong(); - private AtomicLong count_100_200_Millis = new AtomicLong(); - private AtomicLong count_200_500_Millis = new AtomicLong(); - private AtomicLong count_500_1000_Millis = new AtomicLong(); + private AtomicLong count_0_1_Millis = new AtomicLong(); + private AtomicLong count_1_2_Millis = new AtomicLong(); + private AtomicLong count_2_5_Millis = new AtomicLong(); + private AtomicLong count_5_10_Millis = new AtomicLong(); + private AtomicLong count_10_20_Millis = new AtomicLong(); - private AtomicLong count_1_2_Seconds = new AtomicLong(); - private AtomicLong count_2_5_Seconds = new AtomicLong(); - private AtomicLong count_5_10_Seconds = new AtomicLong(); - private AtomicLong count_10_30_Seconds = new AtomicLong(); - private AtomicLong count_30_60_Seconds = new AtomicLong(); + private AtomicLong count_20_50_Millis = new AtomicLong(); + private AtomicLong count_50_100_Millis = new AtomicLong(); + private AtomicLong count_100_200_Millis = new AtomicLong(); + private AtomicLong count_200_500_Millis = new AtomicLong(); + private AtomicLong count_500_1000_Millis = new AtomicLong(); - private AtomicLong count_1_2_minutes = new AtomicLong(); - private AtomicLong count_2_5_minutes = new AtomicLong(); - private AtomicLong count_5_10_minutes = new AtomicLong(); - private AtomicLong count_10_30_minutes = new AtomicLong(); - private AtomicLong count_30_more_minutes = new AtomicLong(); + private AtomicLong count_1_2_Seconds = new AtomicLong(); + private AtomicLong count_2_5_Seconds = new AtomicLong(); + private AtomicLong count_5_10_Seconds = new AtomicLong(); + private AtomicLong count_10_30_Seconds = new AtomicLong(); + private AtomicLong count_30_60_Seconds = new AtomicLong(); + + private AtomicLong count_1_2_minutes = new AtomicLong(); + private AtomicLong count_2_5_minutes = new AtomicLong(); + private AtomicLong count_5_10_minutes = new AtomicLong(); + private AtomicLong count_10_30_minutes = new AtomicLong(); + private AtomicLong count_30_more_minutes = new AtomicLong(); public JdbcSqlStat(String sql){ this.sql = sql; @@ -179,7 +179,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean { updateCount.set(0); fetchRowCount.set(0); - + count_0_1_Millis.set(0); count_1_2_Millis.set(0); count_2_5_Millis.set(0); @@ -336,7 +336,6 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean { break; } } - final long MILLIS = 1000 * 1000; final long SECOND = 1000 * MILLIS; @@ -373,7 +372,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean { count_10_30_Seconds.incrementAndGet(); } else if (nanoSpan < 60 * SECOND) { count_30_60_Seconds.incrementAndGet(); - + } else if (nanoSpan < 2 * MINUTE) { count_1_2_minutes.incrementAndGet(); } else if (nanoSpan < 5 * MINUTE) { @@ -403,7 +402,6 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean { public long getExecuteBatchSizeMax() { return executeBatchSizeMax.get(); } - public long getCount_0_1_Millis() { return count_0_1_Millis.get(); @@ -485,7 +483,6 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean { return count_30_more_minutes.get(); } - private static CompositeType COMPOSITE_TYPE = null; public static CompositeType getCompositeType() throws JMException { @@ -494,28 +491,56 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean { return COMPOSITE_TYPE; } - OpenType[] indexTypes = new OpenType[] { SimpleType.LONG, SimpleType.STRING, SimpleType.STRING, SimpleType.LONG, SimpleType.LONG, - SimpleType.LONG, SimpleType.DATE, SimpleType.LONG, JMXUtils.getThrowableCompositeType(), SimpleType.LONG, SimpleType.LONG, SimpleType.DATE, - SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, - SimpleType.STRING, SimpleType.DATE, SimpleType.STRING, SimpleType.STRING // - - , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG // - , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG // - , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG // - , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG // + OpenType[] indexTypes = new OpenType[] { SimpleType.LONG, SimpleType.STRING, SimpleType.STRING, + SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.DATE, SimpleType.LONG, + JMXUtils.getThrowableCompositeType(), SimpleType.LONG, SimpleType.LONG, SimpleType.DATE, + SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.STRING, + SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.DATE, + SimpleType.STRING, SimpleType.STRING // + + , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG // + , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG // + , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG // + , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG // }; - String[] indexNames = { "ID", "DataSource", "SQL", "ExecuteCount", "ErrorCount" // - , "TotalTime", "LastTime", "MaxTimespan", "LastError", "EffectedRowCount" // - , "FetchRowCount", "MaxTimespanOccurTime", "BatchSizeMax", "BatchSizeTotal", "ConcurrentMax" // - , "RunningCount", "Name", "File" , "LastErrorMessage", "LastErrorClass" // - , "LastErrorStackTrace", "LastErrorTime", "DbType", "URL" // - - , "ExecuteCount_0_1_Millis", "ExecuteCount_1_2_Millis", "ExecuteCount_2_5_Millis", "ExecuteCount_5_10_Millis", "ExecuteCount_10_20_Millis" - , "ExecuteCount_20_50_Millis", "ExecuteCount_50_100_Millis", "ExecuteCount_100_200_Millis", "ExecuteCount_200_500_Millis", "ExecuteCount_500_1000_Millis" - , "ExecuteCount_1_2_Seconds", "ExecuteCount_2_5_Seconds", "ExecuteCount_5_10_Seconds", "ExecuteCount_10_30_Seconds", "ExecuteCount_30_60_Seconds" - , "ExecuteCount_1_2_Minutes", "ExecuteCount_2_5_Minutes", "ExecuteCount_5_10_Minutes", "ExecuteCount_10_30_Minutes", "ExecuteCount_30_more_Minutes" - }; + String[] indexNames = { + "ID", + "DataSource", + "SQL", + "ExecuteCount", + "ErrorCount" // + , + "TotalTime", + "LastTime", + "MaxTimespan", + "LastError", + "EffectedRowCount" // + , + "FetchRowCount", + "MaxTimespanOccurTime", + "BatchSizeMax", + "BatchSizeTotal", + "ConcurrentMax" // + , + "RunningCount", + "Name", + "File", + "LastErrorMessage", + "LastErrorClass" // + , + "LastErrorStackTrace", + "LastErrorTime", + "DbType", + "URL" // + + , "ExecuteCount_0_1_Millis", "ExecuteCount_1_2_Millis", "ExecuteCount_2_5_Millis", + "ExecuteCount_5_10_Millis", "ExecuteCount_10_20_Millis", "ExecuteCount_20_50_Millis", + "ExecuteCount_50_100_Millis", "ExecuteCount_100_200_Millis", "ExecuteCount_200_500_Millis", + "ExecuteCount_500_1000_Millis", "ExecuteCount_1_2_Seconds", "ExecuteCount_2_5_Seconds", + "ExecuteCount_5_10_Seconds", "ExecuteCount_10_30_Seconds", "ExecuteCount_30_60_Seconds", + "ExecuteCount_1_2_Minutes", "ExecuteCount_2_5_Minutes", "ExecuteCount_5_10_Minutes", + "ExecuteCount_10_30_Minutes", "ExecuteCount_30_more_Minutes" }; String[] indexDescriptions = indexNames; COMPOSITE_TYPE = new CompositeType("SqlStatistic", "Sql Statistic", indexNames, indexDescriptions, indexTypes); @@ -525,7 +550,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean { public long getExecuteCount() { return getErrorCount() + getExecuteSuccessCount(); } - + public Map getData() throws JMException { Map map = new HashMap(); @@ -567,31 +592,31 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean { map.put("DbType", dbType); map.put("URL", null); - + map.put("ExecuteCount_0_1_Millis", this.getCount_0_1_Millis()); map.put("ExecuteCount_1_2_Millis", this.getCount_1_2_Millis()); map.put("ExecuteCount_2_5_Millis", this.getCount_2_5_Millis()); map.put("ExecuteCount_5_10_Millis", this.getCount_5_10_Millis()); map.put("ExecuteCount_10_20_Millis", this.getCount_10_20_Millis()); - + map.put("ExecuteCount_20_50_Millis", this.getCount_20_50_Millis()); map.put("ExecuteCount_50_100_Millis", this.getCount_50_100_Millis()); map.put("ExecuteCount_100_200_Millis", this.getCount_100_200_Millis()); map.put("ExecuteCount_200_500_Millis", this.getCount_200_500_Millis()); map.put("ExecuteCount_500_1000_Millis", this.getCount_500_1000_Millis()); - + map.put("ExecuteCount_1_2_Seconds", this.getCount_1_2_Seconds()); map.put("ExecuteCount_2_5_Seconds", this.getCount_2_5_Seconds()); map.put("ExecuteCount_5_10_Seconds", this.getCount_5_10_Seconds()); map.put("ExecuteCount_10_30_Seconds", this.getCount_10_30_Seconds()); map.put("ExecuteCount_30_60_Seconds", this.getCount_30_60_Seconds()); - + map.put("ExecuteCount_1_2_Minutes", this.getCount_1_2_minutes()); map.put("ExecuteCount_2_5_Minutes", this.getCount_2_5_minutes()); map.put("ExecuteCount_5_10_Minutes", this.getCount_5_10_minutes()); map.put("ExecuteCount_10_30_Minutes", this.getCount_10_30_minutes()); map.put("ExecuteCount_30_more_Minutes", this.getCount_30_more_minutes()); - + return map; } diff --git a/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java b/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java index e0a2f7c346..38cbedd66d 100644 --- a/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java +++ b/src/main/java/com/alibaba/druid/stat/JdbcStatManager.java @@ -106,7 +106,8 @@ public class JdbcStatManager implements JdbcStatManagerMBean { } OpenType[] indexTypes = new OpenType[] { // - SimpleType.LONG, SimpleType.STRING, SimpleType.STRING, new ArrayType>(SimpleType.STRING, false), SimpleType.DATE, // + SimpleType.LONG, SimpleType.STRING, SimpleType.STRING, + new ArrayType>(SimpleType.STRING, false), SimpleType.DATE, // SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER, SimpleType.INTEGER, SimpleType.STRING // , SimpleType.LONG, SimpleType.INTEGER, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG // , SimpleType.DATE, SimpleType.LONG, SimpleType.DATE, SimpleType.STRING, SimpleType.STRING // @@ -130,30 +131,105 @@ public class JdbcStatManager implements JdbcStatManagerMBean { // }; - String[] indexNames = { "ID", "URL", "Name", "FilterClasses", "CreatedTime", // - "RawUrl", "RawDriverClassName", "RawDriverMajorVersion", "RawDriverMinorVersion", "Properties" // - , "ConnectionActiveCount", "ConnectionActiveCountMax", "ConnectionCloseCount", "ConnectionCommitCount", "ConnectionRollbackCount" // - , "ConnectionConnectLastTime", "ConnectionConnectErrorCount", "ConnectionConnectErrorLastTime", "ConnectionConnectErrorLastMessage", "ConnectionConnectErrorLastStackTrace" // - , "StatementCreateCount", "StatementPrepareCount", "StatementPreCallCount", "StatementExecuteCount", "StatementRunningCount" // - , "StatementConcurrentMax", "StatementCloseCount", "StatementErrorCount", "StatementLastErrorTime", "StatementLastErrorMessage" // - , "StatementLastErrorStackTrace", "StatementExecuteMillisTotal", "ConnectionConnectingCount", "StatementExecuteLastTime", "ResultSetCloseCount" // - , "ResultSetOpenCount", "ResultSetOpenningCount", "ResultSetOpenningMax", "ResultSetFetchRowCount", "ResultSetLastOpenTime" // - , "ResultSetErrorCount", "ResultSetOpenningMillisTotal", "ResultSetLastErrorTime", "ResultSetLastErrorMessage", "ResultSetLastErrorStackTrace", "ConnectionConnectCount", "ConnectionErrorLastMessage", "ConnectionErrorLastStackTrace", "ConnectionConnectMillisTotal", "ConnectionConnectingCountMax" // - , "ConnectionConnectMillisMax", "ConnectionErrorLastTime", "ConnectionAliveMillisMax", "ConnectionAliveMillisMin" // + String[] indexNames = { + "ID", + "URL", + "Name", + "FilterClasses", + "CreatedTime", // + "RawUrl", + "RawDriverClassName", + "RawDriverMajorVersion", + "RawDriverMinorVersion", + "Properties" // + , + "ConnectionActiveCount", + "ConnectionActiveCountMax", + "ConnectionCloseCount", + "ConnectionCommitCount", + "ConnectionRollbackCount" // + , + "ConnectionConnectLastTime", + "ConnectionConnectErrorCount", + "ConnectionConnectErrorLastTime", + "ConnectionConnectErrorLastMessage", + "ConnectionConnectErrorLastStackTrace" // + , + "StatementCreateCount", + "StatementPrepareCount", + "StatementPreCallCount", + "StatementExecuteCount", + "StatementRunningCount" // + , + "StatementConcurrentMax", + "StatementCloseCount", + "StatementErrorCount", + "StatementLastErrorTime", + "StatementLastErrorMessage" // + , + "StatementLastErrorStackTrace", + "StatementExecuteMillisTotal", + "ConnectionConnectingCount", + "StatementExecuteLastTime", + "ResultSetCloseCount" // + , + "ResultSetOpenCount", + "ResultSetOpenningCount", + "ResultSetOpenningMax", + "ResultSetFetchRowCount", + "ResultSetLastOpenTime" // + , + "ResultSetErrorCount", + "ResultSetOpenningMillisTotal", + "ResultSetLastErrorTime", + "ResultSetLastErrorMessage", + "ResultSetLastErrorStackTrace", + "ConnectionConnectCount", + "ConnectionErrorLastMessage", + "ConnectionErrorLastStackTrace", + "ConnectionConnectMillisTotal", + "ConnectionConnectingCountMax" // + , + "ConnectionConnectMillisMax", + "ConnectionErrorLastTime", + "ConnectionAliveMillisMax", + "ConnectionAliveMillisMin" // // - , "ConnectionCount_Alive_0_1_Seconds", "ConnectionCount_Alive_1_5_Seconds", "ConnectionCount_Alive_5_10_Seconds", "ConnectionCount_Alive_10_30_Seconds", "ConnectionCount_Alive_30_60_Seconds" // - , "ConnectionCount_Alive_1_5_Minutes", "ConnectionCount_Alive_5_10_Minutes", "ConnectionCount_Alive_10_30_Minutes", "ConnectionCount_Alive_30_60_Minutes", "ConnectionCount_Alive_1_6_Hours" // - , "ConnectionCount_Alive_6_24_Hours", "ConnectionCount_Alive_1_7_Day", "ConnectionCount_Alive_7_30_Day", "ConnectionCount_Alive_30_90_Day", "ConnectionCount_Alive_90_more_Day" // + , + "ConnectionCount_Alive_0_1_Seconds", + "ConnectionCount_Alive_1_5_Seconds", + "ConnectionCount_Alive_5_10_Seconds", + "ConnectionCount_Alive_10_30_Seconds", + "ConnectionCount_Alive_30_60_Seconds" // + , + "ConnectionCount_Alive_1_5_Minutes", + "ConnectionCount_Alive_5_10_Minutes", + "ConnectionCount_Alive_10_30_Minutes", + "ConnectionCount_Alive_30_60_Minutes", + "ConnectionCount_Alive_1_6_Hours" // + , + "ConnectionCount_Alive_6_24_Hours", + "ConnectionCount_Alive_1_7_Day", + "ConnectionCount_Alive_7_30_Day", + "ConnectionCount_Alive_30_90_Day", + "ConnectionCount_Alive_90_more_Day" // // - , "StatementExecuteCount_0_1_Millis", "StatementExecuteCount_1_2_Millis", "StatementExecuteCount_2_5_Millis", "StatementExecuteCount_5_10_Millis", "StatementExecuteCount_10_20_Millis" - , "StatementExecuteCount_20_50_Millis", "StatementExecuteCount_50_100_Millis", "StatementExecuteCount_100_200_Millis", "StatementExecuteCount_200_500_Millis", "StatementExecuteCount_500_1000_Millis" - , "StatementExecuteCount_1_2_Seconds", "StatementExecuteCount_2_5_Seconds", "StatementExecuteCount_5_10_Seconds", "StatementExecuteCount_10_30_Seconds", "StatementExecuteCount_30_60_Seconds" - , "StatementExecuteCount_1_2_Minutes", "StatementExecuteCount_2_5_Minutes", "StatementExecuteCount_5_10_Minutes", "StatementExecuteCount_10_30_Minutes", "StatementExecuteCount_30_more_Minutes" + , "StatementExecuteCount_0_1_Millis", "StatementExecuteCount_1_2_Millis", + "StatementExecuteCount_2_5_Millis", "StatementExecuteCount_5_10_Millis", + "StatementExecuteCount_10_20_Millis", "StatementExecuteCount_20_50_Millis", + "StatementExecuteCount_50_100_Millis", "StatementExecuteCount_100_200_Millis", + "StatementExecuteCount_200_500_Millis", "StatementExecuteCount_500_1000_Millis", + "StatementExecuteCount_1_2_Seconds", "StatementExecuteCount_2_5_Seconds", + "StatementExecuteCount_5_10_Seconds", "StatementExecuteCount_10_30_Seconds", + "StatementExecuteCount_30_60_Seconds", "StatementExecuteCount_1_2_Minutes", + "StatementExecuteCount_2_5_Minutes", "StatementExecuteCount_5_10_Minutes", + "StatementExecuteCount_10_30_Minutes", "StatementExecuteCount_30_more_Minutes" // }; String[] indexDescriptions = indexNames; - COMPOSITE_TYPE = new CompositeType("DataSourceStatistic", "DataSource Statistic", indexNames, indexDescriptions, indexTypes); + COMPOSITE_TYPE = new CompositeType("DataSourceStatistic", "DataSource Statistic", indexNames, + indexDescriptions, indexTypes); return COMPOSITE_TYPE; } diff --git a/src/main/java/com/alibaba/druid/stat/JdbcStatementStat.java b/src/main/java/com/alibaba/druid/stat/JdbcStatementStat.java index da14814c96..869785174e 100644 --- a/src/main/java/com/alibaba/druid/stat/JdbcStatementStat.java +++ b/src/main/java/com/alibaba/druid/stat/JdbcStatementStat.java @@ -44,23 +44,23 @@ public class JdbcStatementStat implements JdbcStatementStatMBean { private long lastSampleTime = 0; - private AtomicLong count_0_1_Millis = new AtomicLong(); - private AtomicLong count_1_2_Millis = new AtomicLong(); - private AtomicLong count_2_5_Millis = new AtomicLong(); - private AtomicLong count_5_10_Millis = new AtomicLong(); - private AtomicLong count_10_20_Millis = new AtomicLong(); + private AtomicLong count_0_1_Millis = new AtomicLong(); + private AtomicLong count_1_2_Millis = new AtomicLong(); + private AtomicLong count_2_5_Millis = new AtomicLong(); + private AtomicLong count_5_10_Millis = new AtomicLong(); + private AtomicLong count_10_20_Millis = new AtomicLong(); - private AtomicLong count_20_50_Millis = new AtomicLong(); - private AtomicLong count_50_100_Millis = new AtomicLong(); - private AtomicLong count_100_200_Millis = new AtomicLong(); - private AtomicLong count_200_500_Millis = new AtomicLong(); - private AtomicLong count_500_1000_Millis = new AtomicLong(); + private AtomicLong count_20_50_Millis = new AtomicLong(); + private AtomicLong count_50_100_Millis = new AtomicLong(); + private AtomicLong count_100_200_Millis = new AtomicLong(); + private AtomicLong count_200_500_Millis = new AtomicLong(); + private AtomicLong count_500_1000_Millis = new AtomicLong(); - private AtomicLong count_1_2_Seconds = new AtomicLong(); - private AtomicLong count_2_5_Seconds = new AtomicLong(); - private AtomicLong count_5_10_Seconds = new AtomicLong(); - private AtomicLong count_10_30_Seconds = new AtomicLong(); - private AtomicLong count_30_60_Seconds = new AtomicLong(); + private AtomicLong count_1_2_Seconds = new AtomicLong(); + private AtomicLong count_2_5_Seconds = new AtomicLong(); + private AtomicLong count_5_10_Seconds = new AtomicLong(); + private AtomicLong count_10_30_Seconds = new AtomicLong(); + private AtomicLong count_30_60_Seconds = new AtomicLong(); private AtomicLong count_1_2_minutes = new AtomicLong(); private AtomicLong count_2_5_minutes = new AtomicLong(); @@ -148,7 +148,7 @@ public class JdbcStatementStat implements JdbcStatementStatMBean { count_10_30_Seconds.incrementAndGet(); } else if (nanoSpan < 60 * SECOND) { count_30_60_Seconds.incrementAndGet(); - + } else if (nanoSpan < 2 * MINUTE) { count_1_2_minutes.incrementAndGet(); } else if (nanoSpan < 5 * MINUTE) { diff --git a/src/main/java/com/alibaba/druid/stat/JdbcTraceManager.java b/src/main/java/com/alibaba/druid/stat/JdbcTraceManager.java index 2102a627e0..2c84d44581 100644 --- a/src/main/java/com/alibaba/druid/stat/JdbcTraceManager.java +++ b/src/main/java/com/alibaba/druid/stat/JdbcTraceManager.java @@ -30,18 +30,18 @@ import com.alibaba.druid.filter.trace.TraceEventListener; public class JdbcTraceManager extends NotificationBroadcasterSupport implements JdbcTraceManagerMBean { - public final static Log LOG = LogFactory.getLog(JdbcTraceManager.class); + public final static Log LOG = LogFactory.getLog(JdbcTraceManager.class); - private boolean traceEnable = false; + private boolean traceEnable = false; - private final static JdbcTraceManager instance = new JdbcTraceManager(); + private final static JdbcTraceManager instance = new JdbcTraceManager(); - private final List eventListeners = new ArrayList(); + private final List eventListeners = new ArrayList(); - private final AtomicLong fireEventCount = new AtomicLong(); - private final AtomicLong skipEventCount = new AtomicLong(); + private final AtomicLong fireEventCount = new AtomicLong(); + private final AtomicLong skipEventCount = new AtomicLong(); - private boolean notificationEnable = false; + private boolean notificationEnable = false; private final NotificationTraceEventListener notificationListener = new NotificationTraceEventListener(); public boolean isNotificationEnable() { @@ -87,7 +87,7 @@ public class JdbcTraceManager extends NotificationBroadcasterSupport implements skipEventCount.incrementAndGet(); return; } - + if (isNotificationEnable()) { notificationListener.fireEvent(event); } @@ -111,7 +111,8 @@ public class JdbcTraceManager extends NotificationBroadcasterSupport implements @Override public void fireEvent(TraceEvent event) { - Notification notification = new Notification(event.getEventType(), JdbcTraceManager.class.getName(), sequenceNumber++); + Notification notification = new Notification(event.getEventType(), JdbcTraceManager.class.getName(), + sequenceNumber++); notification.setTimeStamp(event.getEventTime().getTime()); notification.setUserData(event.getContext()); diff --git a/src/main/java/com/alibaba/druid/stat/JdbcTraceManagerMBean.java b/src/main/java/com/alibaba/druid/stat/JdbcTraceManagerMBean.java index 5027360676..a738ed15ad 100644 --- a/src/main/java/com/alibaba/druid/stat/JdbcTraceManagerMBean.java +++ b/src/main/java/com/alibaba/druid/stat/JdbcTraceManagerMBean.java @@ -15,7 +15,6 @@ */ package com.alibaba.druid.stat; - public interface JdbcTraceManagerMBean { void setNotificationEnable(boolean notificationEnable); diff --git a/src/main/java/com/alibaba/druid/support/spring/DruidLobCreator.java b/src/main/java/com/alibaba/druid/support/spring/DruidLobCreator.java index 0f8f75fec0..5fd5d2f0a2 100644 --- a/src/main/java/com/alibaba/druid/support/spring/DruidLobCreator.java +++ b/src/main/java/com/alibaba/druid/support/spring/DruidLobCreator.java @@ -22,7 +22,8 @@ public class DruidLobCreator implements LobCreator { } @Override - public void setBlobAsBinaryStream(PreparedStatement ps, int paramIndex, InputStream contentStream, int contentLength) throws SQLException { + public void setBlobAsBinaryStream(PreparedStatement ps, int paramIndex, InputStream contentStream, int contentLength) + throws SQLException { ps.setBlob(paramIndex, contentStream, contentLength); } @@ -34,7 +35,8 @@ public class DruidLobCreator implements LobCreator { } @Override - public void setClobAsAsciiStream(PreparedStatement ps, int paramIndex, InputStream asciiStream, int contentLength) throws SQLException { + public void setClobAsAsciiStream(PreparedStatement ps, int paramIndex, InputStream asciiStream, int contentLength) + throws SQLException { if (asciiStream != null) { Clob clob = ps.getConnection().createClob(); @@ -64,7 +66,8 @@ public class DruidLobCreator implements LobCreator { } @Override - public void setClobAsCharacterStream(PreparedStatement ps, int paramIndex, Reader characterStream, int contentLength) throws SQLException { + public void setClobAsCharacterStream(PreparedStatement ps, int paramIndex, Reader characterStream, int contentLength) + throws SQLException { ps.setClob(paramIndex, characterStream, contentLength); } diff --git a/src/main/java/com/alibaba/druid/util/ConcurrentIdentityHashMap.java b/src/main/java/com/alibaba/druid/util/ConcurrentIdentityHashMap.java index 3deb6a62b9..20c046031e 100644 --- a/src/main/java/com/alibaba/druid/util/ConcurrentIdentityHashMap.java +++ b/src/main/java/com/alibaba/druid/util/ConcurrentIdentityHashMap.java @@ -607,7 +607,8 @@ public final class ConcurrentIdentityHashMap extends AbstractMap imp * @param m the map */ public ConcurrentIdentityHashMap(Map m){ - this(Math.max((int) (m.size() / DEFAULT_LOAD_FACTOR) + 1, DEFAULT_INITIAL_CAPACITY), DEFAULT_LOAD_FACTOR, DEFAULT_CONCURRENCY_LEVEL); + this(Math.max((int) (m.size() / DEFAULT_LOAD_FACTOR) + 1, DEFAULT_INITIAL_CAPACITY), DEFAULT_LOAD_FACTOR, + DEFAULT_CONCURRENCY_LEVEL); putAll(m); } diff --git a/src/main/java/com/alibaba/druid/util/DruidLoaderUtils.java b/src/main/java/com/alibaba/druid/util/DruidLoaderUtils.java index 74eff19f92..1170b83ad4 100644 --- a/src/main/java/com/alibaba/druid/util/DruidLoaderUtils.java +++ b/src/main/java/com/alibaba/druid/util/DruidLoaderUtils.java @@ -31,9 +31,11 @@ import com.alibaba.druid.proxy.config.AbstractDruidFilterConfig; * @author gang.su */ public class DruidLoaderUtils { + private final static Log LOG = LogFactory.getLog(DruidLoaderUtils.class); - - public static void loadFilter(List filterList, List druidFilterConfigList) throws SQLException { + + public static void loadFilter(List filterList, List druidFilterConfigList) + throws SQLException { for (Iterator iterator = druidFilterConfigList.iterator(); iterator.hasNext();) { AbstractDruidFilterConfig druidFilterConfig = iterator.next(); String filterItem = druidFilterConfig.getClazz(); diff --git a/src/main/java/com/alibaba/druid/util/JMXUtils.java b/src/main/java/com/alibaba/druid/util/JMXUtils.java index ca8ba8826a..e1f062e55f 100644 --- a/src/main/java/com/alibaba/druid/util/JMXUtils.java +++ b/src/main/java/com/alibaba/druid/util/JMXUtils.java @@ -66,13 +66,16 @@ public final class JMXUtils { private static final String[] THROWABLE_COMPOSITE_INDEX_NAMES = { "message", "class", "stackTrace" }; private static final String[] THROWABLE_COMPOSITE_INDEX_DESCRIPTIONS = { "message", "class", "stackTrace" }; - private static final OpenType[] THROWABLE_COMPOSITE_INDEX_TYPES = new OpenType[] { SimpleType.STRING, SimpleType.STRING, SimpleType.STRING }; + private static final OpenType[] THROWABLE_COMPOSITE_INDEX_TYPES = new OpenType[] { SimpleType.STRING, + SimpleType.STRING, SimpleType.STRING }; private static CompositeType THROWABLE_COMPOSITE_TYPE = null; public static CompositeType getThrowableCompositeType() throws JMException { if (THROWABLE_COMPOSITE_TYPE == null) { - THROWABLE_COMPOSITE_TYPE = new CompositeType("Throwable", "Throwable", THROWABLE_COMPOSITE_INDEX_NAMES, THROWABLE_COMPOSITE_INDEX_DESCRIPTIONS, THROWABLE_COMPOSITE_INDEX_TYPES); + THROWABLE_COMPOSITE_TYPE = new CompositeType("Throwable", "Throwable", THROWABLE_COMPOSITE_INDEX_NAMES, + THROWABLE_COMPOSITE_INDEX_DESCRIPTIONS, + THROWABLE_COMPOSITE_INDEX_TYPES); } return THROWABLE_COMPOSITE_TYPE; diff --git a/src/test/java/com/alibaba/druid/TestReplaceLicense.java b/src/test/java/com/alibaba/druid/TestReplaceLicense.java index 33ed1a2a2f..915fa2706e 100644 --- a/src/test/java/com/alibaba/druid/TestReplaceLicense.java +++ b/src/test/java/com/alibaba/druid/TestReplaceLicense.java @@ -40,7 +40,8 @@ public class TestReplaceLicense extends TestCase { reader.close(); System.out.println(license); - lineSeparator = "\n"; //(String) java.security.AccessController.doPrivileged(new sun.security.action.GetPropertyAction("line.separator")); + lineSeparator = "\n"; // (String) java.security.AccessController.doPrivileged(new + // sun.security.action.GetPropertyAction("line.separator")); } public void test_0() throws Exception { diff --git a/src/test/java/com/alibaba/druid/TestTraceFilter.java b/src/test/java/com/alibaba/druid/TestTraceFilter.java index 268453c077..26101b22d6 100644 --- a/src/test/java/com/alibaba/druid/TestTraceFilter.java +++ b/src/test/java/com/alibaba/druid/TestTraceFilter.java @@ -16,9 +16,9 @@ public class TestTraceFilter extends TestCase { DruidDataSource dataSource = new DruidDataSource(); dataSource.setFilters("stat,trace"); dataSource.setUrl("jdbc:mock:"); - + JMXUtils.register("com.alibaba.dragoon:type=JdbcTraceManager", JdbcTraceManager.getInstance()); - + for (int i = 0; i < 1000; ++i) { Connection conn = dataSource.getConnection(); Statement stmt = conn.createStatement(); @@ -27,7 +27,7 @@ public class TestTraceFilter extends TestCase { rs.close(); stmt.close(); conn.close(); - + Thread.sleep(1000); } } diff --git a/src/test/java/com/alibaba/druid/benckmark/BenchmarkExecutor.java b/src/test/java/com/alibaba/druid/benckmark/BenchmarkExecutor.java index 4a7cad4388..375811b233 100644 --- a/src/test/java/com/alibaba/druid/benckmark/BenchmarkExecutor.java +++ b/src/test/java/com/alibaba/druid/benckmark/BenchmarkExecutor.java @@ -98,8 +98,8 @@ public class BenchmarkExecutor { } NumberFormat format = NumberFormat.getInstance(); - System.out.println("SUM\t" + benchmarkCase.getName() + "\t" + sqlExec.getName() + "\t" + format.format(millis) + "\tYoungGC " + youngGC + "\tFullGC " - + fullGC); + System.out.println("SUM\t" + benchmarkCase.getName() + "\t" + sqlExec.getName() + "\t" + format.format(millis) + + "\tYoungGC " + youngGC + "\tFullGC " + fullGC); } public void handleResult(SQLExecutor sqlExec, Result result) { @@ -108,8 +108,8 @@ public class BenchmarkExecutor { return; } NumberFormat format = NumberFormat.getInstance(); - System.out.println(result.getName() + "\t" + sqlExec.getName() + "\t" + format.format(result.getMillis()) + "\tYoungGC " + result.getYoungGC() - + "\tFullGC " + result.getFullGC()); + System.out.println(result.getName() + "\t" + sqlExec.getName() + "\t" + format.format(result.getMillis()) + + "\tYoungGC " + result.getYoungGC() + "\tFullGC " + result.getFullGC()); } private Result executeLoop(SQLExecutor sqlExec, BenchmarkCase benchmarkCase) { diff --git a/src/test/java/com/alibaba/druid/benckmark/sqlcase/SelectEmptyTable.java b/src/test/java/com/alibaba/druid/benckmark/sqlcase/SelectEmptyTable.java index 538a7f9885..565bc08df1 100644 --- a/src/test/java/com/alibaba/druid/benckmark/sqlcase/SelectEmptyTable.java +++ b/src/test/java/com/alibaba/druid/benckmark/sqlcase/SelectEmptyTable.java @@ -39,7 +39,8 @@ public class SelectEmptyTable extends BenchmarkCase { tableName = "T_" + System.currentTimeMillis(); - createTableSql = "CREATE TABLE " + tableName + "(F1 INT, F2 INT, F3 INT, F4 INT, F5 INT, F6 INT, F7 INT, F8 INT, F9 INT)"; + createTableSql = "CREATE TABLE " + tableName + + "(F1 INT, F2 INT, F3 INT, F4 INT, F5 INT, F6 INT, F7 INT, F8 INT, F9 INT)"; dropTableSql = "DROP TABLE " + tableName; sql = "SELECT * FROM T_" + tableName; } diff --git a/src/test/java/com/alibaba/druid/bvt/mock/MockExecuteTest.java b/src/test/java/com/alibaba/druid/bvt/mock/MockExecuteTest.java index bdfb2dff5e..46dac9db25 100644 --- a/src/test/java/com/alibaba/druid/bvt/mock/MockExecuteTest.java +++ b/src/test/java/com/alibaba/druid/bvt/mock/MockExecuteTest.java @@ -51,57 +51,57 @@ public class MockExecuteTest extends TestCase { stmt.close(); conn.close(); } - + public void test_3() throws Exception { Connection conn = DriverManager.getConnection("jdbc:mock:"); Statement stmt = conn.createStatement(); - + ResultSet rs = stmt.executeQuery("SELECT NOW() FROM DUAL"); Assert.assertTrue(rs.next()); Assert.assertTrue(rs.getObject(1) instanceof Timestamp); rs.close(); - + stmt.close(); conn.close(); } - + public void test_4() throws Exception { Connection conn = DriverManager.getConnection("jdbc:mock:"); Statement stmt = conn.createStatement(); - + ResultSet rs = stmt.executeQuery("SELECT 'ABCDE' FROM DUAL"); Assert.assertTrue(rs.next()); Assert.assertEquals("ABCDE", rs.getString(1)); rs.close(); - + stmt.close(); conn.close(); } - + public void test_5() throws Exception { Connection conn = DriverManager.getConnection("jdbc:mock:"); Statement stmt = conn.createStatement(); - + ResultSet rs = stmt.executeQuery("SELECT true FROM DUAL"); Assert.assertTrue(rs.next()); Assert.assertEquals(true, rs.getBoolean(1)); - + rs.close(); - + stmt.close(); conn.close(); } - + public void test_6() throws Exception { Connection conn = DriverManager.getConnection("jdbc:mock:"); Statement stmt = conn.createStatement(); - + ResultSet rs = stmt.executeQuery("SELECT false FROM DUAL"); Assert.assertTrue(rs.next()); Assert.assertEquals(false, rs.getBoolean(1)); - + rs.close(); - + stmt.close(); conn.close(); } diff --git a/src/test/java/com/alibaba/druid/bvt/pool/Case0.java b/src/test/java/com/alibaba/druid/bvt/pool/Case0.java index 55658c9739..6367735fd1 100644 --- a/src/test/java/com/alibaba/druid/bvt/pool/Case0.java +++ b/src/test/java/com/alibaba/druid/bvt/pool/Case0.java @@ -15,12 +15,12 @@ public class Case0 extends TestCase { public void test_0() throws Exception { final DruidDataSource dataSource = new DruidDataSource(); - + dataSource.setDriver(new MockDriver() { - + }); dataSource.setUrl("jdbc:mock:"); - + dataSource.setMinIdle(0); dataSource.setMaxActive(2); dataSource.setMaxIdle(2); @@ -32,6 +32,7 @@ public class Case0 extends TestCase { final CountDownLatch completeLatch = new CountDownLatch(1); final AtomicInteger waitCount = new AtomicInteger(); Thread t = new Thread() { + public void run() { try { startLatch.countDown(); @@ -39,7 +40,7 @@ public class Case0 extends TestCase { Connection conn = dataSource.getConnection(); waitCount.decrementAndGet(); conn.close(); - + completeLatch.countDown(); } catch (Exception e) { e.printStackTrace(); @@ -47,14 +48,14 @@ public class Case0 extends TestCase { } }; t.start(); - + startLatch.await(); Assert.assertFalse(completeLatch.await(1, TimeUnit.SECONDS)); conn1.close(); Assert.assertTrue(completeLatch.await(1, TimeUnit.SECONDS)); conn2.close(); Assert.assertTrue(completeLatch.await(1, TimeUnit.SECONDS)); - + dataSource.close(); } } diff --git a/src/test/java/com/alibaba/druid/bvt/pool/Case1.java b/src/test/java/com/alibaba/druid/bvt/pool/Case1.java index 39bd4fe547..978e67dab7 100644 --- a/src/test/java/com/alibaba/druid/bvt/pool/Case1.java +++ b/src/test/java/com/alibaba/druid/bvt/pool/Case1.java @@ -17,14 +17,15 @@ public class Case1 extends TestCase { final long startTime = System.currentTimeMillis(); final long okTime = startTime + 1000 * 1; - + dataSource.setDriver(new MockDriver() { + @Override public Connection connect(String url, Properties info) throws SQLException { if (System.currentTimeMillis() < okTime) { - throw new SQLException(); + throw new SQLException(); } - + return super.connect(url, info); } }); diff --git a/src/test/java/com/alibaba/druid/bvt/pool/Case2.java b/src/test/java/com/alibaba/druid/bvt/pool/Case2.java index fac94d0bdb..c72a56959f 100644 --- a/src/test/java/com/alibaba/druid/bvt/pool/Case2.java +++ b/src/test/java/com/alibaba/druid/bvt/pool/Case2.java @@ -31,7 +31,6 @@ import com.alibaba.druid.util.JMXUtils; */ public class Case2 extends TestCase { - public void test_singleThread() throws Exception { Class.forName("com.alibaba.druid.mock.MockDriver"); @@ -56,7 +55,7 @@ public class Case2 extends TestCase { for (int i = 0; i < COUNT; ++i) { connections[i] = dataSource.getConnection(); } - + for (int i = 0; i < COUNT; ++i) { connections[i].close(); } diff --git a/src/test/java/com/alibaba/druid/bvt/pool/Case3.java b/src/test/java/com/alibaba/druid/bvt/pool/Case3.java index 385c92f30e..dd2e77d7bd 100644 --- a/src/test/java/com/alibaba/druid/bvt/pool/Case3.java +++ b/src/test/java/com/alibaba/druid/bvt/pool/Case3.java @@ -71,7 +71,7 @@ public class Case3 extends TestCase { error = ex; } Assert.assertNotNull(error); - + dataSource.close(); } } diff --git a/src/test/java/com/alibaba/druid/bvt/pool/PasswordCallbackTest.java b/src/test/java/com/alibaba/druid/bvt/pool/PasswordCallbackTest.java index d6c347056d..29aa834833 100644 --- a/src/test/java/com/alibaba/druid/bvt/pool/PasswordCallbackTest.java +++ b/src/test/java/com/alibaba/druid/bvt/pool/PasswordCallbackTest.java @@ -21,16 +21,17 @@ public class PasswordCallbackTest extends TestCase { Connection conn = dataSource.getConnection(); conn.close(); - + Assert.assertEquals(dataSource.getUrl(), passwordCallback.getUrl()); Assert.assertEquals(dataSource.getConnectProperties(), passwordCallback.getProperties()); } public static class TestPasswordCallback extends PasswordCallback { + private static final long serialVersionUID = 1L; - - private String url; - private Properties properties; + + private String url; + private Properties properties; public TestPasswordCallback(){ super("test", false); diff --git a/src/test/java/com/alibaba/druid/bvt/pool/TestClose_1.java b/src/test/java/com/alibaba/druid/bvt/pool/TestClose_1.java index 8dbc32b9ff..7dd55bd074 100644 --- a/src/test/java/com/alibaba/druid/bvt/pool/TestClose_1.java +++ b/src/test/java/com/alibaba/druid/bvt/pool/TestClose_1.java @@ -23,15 +23,15 @@ public class TestClose_1 extends TestCase { ResultSet rs = stmt.executeQuery(); rs.next(); Assert.assertEquals(false, rs.isClosed()); - + Assert.assertEquals(false, stmt.isClosed()); stmt.close(); Assert.assertEquals(true, stmt.isClosed()); Assert.assertEquals(true, rs.isClosed()); - + PreparedStatement stmt2 = conn.prepareStatement(sql); Assert.assertEquals(false, stmt.isClosed()); - + Assert.assertEquals(stmt, stmt2); conn.close(); @@ -41,7 +41,7 @@ public class TestClose_1 extends TestCase { rs.close(); stmt.close(); - + dataSource.close(); } } diff --git a/src/test/java/com/alibaba/druid/bvt/pool/TestClose_2.java b/src/test/java/com/alibaba/druid/bvt/pool/TestClose_2.java index 961114f5f6..8dff3dfc3b 100644 --- a/src/test/java/com/alibaba/druid/bvt/pool/TestClose_2.java +++ b/src/test/java/com/alibaba/druid/bvt/pool/TestClose_2.java @@ -23,15 +23,15 @@ public class TestClose_2 extends TestCase { ResultSet rs = stmt.executeQuery(); rs.next(); Assert.assertEquals(false, rs.isClosed()); - + Assert.assertEquals(false, stmt.isClosed()); stmt.close(); Assert.assertEquals(true, stmt.isClosed()); Assert.assertEquals(true, rs.isClosed()); - + CallableStatement stmt2 = conn.prepareCall(sql); Assert.assertEquals(false, stmt.isClosed()); - + Assert.assertEquals(stmt, stmt2); conn.close(); @@ -41,7 +41,7 @@ public class TestClose_2 extends TestCase { rs.close(); stmt.close(); - + dataSource.close(); } } diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/BasicTypeTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/BasicTypeTest.java index b9605866c3..e7764988f7 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/BasicTypeTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/BasicTypeTest.java @@ -53,7 +53,9 @@ public class BasicTypeTest extends TestCase { Statement stmt = conn.createStatement(); stmt.execute("CREATE TABLE T_BASIC_TYPE (F1 FLOAT, F2 DOUBLE, F3 REAL, F4 DATE, F5 TIME, F6 SMALLINT, F7 SMALLINT, F8 INTEGER, F9 BIGINT, F10 DECIMAL(9,2), F11 TIMESTAMP, F12 BLOB, F13 VARCHAR(256), F14 VARCHAR(256), F15 VARCHAR(256), F16 VARCHAR(256), F17 SMALLINT)"); stmt.execute("CREATE PROCEDURE BASIC_CALL_0(INOUT F1 FLOAT, INOUT F2 DOUBLE, INOUT F3 REAL, INOUT F4 DATE, INOUT F5 TIME, INOUT F6 SMALLINT, INOUT F7 SMALLINT, INOUT F8 INTEGER, INOUT F9 BIGINT, INOUT F10 DECIMAL(9,2), INOUT F11 TIMESTAMP, INOUT F12 VARCHAR(128) FOR BIT DATA, INOUT F13 VARCHAR(256), INOUT F14 VARCHAR(256), INOUT F15 VARCHAR(256), INOUT F16 VARCHAR(256), INOUT F17 SMALLINT) " - + "LANGUAGE JAVA PARAMETER STYLE JAVA EXTERNAL NAME '" + BasicTypeTest.class.getName() + ".basic_process_0' " + "DYNAMIC RESULT SETS 1"); + + "LANGUAGE JAVA PARAMETER STYLE JAVA EXTERNAL NAME '" + + BasicTypeTest.class.getName() + + ".basic_process_0' " + "DYNAMIC RESULT SETS 1"); stmt.close(); conn.close(); } @@ -123,7 +125,8 @@ public class BasicTypeTest extends TestCase { stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); stmt.close(); - stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE, ResultSet.CLOSE_CURSORS_AT_COMMIT); + stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE, + ResultSet.CLOSE_CURSORS_AT_COMMIT); stmt.setQueryTimeout(stmt.getQueryTimeout()); stmt.setEscapeProcessing(true); stmt.clearBatch(); @@ -249,11 +252,12 @@ public class BasicTypeTest extends TestCase { pstmt = conn.prepareStatement("SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16 FROM T_BASIC_TYPE"); JdbcUtils.close(pstmt); - pstmt = conn.prepareStatement("SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16 FROM T_BASIC_TYPE", new int[] { 1, 2 }); + pstmt = conn.prepareStatement("SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16 FROM T_BASIC_TYPE", + new int[] { 1, 2 }); JdbcUtils.close(pstmt); - pstmt = conn.prepareStatement("SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16 FROM T_BASIC_TYPE", new String[] { - "F1", "F2" }); + pstmt = conn.prepareStatement("SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16 FROM T_BASIC_TYPE", + new String[] { "F1", "F2" }); JdbcUtils.close(pstmt); pstmt = conn.prepareStatement("SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16 FROM T_BASIC_TYPE", @@ -266,7 +270,8 @@ public class BasicTypeTest extends TestCase { JdbcUtils.close(pstmt); pstmt = conn.prepareStatement("SELECT F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16 FROM T_BASIC_TYPE", - ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE, ResultSet.CLOSE_CURSORS_AT_COMMIT); + ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE, + ResultSet.CLOSE_CURSORS_AT_COMMIT); JdbcUtils.close(pstmt); cstmt = conn.prepareCall("CALL BASIC_CALL_0(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?, ?, ?)"); @@ -686,9 +691,10 @@ public class BasicTypeTest extends TestCase { } } - public static void basic_process_0(double[] p1, double[] p2, float[] p3, java.sql.Date[] p4, java.sql.Time[] p5, short[] p6, short[] p7, int[] p8, - long[] p9, BigDecimal[] p10, java.sql.Timestamp[] p11, byte[][] p12, String[] p13, String[] p14, String[] p15, - String[] p16, short[] P17, ResultSet[] p18) { + public static void basic_process_0(double[] p1, double[] p2, float[] p3, java.sql.Date[] p4, java.sql.Time[] p5, + short[] p6, short[] p7, int[] p8, long[] p9, BigDecimal[] p10, + java.sql.Timestamp[] p11, byte[][] p12, String[] p13, String[] p14, + String[] p15, String[] p16, short[] P17, ResultSet[] p18) { // stmt.execute("CREATE TABLE T_BASIC_TYPE (F1 FLOAT, F2 DOUBLE, F3 // REAL, F4 DATE, // F5 TIME, F6 SMALLINT, F7 SMALLINT, F8 INTEGER, F9 BIGINT, F10 diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/BlobTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/BlobTest.java index 33ec4a1d94..453c75dc85 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/BlobTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/BlobTest.java @@ -102,7 +102,8 @@ public class BlobTest extends TestCase { updateCount = pstmt.executeUpdate(); Assert.assertEquals(1, updateCount); - stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE, ResultSet.CLOSE_CURSORS_AT_COMMIT); + stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE, + ResultSet.CLOSE_CURSORS_AT_COMMIT); conn.nativeSQL("SELECT ID, DATA FROM T_BLOB"); // ////// diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/CallStatementTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/CallStatementTest.java index 92e55c4f0a..82355179ca 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/CallStatementTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/CallStatementTest.java @@ -34,20 +34,24 @@ public class CallStatementTest extends TestCase { */ private static final String[] PROCEDURES = { - "CREATE PROCEDURE RETRIEVE_DYNAMIC_RESULTS(number INT) " + "LANGUAGE JAVA PARAMETER STYLE JAVA EXTERNAL NAME '" + CallStatementTest.class.getName() + "CREATE PROCEDURE RETRIEVE_DYNAMIC_RESULTS(number INT) " + + "LANGUAGE JAVA PARAMETER STYLE JAVA EXTERNAL NAME '" + CallStatementTest.class.getName() + ".retrieveDynamicResults' " + "DYNAMIC RESULT SETS 4", - "CREATE PROCEDURE RETRIEVE_CLOSED_RESULT() LANGUAGE JAVA " + "PARAMETER STYLE JAVA EXTERNAL NAME '" + CallStatementTest.class.getName() - + ".retrieveClosedResult' " + "DYNAMIC RESULT SETS 1", + "CREATE PROCEDURE RETRIEVE_CLOSED_RESULT() LANGUAGE JAVA " + "PARAMETER STYLE JAVA EXTERNAL NAME '" + + CallStatementTest.class.getName() + ".retrieveClosedResult' " + "DYNAMIC RESULT SETS 1", - "CREATE PROCEDURE RETRIEVE_EXTERNAL_RESULT(" + "DBNAME VARCHAR(128), DBUSER VARCHAR(128), DBPWD VARCHAR(128)) LANGUAGE JAVA " - + "PARAMETER STYLE JAVA EXTERNAL NAME '" + CallStatementTest.class.getName() + ".retrieveExternalResult' " + "DYNAMIC RESULT SETS 1", + "CREATE PROCEDURE RETRIEVE_EXTERNAL_RESULT(" + + "DBNAME VARCHAR(128), DBUSER VARCHAR(128), DBPWD VARCHAR(128)) LANGUAGE JAVA " + + "PARAMETER STYLE JAVA EXTERNAL NAME '" + CallStatementTest.class.getName() + + ".retrieveExternalResult' " + "DYNAMIC RESULT SETS 1", - "CREATE PROCEDURE PROC_WITH_SIDE_EFFECTS(ret INT) LANGUAGE JAVA " + "PARAMETER STYLE JAVA EXTERNAL NAME '" + CallStatementTest.class.getName() - + ".procWithSideEffects' " + "DYNAMIC RESULT SETS 2", + "CREATE PROCEDURE PROC_WITH_SIDE_EFFECTS(ret INT) LANGUAGE JAVA " + "PARAMETER STYLE JAVA EXTERNAL NAME '" + + CallStatementTest.class.getName() + ".procWithSideEffects' " + "DYNAMIC RESULT SETS 2", - "CREATE PROCEDURE NESTED_RESULT_SETS(proctext VARCHAR(128)) LANGUAGE JAVA " + "PARAMETER STYLE JAVA EXTERNAL NAME '" - + CallStatementTest.class.getName() + ".nestedDynamicResultSets' " + "DYNAMIC RESULT SETS 6" + "CREATE PROCEDURE NESTED_RESULT_SETS(proctext VARCHAR(128)) LANGUAGE JAVA " + + "PARAMETER STYLE JAVA EXTERNAL NAME '" + CallStatementTest.class.getName() + + ".nestedDynamicResultSets' " + "DYNAMIC RESULT SETS 6" }; @@ -131,7 +135,8 @@ public class CallStatementTest extends TestCase { connect.close(); } - public static void retrieveExternalResult(String dbName, String user, String password, ResultSet[] external) throws SQLException { + public static void retrieveExternalResult(String dbName, String user, String password, ResultSet[] external) + throws SQLException { Connection conn = DriverManager.getConnection(create_url); @@ -190,7 +195,8 @@ public class CallStatementTest extends TestCase { conn.close(); } - public static void fivejp(ResultSet[] data1, ResultSet[] data2, ResultSet[] data3, ResultSet[] data4, ResultSet[] data5) throws SQLException { + public static void fivejp(ResultSet[] data1, ResultSet[] data2, ResultSet[] data3, ResultSet[] data4, + ResultSet[] data5) throws SQLException { Connection conn = DriverManager.getConnection("jdbc:default:connection"); @@ -240,7 +246,8 @@ public class CallStatementTest extends TestCase { conn.close(); } - public static void parameter2(int a, java.math.BigDecimal b, java.math.BigDecimal c, java.sql.ResultSet[] rs) throws SQLException { + public static void parameter2(int a, java.math.BigDecimal b, java.math.BigDecimal c, java.sql.ResultSet[] rs) + throws SQLException { Connection conn = DriverManager.getConnection("jdbc:default:connection"); PreparedStatement ps = conn.prepareStatement("insert into PT1 values (?, ?, ?)"); ps.setInt(1, a); @@ -254,7 +261,8 @@ public class CallStatementTest extends TestCase { conn.close(); } - public static void retrieveDynamicResults(int number, ResultSet[] rs1, ResultSet[] rs2, ResultSet[] rs3, ResultSet[] rs4) throws SQLException { + public static void retrieveDynamicResults(int number, ResultSet[] rs1, ResultSet[] rs2, ResultSet[] rs3, + ResultSet[] rs4) throws SQLException { Connection c = DriverManager.getConnection("jdbc:default:connection"); if (number > 0) { rs1[0] = c.createStatement().executeQuery("VALUES(1)"); diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/ClobTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/ClobTest.java index fd43279aa7..84d6cb3574 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/ClobTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/ClobTest.java @@ -102,7 +102,8 @@ public class ClobTest extends TestCase { updateCount = pstmt.executeUpdate(); Assert.assertEquals(1, updateCount); - stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE, ResultSet.CLOSE_CURSORS_AT_COMMIT); + stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE, + ResultSet.CLOSE_CURSORS_AT_COMMIT); // ////// rs = stmt.executeQuery("SELECT ID, DATA FROM T_CLOB"); diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/DruidDriverTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/DruidDriverTest.java index e43054d177..651b7ca422 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/DruidDriverTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/DruidDriverTest.java @@ -85,7 +85,8 @@ public class DruidDriverTest extends TestCase { public void test_getRawDriverClassName() throws Exception { Assert.assertEquals("com.mysql.jdbc.Driver", JdbcUtils.getDriverClassName("jdbc:mysql:")); Assert.assertEquals("oracle.jdbc.driver.OracleDriver", JdbcUtils.getDriverClassName("jdbc:oracle:")); - Assert.assertEquals("com.microsoft.jdbc.sqlserver.SQLServerDriver", JdbcUtils.getDriverClassName("jdbc:microsoft:")); + Assert.assertEquals("com.microsoft.jdbc.sqlserver.SQLServerDriver", + JdbcUtils.getDriverClassName("jdbc:microsoft:")); Assert.assertEquals("org.postgresql.Driver", JdbcUtils.getDriverClassName("jdbc:postgresql:xx")); Assert.assertEquals("net.sourceforge.jtds.jdbc.Driver", JdbcUtils.getDriverClassName("jdbc:jtds:")); { @@ -185,7 +186,8 @@ public class DruidDriverTest extends TestCase { Exception error = null; try { driver.connect("jdbc:wrap-jdbc:filters=" + PrivateJdbcFilterAdapter.class.getName() - + ":name=driverWrapperTest:jdbc:derby:memory:driverWrapperTestDB;create=true", new Properties()).close(); + + ":name=driverWrapperTest:jdbc:derby:memory:driverWrapperTestDB;create=true", + new Properties()).close(); } catch (Exception ex) { error = ex; } @@ -195,7 +197,8 @@ public class DruidDriverTest extends TestCase { Exception error = null; try { driver.connect("jdbc:wrap-jdbc:filters=" + InitErrorJdbcFilterAdapter.class.getName() - + ":name=driverWrapperTest:jdbc:derby:memory:driverWrapperTestDB;create=true", new Properties()).close(); + + ":name=driverWrapperTest:jdbc:derby:memory:driverWrapperTestDB;create=true", + new Properties()).close(); } catch (Exception ex) { error = ex; } diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/JdbcFilterEventAdapterTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/JdbcFilterEventAdapterTest.java index a38f0caa0c..2f2c00a6cd 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/JdbcFilterEventAdapterTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/JdbcFilterEventAdapterTest.java @@ -105,7 +105,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public boolean statement_execute(StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public boolean statement_execute(StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { throw new SQLException(); } }; @@ -122,7 +123,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public boolean statement_execute(StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public boolean statement_execute(StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { throw new RuntimeException(); } }; @@ -139,7 +141,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public boolean statement_execute(StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public boolean statement_execute(StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { throw new Error(); } }; @@ -158,7 +161,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public boolean statement_execute(StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public boolean statement_execute(StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { throw new SQLException(); } }; @@ -175,7 +179,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public boolean statement_execute(StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public boolean statement_execute(StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { throw new RuntimeException(); } }; @@ -192,7 +197,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public boolean statement_execute(StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public boolean statement_execute(StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { throw new Error(); } }; @@ -211,7 +217,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public boolean statement_execute(StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public boolean statement_execute(StatementProxy statement, String sql, String columnNames[]) + throws SQLException { throw new SQLException(); } }; @@ -228,7 +235,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public boolean statement_execute(StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public boolean statement_execute(StatementProxy statement, String sql, String columnNames[]) + throws SQLException { throw new RuntimeException(); } }; @@ -245,7 +253,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public boolean statement_execute(StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public boolean statement_execute(StatementProxy statement, String sql, String columnNames[]) + throws SQLException { throw new Error(); } }; @@ -478,7 +487,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public int statement_executeUpdate(StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public int statement_executeUpdate(StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { throw new SQLException(); } }; @@ -495,7 +505,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public int statement_executeUpdate(StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public int statement_executeUpdate(StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { throw new RuntimeException(); } }; @@ -512,7 +523,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public int statement_executeUpdate(StatementProxy statement, String sql, int autoGeneratedKeys) throws SQLException { + public int statement_executeUpdate(StatementProxy statement, String sql, int autoGeneratedKeys) + throws SQLException { throw new Error(); } }; @@ -531,7 +543,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public int statement_executeUpdate(StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public int statement_executeUpdate(StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { throw new SQLException(); } }; @@ -548,7 +561,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public int statement_executeUpdate(StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public int statement_executeUpdate(StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { throw new RuntimeException(); } }; @@ -565,7 +579,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public int statement_executeUpdate(StatementProxy statement, String sql, int columnIndexes[]) throws SQLException { + public int statement_executeUpdate(StatementProxy statement, String sql, int columnIndexes[]) + throws SQLException { throw new Error(); } }; @@ -584,7 +599,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public int statement_executeUpdate(StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public int statement_executeUpdate(StatementProxy statement, String sql, String columnNames[]) + throws SQLException { throw new SQLException(); } }; @@ -601,7 +617,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public int statement_executeUpdate(StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public int statement_executeUpdate(StatementProxy statement, String sql, String columnNames[]) + throws SQLException { throw new RuntimeException(); } }; @@ -618,7 +635,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public int statement_executeUpdate(StatementProxy statement, String sql, String columnNames[]) throws SQLException { + public int statement_executeUpdate(StatementProxy statement, String sql, String columnNames[]) + throws SQLException { throw new Error(); } }; @@ -715,7 +733,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public ResultSetProxy preparedStatement_executeQuery(PreparedStatementProxy statement) throws SQLException { + public ResultSetProxy preparedStatement_executeQuery(PreparedStatementProxy statement) + throws SQLException { throw new SQLException(); } }; @@ -732,7 +751,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public ResultSetProxy preparedStatement_executeQuery(PreparedStatementProxy statement) throws SQLException { + public ResultSetProxy preparedStatement_executeQuery(PreparedStatementProxy statement) + throws SQLException { throw new RuntimeException(); } }; @@ -749,7 +769,8 @@ public class JdbcFilterEventAdapterTest extends TestCase { { FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) { - public ResultSetProxy preparedStatement_executeQuery(PreparedStatementProxy statement) throws SQLException { + public ResultSetProxy preparedStatement_executeQuery(PreparedStatementProxy statement) + throws SQLException { throw new Error(); } }; diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/PrecallTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/PrecallTest.java index a21f21654d..7685b84741 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/PrecallTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/PrecallTest.java @@ -77,11 +77,12 @@ public class PrecallTest extends TestCase { try { conn = DriverManager.getConnection(create_url); - cstmt = conn.prepareCall("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?, ?)", ResultSet.FETCH_FORWARD, ResultSet.CONCUR_READ_ONLY); + cstmt = conn.prepareCall("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?, ?)", ResultSet.FETCH_FORWARD, + ResultSet.CONCUR_READ_ONLY); cstmt.close(); - cstmt = conn.prepareCall("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?, ?)", ResultSet.FETCH_FORWARD, ResultSet.CONCUR_READ_ONLY, - ResultSet.CLOSE_CURSORS_AT_COMMIT); + cstmt = conn.prepareCall("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?, ?)", ResultSet.FETCH_FORWARD, + ResultSet.CONCUR_READ_ONLY, ResultSet.CLOSE_CURSORS_AT_COMMIT); cstmt.close(); cstmt = conn.prepareCall("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?, ?)"); diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/PreparedStatementTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/PreparedStatementTest.java index d7c2b1a29b..6462e254da 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/PreparedStatementTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/PreparedStatementTest.java @@ -77,7 +77,8 @@ public class PreparedStatementTest extends TestCase { try { conn = DriverManager.getConnection(create_url); - pstmt = conn.prepareStatement("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (?, ?, ?)", Statement.RETURN_GENERATED_KEYS); + pstmt = conn.prepareStatement("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (?, ?, ?)", + Statement.RETURN_GENERATED_KEYS); pstmt.setShort(1, (short) 1); pstmt.setString(2, "A"); @@ -164,7 +165,8 @@ public class PreparedStatementTest extends TestCase { } pstmt.execute(); - pstmt2 = conn.prepareStatement("SELECT * FROM T_PRE_STMT_TEST ORDER BY 2", ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); + pstmt2 = conn.prepareStatement("SELECT * FROM T_PRE_STMT_TEST ORDER BY 2", ResultSet.TYPE_SCROLL_SENSITIVE, + ResultSet.CONCUR_UPDATABLE); rs = pstmt2.executeQuery(); rs.getCursorName(); rs.clearWarnings(); @@ -194,14 +196,15 @@ public class PreparedStatementTest extends TestCase { rs.last(); rs.close(); - pstmt2 = conn.prepareStatement("SELECT * FROM T_PRE_STMT_TEST ORDER BY 2", ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); + pstmt2 = conn.prepareStatement("SELECT * FROM T_PRE_STMT_TEST ORDER BY 2", ResultSet.TYPE_SCROLL_SENSITIVE, + ResultSet.CONCUR_UPDATABLE); rs = pstmt2.executeQuery(); rs.first(); rs.last(); rs.close(); - pstmt2 = conn.prepareStatement("SELECT * FROM T_PRE_STMT_TEST ORDER BY 2", ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE, - ResultSet.CLOSE_CURSORS_AT_COMMIT); + pstmt2 = conn.prepareStatement("SELECT * FROM T_PRE_STMT_TEST ORDER BY 2", ResultSet.TYPE_SCROLL_SENSITIVE, + ResultSet.CONCUR_UPDATABLE, ResultSet.CLOSE_CURSORS_AT_COMMIT); rs = pstmt2.executeQuery(); rs.first(); rs.last(); @@ -282,7 +285,8 @@ public class PreparedStatementTest extends TestCase { JdbcUtils.printResultSet(rs, System.out); rs.close(); - pstmt2 = conn.prepareStatement("SELECT * FROM T_PRE_STMT_TEST ORDER BY 2", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); + pstmt2 = conn.prepareStatement("SELECT * FROM T_PRE_STMT_TEST ORDER BY 2", + ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); rs = pstmt2.executeQuery(); rs.next(); try { diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/StatementTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/StatementTest.java index 91b3e01c00..2e0a6bde71 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/StatementTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/StatementTest.java @@ -72,13 +72,18 @@ public class StatementTest extends TestCase { stmt = conn.createStatement(); stmt.execute("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (1, 'A', NULL)"); - stmt.execute("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (11, 'A1', NULL)", Statement.NO_GENERATED_KEYS); + stmt.execute("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (11, 'A1', NULL)", + Statement.NO_GENERATED_KEYS); stmt.execute("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (12, 'A2', NULL)", new int[] { 1 }); - stmt.execute("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (12, 'A3', NULL)", new String[] { "ID" }); + stmt.execute("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (12, 'A3', NULL)", + new String[] { "ID" }); stmt.executeUpdate("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (2, 'B', NULL)"); - stmt.executeUpdate("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (3, 'C', NULL)", Statement.NO_GENERATED_KEYS); - stmt.executeUpdate("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (4, 'D', NULL)", new int[] { 1 }); - stmt.executeUpdate("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (5, 'E', NULL)", new String[] { "ID" }); + stmt.executeUpdate("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (3, 'C', NULL)", + Statement.NO_GENERATED_KEYS); + stmt.executeUpdate("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (4, 'D', NULL)", + new int[] { 1 }); + stmt.executeUpdate("INSERT INTO T_PRE_STMT_TEST (ID, NAME, BIRTHDATE) VALUES (5, 'E', NULL)", + new String[] { "ID" }); try { stmt.cancel(); } catch (SQLFeatureNotSupportedException ex) { diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/config/DruidConfigLoaderTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/config/DruidConfigLoaderTest.java index ecd3830b82..a0422cebbf 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/config/DruidConfigLoaderTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/config/DruidConfigLoaderTest.java @@ -45,7 +45,8 @@ public class DruidConfigLoaderTest extends TestCase { Assert.assertEquals("gbk", druidConfig.getClientEncoding()); Assert.assertEquals("utf8", druidConfig.getServerEncoding()); } else if ("stat".equalsIgnoreCase(abstractDruidFilterConfig.getName())) { - Assert.assertEquals("com.alibaba.druid.proxy.filter.stat.StatFilter", abstractDruidFilterConfig.getClazz()); + Assert.assertEquals("com.alibaba.druid.proxy.filter.stat.StatFilter", + abstractDruidFilterConfig.getClazz()); } } diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/utils/DruidLoaderUtilsTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/utils/DruidLoaderUtilsTest.java index 68971e7408..ac3b4917ef 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/utils/DruidLoaderUtilsTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/utils/DruidLoaderUtilsTest.java @@ -79,7 +79,8 @@ public class DruidLoaderUtilsTest extends TestCase { DruidLoaderUtils.loadFilter(filters, filterItem); filterConfig = filters.get(0); Assert.assertNotNull(filterConfig); - Assert.assertEquals("com.alibaba.druid.filter.encoding.EncodingConvertFilter", filterConfig.getClass().getName()); + Assert.assertEquals("com.alibaba.druid.filter.encoding.EncodingConvertFilter", + filterConfig.getClass().getName()); // 判定重复 filterItem = "stat"; filters.clear(); @@ -114,8 +115,10 @@ public class DruidLoaderUtilsTest extends TestCase { Assert.assertEquals(null, DruidLoaderUtils.loadClass2(null)); Assert.assertEquals(null, DruidLoaderUtils.loadClass("xxx")); Assert.assertEquals(null, DruidLoaderUtils.loadClass2("xxx")); - Assert.assertEquals(PublicJdbcFilterAdapter.class, DruidLoaderUtils.loadClass(PublicJdbcFilterAdapter.class.getName())); - Assert.assertEquals(PublicJdbcFilterAdapter.class, DruidLoaderUtils.loadClass2(PublicJdbcFilterAdapter.class.getName())); + Assert.assertEquals(PublicJdbcFilterAdapter.class, + DruidLoaderUtils.loadClass(PublicJdbcFilterAdapter.class.getName())); + Assert.assertEquals(PublicJdbcFilterAdapter.class, + DruidLoaderUtils.loadClass2(PublicJdbcFilterAdapter.class.getName())); Assert.assertNull(DruidLoaderUtils.loadClass(null)); Assert.assertNull(DruidLoaderUtils.loadClass("")); } diff --git a/src/test/java/com/alibaba/druid/pool/Case3.java b/src/test/java/com/alibaba/druid/pool/Case3.java index ec12617c8a..a42e26d700 100644 --- a/src/test/java/com/alibaba/druid/pool/Case3.java +++ b/src/test/java/com/alibaba/druid/pool/Case3.java @@ -11,7 +11,6 @@ import com.alibaba.druid.pool.DruidDataSource; public class Case3 extends TestCase { - public void test_1() throws Exception { DruidDataSource dataSource = new DruidDataSource(); dataSource.setUrl("jdbc:mysql://10.20.153.104:3306/druid2"); @@ -24,10 +23,10 @@ public class Case3 extends TestCase { rs.next(); conn.close(); - + Assert.assertEquals(true, stmt.isClosed()); Assert.assertEquals(true, rs.isClosed()); - + rs.close(); stmt.close(); diff --git a/src/test/java/com/alibaba/druid/pool/DruidTest.java b/src/test/java/com/alibaba/druid/pool/DruidTest.java index e7a04dfd2f..4177392bd8 100644 --- a/src/test/java/com/alibaba/druid/pool/DruidTest.java +++ b/src/test/java/com/alibaba/druid/pool/DruidTest.java @@ -12,98 +12,91 @@ import com.alibaba.druid.pool.DruidDataSource; public class DruidTest { - private static DruidDataSource DS; + private static DruidDataSource DS; - public DruidTest(String connectURI) { - initDS(connectURI); - } + public DruidTest(String connectURI){ + initDS(connectURI); + } - public DruidTest(String connectURI, String username, String pswd, - String driverClass, int initialSize, int maxActive, int maxIdle, - int minIdle, int maxWait) { - initDS(connectURI, username, pswd, driverClass, initialSize, maxActive, - minIdle, maxIdle, maxWait); - } + public DruidTest(String connectURI, String username, String pswd, String driverClass, int initialSize, + int maxActive, int maxIdle, int minIdle, int maxWait){ + initDS(connectURI, username, pswd, driverClass, initialSize, maxActive, minIdle, maxIdle, maxWait); + } - public Connection getConn() { - Connection con = null; - if (DS != null) { - try { - con = DS.getConnection(); - } catch (Exception e) { - e.printStackTrace(System.err); - } + public Connection getConn() { + Connection con = null; + if (DS != null) { + try { + con = DS.getConnection(); + } catch (Exception e) { + e.printStackTrace(System.err); + } - try { - con.setAutoCommit(false); - } catch (SQLException e) { - e.printStackTrace(); - } - return con; - } - return con; - } + try { + con.setAutoCommit(false); + } catch (SQLException e) { + e.printStackTrace(); + } + return con; + } + return con; + } - public static void initDS(String connectURI, String username, String pswd, - String driverClass, int initialSize, int maxActive, int maxIdle, - int minIdle, int maxWait) { - DruidDataSource ds = new DruidDataSource(); - ds.setDriverClassName(driverClass); - ds.setUsername(username); - ds.setPassword(pswd); - ds.setUrl(connectURI); - ds.setInitialSize(initialSize); // 初始的连接数; - ds.setMaxActive(maxActive); - ds.setMaxIdle(maxIdle); - ds.setMinIdle(minIdle); - ds.setMaxWait(maxWait); - DS = ds; - } + public static void initDS(String connectURI, String username, String pswd, String driverClass, int initialSize, + int maxActive, int maxIdle, int minIdle, int maxWait) { + DruidDataSource ds = new DruidDataSource(); + ds.setDriverClassName(driverClass); + ds.setUsername(username); + ds.setPassword(pswd); + ds.setUrl(connectURI); + ds.setInitialSize(initialSize); // 初始的连接数; + ds.setMaxActive(maxActive); + ds.setMaxIdle(maxIdle); + ds.setMinIdle(minIdle); + ds.setMaxWait(maxWait); + DS = ds; + } - public static void initDS(String connectURI) { - initDS(connectURI, "root", "12345", "com.mysql.jdbc.Driver", 40, 40, - 40, 10, 5); - } + public static void initDS(String connectURI) { + initDS(connectURI, "root", "12345", "com.mysql.jdbc.Driver", 40, 40, 40, 10, 5); + } - public static void main(String[] args) throws IOException, SQLException { + public static void main(String[] args) throws IOException, SQLException { - DruidTest db = new DruidTest("jdbc:mysql://10.20.141.150:8066/amoeba"); - Connection conn = null; - Statement stmt = null; - ResultSet rs = null; + DruidTest db = new DruidTest("jdbc:mysql://10.20.141.150:8066/amoeba"); + Connection conn = null; + Statement stmt = null; + ResultSet rs = null; - FileWriter fileWriter = new FileWriter("D:\\data.txt"); - try{ - conn = db.getConn(); - }catch(Exception e){ - System.out.println(e.getMessage()); - } - - long sum = 0; - for (int i = 1; i < 10; i++) { - try { - stmt = conn.createStatement(); - Date start = new Date(); - rs = stmt - .executeQuery("select * from offer where member_id = 'forwd251'"); - Date end = new Date(); - sum = sum + (end.getTime() - start.getTime()); - fileWriter.write(String.valueOf((end.getTime() - start - .getTime()))); - fileWriter.write("/\n"); + FileWriter fileWriter = new FileWriter("D:\\data.txt"); + try { + conn = db.getConn(); + } catch (Exception e) { + System.out.println(e.getMessage()); + } - } catch (SQLException e) { - e.printStackTrace(); - } - } - System.out.println((float) sum / 10); - - - conn.close(); - stmt.close(); - rs.close(); - fileWriter.flush(); - fileWriter.close(); - } + long sum = 0; + for (int i = 1; i < 10; i++) { + try { + stmt = conn.createStatement(); + Date start = new Date(); + rs = stmt.executeQuery("select * from offer where member_id = 'forwd251'"); + Date end = new Date(); + sum = sum + (end.getTime() - start.getTime()); + fileWriter.write(String.valueOf((end.getTime() - start.getTime()))); + fileWriter.write("/\n"); + + } catch (SQLException e) { + e.printStackTrace(); + } + } + System.out.println((float) sum / 10); + + conn.close(); + stmt.close(); + rs.close(); + fileWriter.flush(); + fileWriter.close(); + } } diff --git a/src/test/java/com/alibaba/druid/pool/MySqlValdConnectionTest.java b/src/test/java/com/alibaba/druid/pool/MySqlValdConnectionTest.java index ce9c93b556..4ddbaf1f98 100644 --- a/src/test/java/com/alibaba/druid/pool/MySqlValdConnectionTest.java +++ b/src/test/java/com/alibaba/druid/pool/MySqlValdConnectionTest.java @@ -7,18 +7,20 @@ import junit.framework.TestCase; import com.alibaba.druid.pool.vendor.MySqlExceptionSorter; public class MySqlValdConnectionTest extends TestCase { + private String jdbcUrl; private String user; private String password; private String driverClass; - - public void setUp () throws Exception { + + public void setUp() throws Exception { jdbcUrl = "jdbc:mysql://10.20.129.146/dragoon_v25masterdb?useUnicode=true&characterEncoding=UTF-8"; user = "dragoon25"; password = "dragoon25"; driverClass = "com.mysql.jdbc.Driver"; } - public void test_0 () throws Exception { + + public void test_0() throws Exception { DruidDataSource dataSource = new DruidDataSource(); dataSource.setDriverClassName(driverClass); dataSource.setUrl(jdbcUrl); @@ -26,7 +28,7 @@ public class MySqlValdConnectionTest extends TestCase { dataSource.setPassword(password); dataSource.setFilters("stat"); dataSource.setExceptionSoter(MySqlExceptionSorter.class.getName()); - + Connection conn = dataSource.getConnection(); conn.close(); } diff --git a/src/test/java/com/alibaba/druid/pool/TestOracle_DruidDataSource.java b/src/test/java/com/alibaba/druid/pool/TestOracle_DruidDataSource.java index ab6250db4f..603b4a9f6b 100644 --- a/src/test/java/com/alibaba/druid/pool/TestOracle_DruidDataSource.java +++ b/src/test/java/com/alibaba/druid/pool/TestOracle_DruidDataSource.java @@ -39,7 +39,7 @@ public class TestOracle_DruidDataSource extends TestCase { final int THREAD_COUNT = 10; final CountDownLatch startLatch = new CountDownLatch(1); final CountDownLatch endLatch = new CountDownLatch(THREAD_COUNT); - + for (int i = 0; i < THREAD_COUNT; ++i) { Thread thread = new Thread() { diff --git a/src/test/java/com/alibaba/druid/pool/Test_kyline.java b/src/test/java/com/alibaba/druid/pool/Test_kyline.java index 048ab06246..5d10a4437e 100644 --- a/src/test/java/com/alibaba/druid/pool/Test_kyline.java +++ b/src/test/java/com/alibaba/druid/pool/Test_kyline.java @@ -10,7 +10,7 @@ public class Test_kyline extends TestCase { private String url = "jdbc:mysql://10.20.141.150:8066/amoeba"; private String user = "root"; private String password = "12345"; - private String driver = "com.mysql.jdbc.Driver"; + private String driver = "com.mysql.jdbc.Driver"; public void test_0() throws Exception { DruidDataSource ds = new DruidDataSource(); @@ -23,7 +23,7 @@ public class Test_kyline extends TestCase { Connection conn = ds.getConnection(); conn.close(); - + ds.close(); } } diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/Case0.java b/src/test/java/com/alibaba/druid/pool/benckmark/Case0.java index 0be970e2a6..47449dce67 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/Case0.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/Case0.java @@ -144,6 +144,7 @@ public class Case0 extends TestCase { long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - System.out.println(name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println(name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + + fullGC); } } diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/Case1.java b/src/test/java/com/alibaba/druid/pool/benckmark/Case1.java index a3d361d232..5fdc624971 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/Case1.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/Case1.java @@ -30,8 +30,8 @@ import com.alibaba.druid.pool.DruidDataSource; import com.jolbox.bonecp.BoneCPDataSource; /** - * TestOnBo - * 类Case1.java的实现描述:TODO 类实现描述 + * TestOnBo 类Case1.java的实现描述:TODO 类实现描述 + * * @author admin 2011-5-28 下午03:47:40 */ public class Case1 extends TestCase { @@ -113,7 +113,7 @@ public class Case1 extends TestCase { // dataSource.setMaxOpenPreparedStatements(100); dataSource.setUsername(user); dataSource.setPassword(password); - //dataSource.setConnectionTestStatement("SELECT 1"); + // dataSource.setConnectionTestStatement("SELECT 1"); dataSource.setPartitionCount(1); dataSource.setAcquireIncrement(5); dataSource.setIdleConnectionTestPeriod(0L); @@ -158,6 +158,7 @@ public class Case1 extends TestCase { long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - System.out.println("thread " + threadCount + " " + name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println("thread " + threadCount + " " + name + " millis : " + + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); } } diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/Case2.java b/src/test/java/com/alibaba/druid/pool/benckmark/Case2.java index 7704c0532d..25bf310eba 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/Case2.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/Case2.java @@ -30,25 +30,25 @@ import com.alibaba.druid.pool.DruidDataSource; import com.jolbox.bonecp.BoneCPDataSource; /** - * TestOnBo - * 类Case1.java的实现描述:TODO 类实现描述 + * TestOnBo 类Case1.java的实现描述:TODO 类实现描述 + * * @author admin 2011-5-28 下午03:47:40 */ public class Case2 extends TestCase { - private String jdbcUrl; - private String user; - private String password; - private String driverClass; - private int initialSize = 10; - private int minPoolSize = 10; - private int maxPoolSize = 50; - private int maxActive = 50; - private String validationQuery = "SELECT 1"; - private int threadCount = 100; - private int executeCount = 4; - final int LOOP_COUNT = (1000 * 1000) / executeCount; - private boolean testOnBorrow = true; + private String jdbcUrl; + private String user; + private String password; + private String driverClass; + private int initialSize = 10; + private int minPoolSize = 10; + private int maxPoolSize = 50; + private int maxActive = 50; + private String validationQuery = "SELECT 1"; + private int threadCount = 100; + private int executeCount = 4; + final int LOOP_COUNT = (1000 * 1000) / executeCount; + private boolean testOnBorrow = true; protected void setUp() throws Exception { jdbcUrl = "jdbc:fake:dragoon_v25masterdb"; @@ -160,6 +160,7 @@ public class Case2 extends TestCase { long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - System.out.println("thread " + threadCount + " " + name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println("thread " + threadCount + " " + name + " millis : " + + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); } } diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/Case3.java b/src/test/java/com/alibaba/druid/pool/benckmark/Case3.java index b9009c5173..99e03e4a54 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/Case3.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/Case3.java @@ -45,12 +45,12 @@ public class Case3 extends TestCase { user = "dragoon25"; password = "dragoon25"; driverClass = "com.alibaba.druid.mock.MockDriver"; -// connectionProperties = "connectSleep=3;executeSleep=1"; + // connectionProperties = "connectSleep=3;executeSleep=1"; -// jdbcUrl = "jdbc:mysql://10.20.153.104:3306/druid2"; -// user = "root"; -// password = "root"; -// driverClass = "com.mysql.jdbc.Driver"; + // jdbcUrl = "jdbc:mysql://10.20.153.104:3306/druid2"; + // user = "root"; + // password = "root"; + // driverClass = "com.mysql.jdbc.Driver"; } public void test_perf() throws Exception { @@ -187,10 +187,11 @@ public class Case3 extends TestCase { long millis = System.currentTimeMillis() - startMillis; long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - + Assert.assertEquals(LOOP_COUNT * threadCount, count.get()); Thread.sleep(1); - System.out.println("thread " + threadCount + " " + name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println("thread " + threadCount + " " + name + " millis : " + + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); } } diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_Oracle.java b/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_Oracle.java index 4244fcb5e0..ea062c512f 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_Oracle.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_Oracle.java @@ -169,6 +169,7 @@ public class CaseKylin_Oracle extends TestCase { long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - System.out.println("thread " + threadCount + " " + name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println("thread " + threadCount + " " + name + " millis : " + + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); } } diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql.java b/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql.java index 19b8b59764..399bfcf233 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql.java @@ -41,20 +41,20 @@ public class CaseKylin_mysql extends TestCase { private int numTestsPerEvictionRun = 20; protected void setUp() throws Exception { -// jdbcUrl = "jdbc:fake:dragoon_v25masterdb"; -// user = "dragoon25"; -// password = "dragoon25"; -// driverClass = "com.alibaba.druid.mock.MockDriver"; + // jdbcUrl = "jdbc:fake:dragoon_v25masterdb"; + // user = "dragoon25"; + // password = "dragoon25"; + // driverClass = "com.alibaba.druid.mock.MockDriver"; jdbcUrl = "jdbc:mysql://10.20.153.104:3306/druid2"; user = "root"; password = "root"; driverClass = "com.mysql.jdbc.Driver"; - -// jdbcUrl = "jdbc:oracle:thin:@10.20.149.85:1521:ocnauto"; -// user = "alibaba"; -// password = "ccbuauto"; -// driverClass = "oracle.jdbc.driver.OracleDriver"; + + // jdbcUrl = "jdbc:oracle:thin:@10.20.149.85:1521:ocnauto"; + // user = "alibaba"; + // password = "ccbuauto"; + // driverClass = "oracle.jdbc.driver.OracleDriver"; } public void test_perf() throws Exception { @@ -163,6 +163,7 @@ public class CaseKylin_mysql extends TestCase { long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - System.out.println("thread " + threadCount + " " + name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println("thread " + threadCount + " " + name + " millis : " + + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); } } diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql_idle_1.java b/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql_idle_1.java index 04bbe96a0f..c75cdb69cb 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql_idle_1.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql_idle_1.java @@ -24,7 +24,7 @@ public class CaseKylin_mysql_idle_1 extends TestCase { private int maxIdle = 20; private int maxActive = 20; private int maxWait = 60000; - private String validationQuery = null; // "SELECT 1"; + private String validationQuery = null; // "SELECT 1"; private int threadCount = 15; private int TEST_COUNT = 3; final int LOOP_COUNT = 1000 * 10; @@ -135,6 +135,7 @@ public class CaseKylin_mysql_idle_1 extends TestCase { long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - System.out.println("thread " + threadCount + " " + name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println("thread " + threadCount + " " + name + " millis : " + + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); } } diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql_idle_2.java b/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql_idle_2.java index 8d53874160..b5336fe2c7 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql_idle_2.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/CaseKylin_mysql_idle_2.java @@ -25,7 +25,7 @@ public class CaseKylin_mysql_idle_2 extends TestCase { private int maxIdle = 20; private int maxActive = 20; private int maxWait = 60000; - private String validationQuery = null; // "SELECT 1"; + private String validationQuery = null; // "SELECT 1"; private int threadCount = 15; private int TEST_COUNT = 3; final int LOOP_COUNT = 10 * 1; @@ -44,13 +44,13 @@ public class CaseKylin_mysql_idle_2 extends TestCase { user = "dragoon25"; password = "dragoon25"; driverClass = "com.alibaba.druid.mock.MockDriver"; - + MockDriver.instance.setIdleTimeCount(50 * 60 * 10); -// jdbcUrl = "jdbc:mysql://10.20.141.150:8066/amoeba"; -// user = "root"; -// password = "12345"; -// driverClass = "com.mysql.jdbc.Driver"; + // jdbcUrl = "jdbc:mysql://10.20.141.150:8066/amoeba"; + // user = "root"; + // password = "12345"; + // driverClass = "com.mysql.jdbc.Driver"; // jdbcUrl = "jdbc:oracle:thin:@10.20.149.85:1521:ocnauto"; // user = "alibaba"; @@ -138,6 +138,7 @@ public class CaseKylin_mysql_idle_2 extends TestCase { long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - System.out.println("thread " + threadCount + " " + name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println("thread " + threadCount + " " + name + " millis : " + + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); } } diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/Oracle_Case0.java b/src/test/java/com/alibaba/druid/pool/benckmark/Oracle_Case0.java index 60736ce2db..3e00abe946 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/Oracle_Case0.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/Oracle_Case0.java @@ -137,6 +137,7 @@ public class Oracle_Case0 extends TestCase { long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - System.out.println(name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println(name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + + fullGC); } } diff --git a/src/test/java/com/alibaba/druid/pool/benckmark/Oracle_Case3.java b/src/test/java/com/alibaba/druid/pool/benckmark/Oracle_Case3.java index 540a721a2e..f9ff8ba8df 100644 --- a/src/test/java/com/alibaba/druid/pool/benckmark/Oracle_Case3.java +++ b/src/test/java/com/alibaba/druid/pool/benckmark/Oracle_Case3.java @@ -96,9 +96,9 @@ public class Oracle_Case3 extends TestCase { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT 1 FROM DUAL"); rs.next(); - //Assert.isTrue(!rs.isClosed()); + // Assert.isTrue(!rs.isClosed()); rs.close(); - //Assert.isTrue(!stmt.isClosed()); + // Assert.isTrue(!stmt.isClosed()); stmt.close(); Assert.isTrue(stmt.isClosed()); conn.close(); @@ -121,6 +121,7 @@ public class Oracle_Case3 extends TestCase { long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - System.out.println("thread " + threadCount + " " + name + " millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println("thread " + threadCount + " " + name + " millis : " + + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); } } diff --git a/src/test/java/com/alibaba/druid/pool/dbcp/Test0.java b/src/test/java/com/alibaba/druid/pool/dbcp/Test0.java index 4b6192dcd8..9f598f01ee 100644 --- a/src/test/java/com/alibaba/druid/pool/dbcp/Test0.java +++ b/src/test/java/com/alibaba/druid/pool/dbcp/Test0.java @@ -37,7 +37,7 @@ public class Test0 extends TestCase { conn.close(); System.out.println("raw size : " + driver.getConnections().size()); } - + { Connection conn = dataSource.getConnection(); @@ -48,7 +48,6 @@ public class Test0 extends TestCase { System.out.println("raw size : " + driver.getConnections().size()); } - dataSource.close(); } } diff --git a/src/test/java/com/alibaba/druid/pool/dbcp/TestIdleForKylin.java b/src/test/java/com/alibaba/druid/pool/dbcp/TestIdleForKylin.java index f24ac12932..f23a01a2ca 100644 --- a/src/test/java/com/alibaba/druid/pool/dbcp/TestIdleForKylin.java +++ b/src/test/java/com/alibaba/druid/pool/dbcp/TestIdleForKylin.java @@ -17,7 +17,7 @@ public class TestIdleForKylin extends TestCase { public void test_idle() throws Exception { MockDriver driver = MockDriver.instance; -// BasicDataSource dataSource = new BasicDataSource(); + // BasicDataSource dataSource = new BasicDataSource(); DruidDataSource dataSource = new DruidDataSource(); dataSource.setUrl("jdbc:mock:xxx"); dataSource.setDriverClassName("com.alibaba.druid.mock.MockDriver"); diff --git a/src/test/java/com/alibaba/druid/pool/ui/DruidDataSourceUIManager.java b/src/test/java/com/alibaba/druid/pool/ui/DruidDataSourceUIManager.java index 9cac99d805..bf615699f9 100644 --- a/src/test/java/com/alibaba/druid/pool/ui/DruidDataSourceUIManager.java +++ b/src/test/java/com/alibaba/druid/pool/ui/DruidDataSourceUIManager.java @@ -58,7 +58,8 @@ public class DruidDataSourceUIManager extends JFrame { private JLabel lbPassword = new JLabel("Password : "); private JTextField txtPassword = new JTextField(); - private JLabel lbConnectionProperties = new JLabel("Connection Properties : "); + private JLabel lbConnectionProperties = new JLabel( + "Connection Properties : "); private JTextField txtConnectionProperties = new JTextField(); private JLabel lbInitialSize = new JLabel("InitialSize : "); @@ -76,7 +77,8 @@ public class DruidDataSourceUIManager extends JFrame { private JLabel lbMaxWait = new JLabel("MaxWait : "); private JTextField txtMaxWait = new JTextField("-1"); - private JLabel lbMinEvictableIdleTimeMillis = new JLabel("MinEvictableIdleTimeMillis : "); + private JLabel lbMinEvictableIdleTimeMillis = new JLabel( + "MinEvictableIdleTimeMillis : "); private JTextField txtMinEvictableIdleTimeMillis = new JTextField("1800000"); private DruidDataStatusPanel statusPanel = new DruidDataStatusPanel(); @@ -138,7 +140,8 @@ public class DruidDataSourceUIManager extends JFrame { layout.putConstraint(SpringLayout.EAST, lbDriverClass, 0, SpringLayout.EAST, lbUrl); mainPanel.add(txtDriverClass); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtDriverClass, 0, SpringLayout.VERTICAL_CENTER, lbDriverClass); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtDriverClass, 0, SpringLayout.VERTICAL_CENTER, + lbDriverClass); layout.putConstraint(SpringLayout.WEST, txtDriverClass, 0, SpringLayout.WEST, txtUrl); layout.putConstraint(SpringLayout.EAST, txtDriverClass, 0, SpringLayout.EAST, txtUrl); @@ -174,7 +177,8 @@ public class DruidDataSourceUIManager extends JFrame { layout.putConstraint(SpringLayout.EAST, lbConnectionProperties, 0, SpringLayout.EAST, lbUrl); mainPanel.add(txtConnectionProperties); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtConnectionProperties, 0, SpringLayout.VERTICAL_CENTER, lbConnectionProperties); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtConnectionProperties, 0, SpringLayout.VERTICAL_CENTER, + lbConnectionProperties); layout.putConstraint(SpringLayout.WEST, txtConnectionProperties, 0, SpringLayout.WEST, txtUrl); layout.putConstraint(SpringLayout.EAST, txtConnectionProperties, 0, SpringLayout.EAST, txtUrl); @@ -186,7 +190,8 @@ public class DruidDataSourceUIManager extends JFrame { layout.putConstraint(SpringLayout.EAST, lbInitialSize, 0, SpringLayout.EAST, lbUrl); mainPanel.add(txtInitialSize); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtInitialSize, 0, SpringLayout.VERTICAL_CENTER, lbInitialSize); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtInitialSize, 0, SpringLayout.VERTICAL_CENTER, + lbInitialSize); layout.putConstraint(SpringLayout.WEST, txtInitialSize, 0, SpringLayout.WEST, txtUrl); layout.putConstraint(SpringLayout.EAST, txtInitialSize, 0, SpringLayout.EAST, txtUrl); @@ -246,19 +251,22 @@ public class DruidDataSourceUIManager extends JFrame { layout.putConstraint(SpringLayout.EAST, lbMinEvictableIdleTimeMillis, 0, SpringLayout.EAST, lbUrl); mainPanel.add(txtMinEvictableIdleTimeMillis); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtMinEvictableIdleTimeMillis, 0, SpringLayout.VERTICAL_CENTER, lbMinEvictableIdleTimeMillis); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtMinEvictableIdleTimeMillis, 0, + SpringLayout.VERTICAL_CENTER, lbMinEvictableIdleTimeMillis); layout.putConstraint(SpringLayout.WEST, txtMinEvictableIdleTimeMillis, 0, SpringLayout.WEST, txtUrl); layout.putConstraint(SpringLayout.EAST, txtMinEvictableIdleTimeMillis, 0, SpringLayout.EAST, txtUrl); // //// mainPanel.add(lbValidationQuery); - layout.putConstraint(SpringLayout.NORTH, lbValidationQuery, 10, SpringLayout.SOUTH, lbMinEvictableIdleTimeMillis); + layout.putConstraint(SpringLayout.NORTH, lbValidationQuery, 10, SpringLayout.SOUTH, + lbMinEvictableIdleTimeMillis); layout.putConstraint(SpringLayout.WEST, lbValidationQuery, 0, SpringLayout.WEST, lbUrl); layout.putConstraint(SpringLayout.EAST, lbValidationQuery, 0, SpringLayout.EAST, lbUrl); mainPanel.add(txtValidationQuery); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtValidationQuery, 0, SpringLayout.VERTICAL_CENTER, lbValidationQuery); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtValidationQuery, 0, SpringLayout.VERTICAL_CENTER, + lbValidationQuery); layout.putConstraint(SpringLayout.WEST, txtValidationQuery, 0, SpringLayout.WEST, txtUrl); layout.putConstraint(SpringLayout.EAST, txtValidationQuery, 0, SpringLayout.EAST, txtUrl); // //// @@ -269,7 +277,8 @@ public class DruidDataSourceUIManager extends JFrame { layout.putConstraint(SpringLayout.EAST, lbTestWhileIdle, 0, SpringLayout.EAST, lbUrl); mainPanel.add(txtTestWhileIdle); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtTestWhileIdle, 0, SpringLayout.VERTICAL_CENTER, lbTestWhileIdle); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtTestWhileIdle, 0, SpringLayout.VERTICAL_CENTER, + lbTestWhileIdle); layout.putConstraint(SpringLayout.WEST, txtTestWhileIdle, 0, SpringLayout.WEST, txtUrl); layout.putConstraint(SpringLayout.EAST, txtTestWhileIdle, 0, SpringLayout.EAST, txtUrl); @@ -279,7 +288,8 @@ public class DruidDataSourceUIManager extends JFrame { layout.putConstraint(SpringLayout.EAST, lbTestOnBorrow, 0, SpringLayout.EAST, lbUrl); mainPanel.add(txtTestOnBorrow); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtTestOnBorrow, 0, SpringLayout.VERTICAL_CENTER, lbTestOnBorrow); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtTestOnBorrow, 0, SpringLayout.VERTICAL_CENTER, + lbTestOnBorrow); layout.putConstraint(SpringLayout.WEST, txtTestOnBorrow, 0, SpringLayout.WEST, txtUrl); layout.putConstraint(SpringLayout.EAST, txtTestOnBorrow, 0, SpringLayout.EAST, txtUrl); @@ -297,7 +307,8 @@ public class DruidDataSourceUIManager extends JFrame { }); mainPanel.add(btnCloseDataSource); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, btnCloseDataSource, 0, SpringLayout.VERTICAL_CENTER, btnInitDataSource); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, btnCloseDataSource, 0, SpringLayout.VERTICAL_CENTER, + btnInitDataSource); layout.putConstraint(SpringLayout.WEST, btnCloseDataSource, 10, SpringLayout.EAST, btnInitDataSource); btnCloseDataSource.addActionListener(new ActionListener() { @@ -312,7 +323,8 @@ public class DruidDataSourceUIManager extends JFrame { btnCase_0.setEnabled(false); mainPanel.add(btnConnect); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, btnConnect, 0, SpringLayout.VERTICAL_CENTER, btnInitDataSource); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, btnConnect, 0, SpringLayout.VERTICAL_CENTER, + btnInitDataSource); layout.putConstraint(SpringLayout.WEST, btnConnect, 10, SpringLayout.EAST, btnCloseDataSource); btnConnect.addActionListener(new ActionListener() { @@ -323,7 +335,8 @@ public class DruidDataSourceUIManager extends JFrame { }); mainPanel.add(txtGetStep); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtGetStep, 0, SpringLayout.VERTICAL_CENTER, btnInitDataSource); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtGetStep, 0, SpringLayout.VERTICAL_CENTER, + btnInitDataSource); layout.putConstraint(SpringLayout.WEST, txtGetStep, 10, SpringLayout.EAST, btnConnect); layout.putConstraint(SpringLayout.EAST, txtGetStep, 40, SpringLayout.WEST, txtGetStep); @@ -354,7 +367,8 @@ public class DruidDataSourceUIManager extends JFrame { }); mainPanel.add(txtReleaseStep); - layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtReleaseStep, 0, SpringLayout.VERTICAL_CENTER, btnInitDataSource); + layout.putConstraint(SpringLayout.VERTICAL_CENTER, txtReleaseStep, 0, SpringLayout.VERTICAL_CENTER, + btnInitDataSource); layout.putConstraint(SpringLayout.WEST, txtReleaseStep, 10, SpringLayout.EAST, btnClose); layout.putConstraint(SpringLayout.EAST, txtReleaseStep, 40, SpringLayout.WEST, txtReleaseStep); @@ -380,7 +394,7 @@ public class DruidDataSourceUIManager extends JFrame { layout.putConstraint(SpringLayout.NORTH, statusPanel, 10, SpringLayout.SOUTH, btnInitDataSource); layout.putConstraint(SpringLayout.SOUTH, statusPanel, 120, SpringLayout.NORTH, statusPanel); layout.putConstraint(SpringLayout.WEST, statusPanel, 0, SpringLayout.WEST, lbUrl); - //layout.putConstraint(SpringLayout.EAST, txtMaxWait, 0, SpringLayout.EAST, mainPanel); + // layout.putConstraint(SpringLayout.EAST, txtMaxWait, 0, SpringLayout.EAST, mainPanel); // //// @@ -479,7 +493,7 @@ public class DruidDataSourceUIManager extends JFrame { } catch (Exception ex) { ex.printStackTrace(); } - + executor = Executors.newCachedThreadPool(); txtDriverClass.setText(dataSource.getDriverClassName()); @@ -591,7 +605,8 @@ public class DruidDataSourceUIManager extends JFrame { long ygc = TestUtil.getYoungGC() - startYGC; long fullGC = TestUtil.getFullGC() - startFullGC; - System.out.println("thread " + threadCount + " druid millis : " + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); + System.out.println("thread " + threadCount + " druid millis : " + + NumberFormat.getInstance().format(millis) + ", YGC " + ygc + " FGC " + fullGC); } }; diff --git a/src/test/java/com/alibaba/druid/pool/ui/DruidDataStatusPanel.java b/src/test/java/com/alibaba/druid/pool/ui/DruidDataStatusPanel.java index 3135b856e9..60f51947cb 100644 --- a/src/test/java/com/alibaba/druid/pool/ui/DruidDataStatusPanel.java +++ b/src/test/java/com/alibaba/druid/pool/ui/DruidDataStatusPanel.java @@ -15,7 +15,8 @@ public class DruidDataStatusPanel extends JPanel { private final Map fields = new HashMap(); private final String[] fieldNames = new String[] { // - "CreateCount", "CreateErrorCount", "CreateTimespanMillis", "CreateTimespanNano", "DestroyCount", // + "CreateCount", "CreateErrorCount", "CreateTimespanMillis", + "CreateTimespanNano", "DestroyCount", // "ConnectCount", "ConnectErrorCount", "CloseCount", "RecycleCount", "ActiveCount", // "PoolingCount", "IdleCheckCount", "UI_GettingCount", "UI_GetCount", "UI_ReleaseCount" // , "UI_ExecutingCount" // diff --git a/src/test/java/com/alibaba/druid/sql/OnlineSQLTest.java b/src/test/java/com/alibaba/druid/sql/OnlineSQLTest.java index 600b2a9aa4..74fc0f0c50 100644 --- a/src/test/java/com/alibaba/druid/sql/OnlineSQLTest.java +++ b/src/test/java/com/alibaba/druid/sql/OnlineSQLTest.java @@ -25,27 +25,27 @@ public class OnlineSQLTest extends TestCase { public void test_list_sql() throws Exception { // reset(); - + // 这些中文括号 - //update(7216, "", 4); - //update(7223, "", 4); - //update(8387, "", 4); - + // update(7216, "", 4); + // update(7223, "", 4); + // update(8387, "", 4); + // 语法错误 -// update(17018, "", 4); //alarm_type&? -// update(17841, "", 4); //alarm_type&? -// update(17845, "", 4); //alarm_type&? -// update(18247, "", 4); //alarm_type&? -// update(19469, "", 4); //alarm_type&? - update(19730, "", 4); //alarm_type&? - update(20164, "", 4); //alarm_type&? - update(20386, "", 4); //alarm_type&? - update(20440, "", 4); //alarm_type&? - update(21208, "", 4); //alarm_type&? - - // IBATIS NAME - update(18035, "", 4); //alarm_type&? - + // update(17018, "", 4); //alarm_type&? + // update(17841, "", 4); //alarm_type&? + // update(17845, "", 4); //alarm_type&? + // update(18247, "", 4); //alarm_type&? + // update(19469, "", 4); //alarm_type&? + update(19730, "", 4); // alarm_type&? + update(20164, "", 4); // alarm_type&? + update(20386, "", 4); // alarm_type&? + update(20440, "", 4); // alarm_type&? + update(21208, "", 4); // alarm_type&? + + // IBATIS NAME + update(18035, "", 4); // alarm_type&? + Connection conn = DriverManager.getConnection(url, user, password); int count = 0; @@ -55,12 +55,12 @@ public class OnlineSQLTest extends TestCase { while (rs.next()) { int id = rs.getInt(1); String value = rs.getString(2); - + if (value.indexOf('(') != -1) { update(id, "", 4); continue; } - + System.out.println(value); System.out.println(); try { @@ -109,8 +109,8 @@ public class OnlineSQLTest extends TestCase { sql = sql.trim(); boolean sqlFlag = false; String lowerSql = sql.toLowerCase(); - if (lowerSql.startsWith("insert") || lowerSql.startsWith("select") || lowerSql.startsWith("upate") || lowerSql.startsWith("delete") - || lowerSql.startsWith("create") || lowerSql.startsWith("drop")) { + if (lowerSql.startsWith("insert") || lowerSql.startsWith("select") || lowerSql.startsWith("upate") + || lowerSql.startsWith("delete") || lowerSql.startsWith("create") || lowerSql.startsWith("drop")) { sqlFlag = true; } @@ -138,8 +138,8 @@ public class OnlineSQLTest extends TestCase { sql = sql.trim(); boolean sqlFlag = false; String lowerSql = sql.toLowerCase(); - if (lowerSql.startsWith("insert") || lowerSql.startsWith("select") || lowerSql.startsWith("upate") || lowerSql.startsWith("delete") - || lowerSql.startsWith("create") || lowerSql.startsWith("drop")) { + if (lowerSql.startsWith("insert") || lowerSql.startsWith("select") || lowerSql.startsWith("upate") + || lowerSql.startsWith("delete") || lowerSql.startsWith("create") || lowerSql.startsWith("drop")) { sqlFlag = true; } diff --git a/src/test/java/com/alibaba/druid/sql/OnlineSQLTest2.java b/src/test/java/com/alibaba/druid/sql/OnlineSQLTest2.java index 0627639f9c..64782572b9 100644 --- a/src/test/java/com/alibaba/druid/sql/OnlineSQLTest2.java +++ b/src/test/java/com/alibaba/druid/sql/OnlineSQLTest2.java @@ -63,8 +63,8 @@ public class OnlineSQLTest2 extends TestCase { sql = sql.trim(); boolean sqlFlag = false; String lowerSql = sql.toLowerCase(); - if (lowerSql.startsWith("insert") || lowerSql.startsWith("select") || lowerSql.startsWith("upate") || lowerSql.startsWith("delete") - || lowerSql.startsWith("create") || lowerSql.startsWith("drop")) { + if (lowerSql.startsWith("insert") || lowerSql.startsWith("select") || lowerSql.startsWith("upate") + || lowerSql.startsWith("delete") || lowerSql.startsWith("create") || lowerSql.startsWith("drop")) { sqlFlag = true; } diff --git a/src/test/java/com/alibaba/druid/sql/TestOnlineSQLTest3.java b/src/test/java/com/alibaba/druid/sql/TestOnlineSQLTest3.java index 148b313a1d..95ffbc18b1 100644 --- a/src/test/java/com/alibaba/druid/sql/TestOnlineSQLTest3.java +++ b/src/test/java/com/alibaba/druid/sql/TestOnlineSQLTest3.java @@ -25,11 +25,11 @@ public class TestOnlineSQLTest3 extends TestCase { conn = null; } } - - public void test_0 () throws Exception { + + public void test_0() throws Exception { String sql = "SELECT * FROM m_sql_const"; Statement stmt = conn.createStatement(); - + ResultSet rs = stmt.executeQuery(sql); while (rs.next()) { long id = rs.getLong(1); @@ -37,15 +37,13 @@ public class TestOnlineSQLTest3 extends TestCase { handle(id, value); } rs.close(); - + stmt.close(); } - + void handle(long id, String value) { String sql = value.toString(); - - - + System.out.println(sql); } } diff --git a/src/test/java/com/alibaba/druid/sql/mysql/bvt/ArithmeticOperatorsTest.java b/src/test/java/com/alibaba/druid/sql/mysql/bvt/ArithmeticOperatorsTest.java index ac9ed03e50..0b884aa01e 100644 --- a/src/test/java/com/alibaba/druid/sql/mysql/bvt/ArithmeticOperatorsTest.java +++ b/src/test/java/com/alibaba/druid/sql/mysql/bvt/ArithmeticOperatorsTest.java @@ -158,7 +158,7 @@ public class ArithmeticOperatorsTest extends TestCase { Assert.assertEquals("SELECT N % M;", text); } - + public void test_12() throws Exception { String sql = "SELECT 1 = 0 OR A > ?;"; @@ -169,15 +169,15 @@ public class ArithmeticOperatorsTest extends TestCase { Assert.assertEquals("SELECT 1 = 0 OR A > ?;", text); } - + public void test_13() throws Exception { String sql = "SELECT 1 = 0 AND ID = ?;"; - + SQLStatementParser parser = new MySqlStatementParser(sql); List stmtList = parser.parseStatementList(); - + String text = output(stmtList); - + Assert.assertEquals("SELECT 1 = 0 AND ID = ?;", text); } diff --git a/src/test/java/com/alibaba/druid/sql/mysql/bvt/CastFunctionsAndOperatorsTest.java b/src/test/java/com/alibaba/druid/sql/mysql/bvt/CastFunctionsAndOperatorsTest.java index d8bc3db77a..ef45a388d1 100644 --- a/src/test/java/com/alibaba/druid/sql/mysql/bvt/CastFunctionsAndOperatorsTest.java +++ b/src/test/java/com/alibaba/druid/sql/mysql/bvt/CastFunctionsAndOperatorsTest.java @@ -79,7 +79,8 @@ public class CastFunctionsAndOperatorsTest extends TestCase { String text = output(stmtList); - Assert.assertEquals("SELECT 'A' LIKE CONVERT(blob_col USING latin1) COLLATE latin1_german1_ci\nFROM tbl_name;", text); + Assert.assertEquals("SELECT 'A' LIKE CONVERT(blob_col USING latin1) COLLATE latin1_german1_ci\nFROM tbl_name;", + text); } public void test_5() throws Exception { diff --git a/src/test/java/com/alibaba/druid/sql/mysql/bvt/DateAndTimeFunctionsTest.java b/src/test/java/com/alibaba/druid/sql/mysql/bvt/DateAndTimeFunctionsTest.java index 5f9a0603b8..96ebd5ca64 100644 --- a/src/test/java/com/alibaba/druid/sql/mysql/bvt/DateAndTimeFunctionsTest.java +++ b/src/test/java/com/alibaba/druid/sql/mysql/bvt/DateAndTimeFunctionsTest.java @@ -35,7 +35,8 @@ public class DateAndTimeFunctionsTest extends TestCase { String text = output(stmtList); - Assert.assertEquals("SELECT something\nFROM tbl_name\nWHERE DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= date_col;", text); + Assert.assertEquals("SELECT something\nFROM tbl_name\nWHERE DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= date_col;", + text); } public void test_1() throws Exception { diff --git a/src/test/java/com/alibaba/druid/sql/mysql/bvt/FullTextSearchesWithQueryExpansionTest.java b/src/test/java/com/alibaba/druid/sql/mysql/bvt/FullTextSearchesWithQueryExpansionTest.java index e2c8bd76c7..7910768009 100644 --- a/src/test/java/com/alibaba/druid/sql/mysql/bvt/FullTextSearchesWithQueryExpansionTest.java +++ b/src/test/java/com/alibaba/druid/sql/mysql/bvt/FullTextSearchesWithQueryExpansionTest.java @@ -35,7 +35,8 @@ public class FullTextSearchesWithQueryExpansionTest extends TestCase { String text = output(stmtList); - Assert.assertEquals("SELECT *\nFROM articles\nWHERE MATCH (title, body) AGAINST ('database' IN NATURAL LANGUAGE MODE);", text); + Assert.assertEquals("SELECT *\nFROM articles\nWHERE MATCH (title, body) AGAINST ('database' IN NATURAL LANGUAGE MODE);", + text); } private String output(List stmtList) { diff --git a/src/test/java/com/alibaba/druid/sql/mysql/bvt/InsertSyntaxTest.java b/src/test/java/com/alibaba/druid/sql/mysql/bvt/InsertSyntaxTest.java index e7c4dfe071..6c653f374f 100644 --- a/src/test/java/com/alibaba/druid/sql/mysql/bvt/InsertSyntaxTest.java +++ b/src/test/java/com/alibaba/druid/sql/mysql/bvt/InsertSyntaxTest.java @@ -90,7 +90,8 @@ public class InsertSyntaxTest extends TestCase { String text = output(stmtList); - Assert.assertEquals("INSERT LOW_PRIORITY DELAYED HIGH_PRIORITY IGNORE INTO tbl_name\n\t(a, b, c)\nVALUES\n(1, 2, 3);", text); + Assert.assertEquals("INSERT LOW_PRIORITY DELAYED HIGH_PRIORITY IGNORE INTO tbl_name\n\t(a, b, c)\nVALUES\n(1, 2, 3);", + text); } public void test_6() throws Exception { @@ -101,7 +102,8 @@ public class InsertSyntaxTest extends TestCase { String text = output(stmtList); - Assert.assertEquals("INSERT INTO tbl_name\n\t(a, b, c)\nVALUES\n(1, 2, 3) ON DUPLICATE KEY UPDATE c = c + 1;", text); + Assert.assertEquals("INSERT INTO tbl_name\n\t(a, b, c)\nVALUES\n(1, 2, 3) ON DUPLICATE KEY UPDATE c = c + 1;", + text); } private String output(List stmtList) { diff --git a/src/test/java/com/alibaba/druid/sql/mysql/bvt/MySqlParameterizedOutputVisitorTest.java b/src/test/java/com/alibaba/druid/sql/mysql/bvt/MySqlParameterizedOutputVisitorTest.java index d65b0f41ed..acdfaf6052 100644 --- a/src/test/java/com/alibaba/druid/sql/mysql/bvt/MySqlParameterizedOutputVisitorTest.java +++ b/src/test/java/com/alibaba/druid/sql/mysql/bvt/MySqlParameterizedOutputVisitorTest.java @@ -19,12 +19,14 @@ public class MySqlParameterizedOutputVisitorTest extends TestCase { validate("SELECT * FROM T WHERE 1 = 0 AND ID = 5", "SELECT * FROM T WHERE 1 = 0 AND ID = ?"); validate("SELECT * FROM T WHERE ID = ? OR ID = ?", "SELECT * FROM T WHERE ID = ?"); validate("SELECT * FROM T WHERE A.ID = ? OR A.ID = ?", "SELECT * FROM T WHERE A.ID = ?"); - validate("SELECT * FROM T WHERE 1 = 0 OR a.id = ? OR a.id = ? OR a.id = ? OR a.id = ?", "SELECT * FROM T WHERE 1 = 0 OR a.id = ?"); - validateOracle("SELECT * FROM T WHERE 1 = 0 OR a.id = ? OR a.id = ? OR a.id = ? OR a.id = ?", "SELECT * FROM T WHERE 1 = 0 OR a.id = ?; "); + validate("SELECT * FROM T WHERE 1 = 0 OR a.id = ? OR a.id = ? OR a.id = ? OR a.id = ?", + "SELECT * FROM T WHERE 1 = 0 OR a.id = ?"); + validateOracle("SELECT * FROM T WHERE 1 = 0 OR a.id = ? OR a.id = ? OR a.id = ? OR a.id = ?", + "SELECT * FROM T WHERE 1 = 0 OR a.id = ?; "); validateOracle("SELECT * FROM T WHERE A.ID = ? OR A.ID = ?", "SELECT * FROM T WHERE A.ID = ?; "); validate("INSERT INTO T (F1, F2) VALUES(?, ?), (?, ?), (?, ?)", "INSERT INTO T (F1, F2) VALUES (?, ?)"); - - //System.out.println("SELECT * FORM A WHERE ID = (##)".replaceAll("##", "?")); + + // System.out.println("SELECT * FORM A WHERE ID = (##)".replaceAll("##", "?")); } void validate(String sql, String expect) { @@ -41,7 +43,7 @@ public class MySqlParameterizedOutputVisitorTest extends TestCase { Assert.assertEquals(expect, out.toString()); } - + void validateOracle(String sql, String expect) { OracleStatementParser parser = new OracleStatementParser(sql); diff --git a/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlResourceTest.java b/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlResourceTest.java index 49aea86a73..1875eefc93 100644 --- a/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlResourceTest.java +++ b/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlResourceTest.java @@ -42,7 +42,7 @@ public class MySqlResourceTest extends TestCase { String[] items = input.split("---------------------------"); String sql = items[0].trim(); String expect = items[1].trim(); - + MySqlStatementParser parser = new MySqlStatementParser(sql); List statementList = parser.parseStatementList(); SQLStatement statemen = statementList.get(0); @@ -55,7 +55,7 @@ public class MySqlResourceTest extends TestCase { System.out.println(sql); System.out.println("Tables : " + visitor.getTables()); System.out.println("fields : " + visitor.getFields()); - + System.out.println(); System.out.println(); } diff --git a/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest1.java b/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest1.java index e2a3f8f721..18e4309d55 100644 --- a/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest1.java +++ b/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest1.java @@ -39,7 +39,7 @@ public class MySqlSchemaStatVisitorTest1 extends TestCase { Assert.assertEquals(true, visitor.getFields().contains(new Column("usergroups", "name"))); } - + public void test_1() throws Exception { String sql = "select a.name, b.name FROM users a, usergroups b on a.groupId = b.id where a.groupID = ?"; diff --git a/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest2.java b/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest2.java index 8e33d833f7..63fe9e8af3 100644 --- a/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest2.java +++ b/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest2.java @@ -36,7 +36,7 @@ public class MySqlSchemaStatVisitorTest2 extends TestCase { Assert.assertEquals(true, visitor.getFields().contains(new Column("users", "name"))); } - + public void test_2() throws Exception { String sql = "select id, name FROM users a"; @@ -61,7 +61,7 @@ public class MySqlSchemaStatVisitorTest2 extends TestCase { Assert.assertEquals(true, visitor.getFields().contains(new Column("users", "name"))); } - + public void test_3() throws Exception { String sql = "select id, a.name FROM users a"; diff --git a/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest3.java b/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest3.java index e7880b7116..a879080335 100644 --- a/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest3.java +++ b/src/test/java/com/alibaba/druid/sql/mysql/bvt/visitor/MySqlSchemaStatVisitorTest3.java @@ -40,6 +40,5 @@ public class MySqlSchemaStatVisitorTest3 extends TestCase { Assert.assertEquals(true, visitor.getFields().contains(new Column("users2", "id2"))); } - - + } diff --git a/src/test/java/com/alibaba/druid/sql/oracle/bvt/CallTest.java b/src/test/java/com/alibaba/druid/sql/oracle/bvt/CallTest.java index 1cfa9eaf34..69e017bc41 100644 --- a/src/test/java/com/alibaba/druid/sql/oracle/bvt/CallTest.java +++ b/src/test/java/com/alibaba/druid/sql/oracle/bvt/CallTest.java @@ -33,8 +33,6 @@ public class CallTest extends TestCase { output(statementList); } - - private void output(List stmtList) { StringBuilder out = new StringBuilder(); @@ -44,7 +42,7 @@ public class CallTest extends TestCase { stmt.accept(visitor); visitor.println(); } - + System.out.println(out.toString()); } } diff --git a/src/test/java/com/alibaba/druid/sql/oracle/bvt/OracleSQLParserResourceTest.java b/src/test/java/com/alibaba/druid/sql/oracle/bvt/OracleSQLParserResourceTest.java index 0179553c4c..6e80660a58 100644 --- a/src/test/java/com/alibaba/druid/sql/oracle/bvt/OracleSQLParserResourceTest.java +++ b/src/test/java/com/alibaba/druid/sql/oracle/bvt/OracleSQLParserResourceTest.java @@ -16,10 +16,10 @@ import com.alibaba.druid.util.JdbcUtils; public class OracleSQLParserResourceTest extends TestCase { public void test_0() throws Exception { -// for (int i = 0; i <= 53; ++i) { -// String resource = "bvt/parser/oracle-" + i + ".txt"; -// exec_test(resource); -// } + // for (int i = 0; i <= 53; ++i) { + // String resource = "bvt/parser/oracle-" + i + ".txt"; + // exec_test(resource); + // } exec_test("bvt/parser/oracle-54.txt"); } diff --git a/src/test/java/com/alibaba/druid/sql/oracle/bvt/OracleSelectParserTest.java b/src/test/java/com/alibaba/druid/sql/oracle/bvt/OracleSelectParserTest.java index 6d2ad3a000..4d4ed82fc3 100644 --- a/src/test/java/com/alibaba/druid/sql/oracle/bvt/OracleSelectParserTest.java +++ b/src/test/java/com/alibaba/druid/sql/oracle/bvt/OracleSelectParserTest.java @@ -33,13 +33,13 @@ public class OracleSelectParserTest extends TestCase { output(statementList); } - + public void test_hinits() throws Exception { String sql = "SELECT /*+FIRST_ROWS*/ * FROM T"; - + OracleStatementParser parser = new OracleStatementParser(sql); List statementList = parser.parseStatementList(); - + output(statementList); } @@ -51,7 +51,7 @@ public class OracleSelectParserTest extends TestCase { stmt.accept(visitor); visitor.println(); } - + System.out.println(out.toString()); } } diff --git a/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleResourceTest.java b/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleResourceTest.java index 1258c527af..6ed1703650 100644 --- a/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleResourceTest.java +++ b/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleResourceTest.java @@ -21,9 +21,9 @@ public class OracleResourceTest extends TestCase { public void test_0() throws Exception { // 13 exec_test("bvt/parser/oracle-53.txt"); -// for (int i = 0; i <= 53; ++i) { -// exec_test("bvt/parser/oracle-" + i + ".txt"); -// } + // for (int i = 0; i <= 53; ++i) { + // exec_test("bvt/parser/oracle-" + i + ".txt"); + // } } public void exec_test(String resource) throws Exception { diff --git a/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest1.java b/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest1.java index 7474cbb654..3f194c09a3 100644 --- a/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest1.java +++ b/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest1.java @@ -39,7 +39,7 @@ public class OracleSchemaStatVisitorTest1 extends TestCase { Assert.assertEquals(true, visitor.getFields().contains(new Column("usergroups", "name"))); } - + public void test_1() throws Exception { String sql = "select a.name, b.name FROM users a, usergroups b on a.groupId = b.id where a.groupID = ?"; diff --git a/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest2.java b/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest2.java index 65cdae1367..b9f8c91e95 100644 --- a/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest2.java +++ b/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest2.java @@ -36,7 +36,7 @@ public class OracleSchemaStatVisitorTest2 extends TestCase { Assert.assertEquals(true, visitor.getFields().contains(new Column("users", "name"))); } - + public void test_2() throws Exception { String sql = "select id, name FROM users a"; @@ -61,7 +61,7 @@ public class OracleSchemaStatVisitorTest2 extends TestCase { Assert.assertEquals(true, visitor.getFields().contains(new Column("users", "name"))); } - + public void test_3() throws Exception { String sql = "select id, a.name FROM users a"; diff --git a/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest3.java b/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest3.java index 8dbd37cd8b..746e5b5c4e 100644 --- a/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest3.java +++ b/src/test/java/com/alibaba/druid/sql/oracle/bvt/visitor/OracleSchemaStatVisitorTest3.java @@ -40,6 +40,5 @@ public class OracleSchemaStatVisitorTest3 extends TestCase { Assert.assertEquals(true, visitor.getFields().contains(new Column("users2", "id2"))); } - - + } diff --git a/src/test/java/com/alibaba/druid/sql/parser/CommentTest.java b/src/test/java/com/alibaba/druid/sql/parser/CommentTest.java index 42cd2edbca..2ed79fa27a 100644 --- a/src/test/java/com/alibaba/druid/sql/parser/CommentTest.java +++ b/src/test/java/com/alibaba/druid/sql/parser/CommentTest.java @@ -9,7 +9,8 @@ import com.alibaba.druid.sql.dialect.oracle.parser.OracleStatementParser; import com.alibaba.druid.sql.dialect.oracle.visitor.OracleOutputVisitor; public class CommentTest extends TestCase { - public void test_0 () throws Exception { + + public void test_0() throws Exception { String sql = "SELECT /*mark for picman*/ * FROM WP_ALBUM WHERE MEMBER_ID = ? AND ID IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; Lexer lexer = new Lexer(sql); @@ -20,7 +21,7 @@ public class CommentTest extends TestCase { if (tok == Token.IDENTIFIER) { System.out.println(tok.name() + "\t\t" + lexer.stringVal()); } else if (tok == Token.MULTI_LINE_COMMENT) { - System.out.println(tok.name() + "\t\t" + lexer.stringVal()); + System.out.println(tok.name() + "\t\t" + lexer.stringVal()); } else { System.out.println(tok.name() + "\t\t\t" + tok.name); } @@ -30,8 +31,8 @@ public class CommentTest extends TestCase { } } } - - public void test_1 () throws Exception { + + public void test_1() throws Exception { String sql = "SELECT /*mark for picman*/ * FROM WP_ALBUM WHERE MEMBER_ID = ? AND ID IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; StringBuilder out = new StringBuilder(); diff --git a/src/test/java/com/alibaba/druid/sql/parser/PerfTest.java b/src/test/java/com/alibaba/druid/sql/parser/PerfTest.java index 79005abc29..8893e72e69 100644 --- a/src/test/java/com/alibaba/druid/sql/parser/PerfTest.java +++ b/src/test/java/com/alibaba/druid/sql/parser/PerfTest.java @@ -21,7 +21,7 @@ public class PerfTest extends TestCase { // perf("SELECT * FROM my_table WHERE TRUNC(SYSDATE) = DATE '2002-10-03';"); perfOracle("SELECT * FROM T"); perfMySql("SELECT * FROM T"); - //perf(loadSql("bvt/parser/oracle-23.txt")); + // perf(loadSql("bvt/parser/oracle-23.txt")); } } @@ -44,7 +44,7 @@ public class PerfTest extends TestCase { long millis = System.currentTimeMillis() - startMillis; System.out.println("Oracle\t" + millis); } - + void perfMySql(String sql) { long startMillis = System.currentTimeMillis(); for (int i = 0; i < 1000 * 1000; ++i) { diff --git a/src/test/java/com/alibaba/druid/sql/parser/SQLMergeTest.java b/src/test/java/com/alibaba/druid/sql/parser/SQLMergeTest.java index 1946586381..ba9c345923 100644 --- a/src/test/java/com/alibaba/druid/sql/parser/SQLMergeTest.java +++ b/src/test/java/com/alibaba/druid/sql/parser/SQLMergeTest.java @@ -51,6 +51,7 @@ public class SQLMergeTest extends TestCase { private String merge() { StringBuilder out = new StringBuilder(); OracleOutputVisitor visitor = new OracleOutputVisitor(out) { + public boolean visit(SQLInListExpr x) { x.getExpr().accept(this); diff --git a/src/test/java/com/alibaba/druid/stat/TestBeidou.java b/src/test/java/com/alibaba/druid/stat/TestBeidou.java index 998ac3de0e..e6c8d73cfe 100644 --- a/src/test/java/com/alibaba/druid/stat/TestBeidou.java +++ b/src/test/java/com/alibaba/druid/stat/TestBeidou.java @@ -30,10 +30,10 @@ public class TestBeidou extends TestCase { PreparedStatement stmt = conn.prepareStatement("select sysdate"); stmt.executeBatch(); - + String catalog = conn.getCatalog(); System.out.println(catalog); - + stmt.close(); conn.close(); } diff --git a/src/test/java/com/alibaba/druid/stat/TestOracle.java b/src/test/java/com/alibaba/druid/stat/TestOracle.java index f7690e4177..33949d44bd 100644 --- a/src/test/java/com/alibaba/druid/stat/TestOracle.java +++ b/src/test/java/com/alibaba/druid/stat/TestOracle.java @@ -30,10 +30,10 @@ public class TestOracle extends TestCase { PreparedStatement stmt = conn.prepareStatement("select sysdate"); stmt.executeBatch(); - + String catalog = conn.getCatalog(); System.out.println(catalog); - + stmt.close(); conn.close(); }