public class DiagnosticPreparedStatement extends PreparedStatementWrapper
PreparedStatement
that uses DatabaseDiagnosticsCollector
to record Database calls timings
Batch queries are stored in an internal list and joined if the executeBatch()
or executeLargeBatch()
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
Modifier and Type | Method and Description |
---|---|
void |
addBatch() |
void |
addBatch(String sql) |
void |
clearBatch() |
boolean |
execute() |
boolean |
execute(String sql) |
boolean |
execute(String sql,
int autoGeneratedKeys) |
boolean |
execute(String sql,
int[] columnIndexes) |
boolean |
execute(String sql,
String[] columnNames) |
int[] |
executeBatch() |
long[] |
executeLargeBatch() |
long |
executeLargeUpdate() |
long |
executeLargeUpdate(String sql) |
long |
executeLargeUpdate(String sql,
int autoGeneratedKeys) |
long |
executeLargeUpdate(String sql,
int[] columnIndexes) |
long |
executeLargeUpdate(String sql,
String[] columnNames) |
ResultSet |
executeQuery() |
ResultSet |
executeQuery(String sql) |
int |
executeUpdate() |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
int autoGeneratedKeys) |
int |
executeUpdate(String sql,
int[] columnIndexes) |
int |
executeUpdate(String sql,
String[] columnNames) |
clearParameters, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
cancel, clearWarnings, close, closeOnCompletion, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, clearWarnings, close, closeOnCompletion, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
isWrapperFor, unwrap
public boolean execute() throws SQLException
execute
in interface PreparedStatement
execute
in class PreparedStatementWrapper
SQLException
public boolean execute(String sql) throws SQLException
execute
in interface Statement
execute
in class StatementWrapper
SQLException
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute
in interface Statement
execute
in class StatementWrapper
SQLException
public boolean execute(String sql, int[] columnIndexes) throws SQLException
execute
in interface Statement
execute
in class StatementWrapper
SQLException
public boolean execute(String sql, String[] columnNames) throws SQLException
execute
in interface Statement
execute
in class StatementWrapper
SQLException
public ResultSet executeQuery() throws SQLException
executeQuery
in interface PreparedStatement
executeQuery
in class PreparedStatementWrapper
SQLException
public ResultSet executeQuery(String sql) throws SQLException
executeQuery
in interface Statement
executeQuery
in class StatementWrapper
SQLException
public int executeUpdate() throws SQLException
executeUpdate
in interface PreparedStatement
executeUpdate
in class PreparedStatementWrapper
SQLException
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class StatementWrapper
SQLException
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class StatementWrapper
SQLException
public int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class StatementWrapper
SQLException
public int executeUpdate(String sql) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class StatementWrapper
SQLException
public long executeLargeUpdate(String sql) throws SQLException
executeLargeUpdate
in interface Statement
executeLargeUpdate
in class StatementWrapper
SQLException
public long executeLargeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeLargeUpdate
in interface Statement
executeLargeUpdate
in class StatementWrapper
SQLException
public long executeLargeUpdate(String sql, int[] columnIndexes) throws SQLException
executeLargeUpdate
in interface Statement
executeLargeUpdate
in class StatementWrapper
SQLException
public long executeLargeUpdate(String sql, String[] columnNames) throws SQLException
executeLargeUpdate
in interface Statement
executeLargeUpdate
in class StatementWrapper
SQLException
public long executeLargeUpdate() throws SQLException
executeLargeUpdate
in interface PreparedStatement
executeLargeUpdate
in class PreparedStatementWrapper
SQLException
public void addBatch() throws SQLException
addBatch
in interface PreparedStatement
addBatch
in class PreparedStatementWrapper
SQLException
public void addBatch(String sql) throws SQLException
addBatch
in interface Statement
addBatch
in class StatementWrapper
SQLException
public void clearBatch() throws SQLException
clearBatch
in interface Statement
clearBatch
in class StatementWrapper
SQLException
public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
executeBatch
in class StatementWrapper
SQLException
public long[] executeLargeBatch() throws SQLException
executeLargeBatch
in interface Statement
executeLargeBatch
in class StatementWrapper
SQLException
Copyright © 2002-2022 Atlassian. All Rights Reserved.