|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectledge.database.impl.DelegatingStatement
org.objectledge.database.impl.DelegatingPreparedStatement
org.objectledge.database.impl.DelegatingCallableStatement
org.objectledge.database.MonitoringCallableStatement
public class MonitoringCallableStatement
CallableStatement wrapper that monitors the number of DB reads/writes, and their duration.
| Field Summary | |
|---|---|
private ThreadDataSource.ThreadConnection |
threadConn
|
| Fields inherited from interface java.sql.Statement |
|---|
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
| Constructor Summary | |
|---|---|
MonitoringCallableStatement(CallableStatement callableStatement,
String sql,
ThreadDataSource.ThreadConnection threadConn)
Creates a new MonitoringCallableStatement instance. |
|
| Method Summary | |
|---|---|
boolean |
execute()
|
int[] |
executeBatch()
|
ResultSet |
executeQuery()
|
int |
executeUpdate()
|
| Methods inherited from class org.objectledge.database.impl.DelegatingPreparedStatement |
|---|
addBatch, clearParameters, getMetaData, getParameterList, getParameterMetaData, getSQL, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL |
| Methods inherited from class org.objectledge.database.impl.DelegatingStatement |
|---|
addBatch, addToBatchBuffer, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getBatchBuffer, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.PreparedStatement |
|---|
addBatch, clearParameters, getMetaData, getParameterMetaData, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL |
| Field Detail |
|---|
private final ThreadDataSource.ThreadConnection threadConn
| Constructor Detail |
|---|
public MonitoringCallableStatement(CallableStatement callableStatement,
String sql,
ThreadDataSource.ThreadConnection threadConn)
callableStatement - delegate callable statement.sql - statement body.threadConn - the associated ThreadConnection.| Method Detail |
|---|
public boolean execute()
throws SQLException
execute in interface PreparedStatementexecute in class DelegatingPreparedStatementSQLException
public ResultSet executeQuery()
throws SQLException
executeQuery in interface PreparedStatementexecuteQuery in class DelegatingPreparedStatementSQLException
public int executeUpdate()
throws SQLException
executeUpdate in interface PreparedStatementexecuteUpdate in class DelegatingPreparedStatementSQLException
public int[] executeBatch()
throws SQLException
executeBatch in interface StatementexecuteBatch in class DelegatingStatementSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||