- All Superinterfaces:
AutoCloseable
,OnCloseHandler
,Statement
,StatementWrapper
,TrackedResultSets
,Wrapper
,Wrapper
- All Known Subinterfaces:
CallableStatementTracker
,PreparedStatementTracker
- All Known Implementing Classes:
CallableStatementTrackerImpl
,PreparedStatementTrackerImpl
,StatementTrackerImpl
Tracks a
Statement
for unclosed or unfreed objects.- Author:
- AO Industries, Inc.
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Calls onClose handlers, closes all tracked objects, then callssuper.close()
.Methods inherited from interface com.aoapps.sql.tracker.OnCloseHandler
addOnClose
Methods inherited from interface java.sql.Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, isSimpleIdentifier
Methods inherited from interface com.aoapps.sql.wrapper.StatementWrapper
addBatch, cancel, clearBatch, clearWarnings, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, getWrapped, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
Methods inherited from interface com.aoapps.sql.tracker.TrackedResultSets
getTrackedResultSets
Methods inherited from interface com.aoapps.sql.wrapper.Wrapper
isWrapperFor, unwrap
-
Method Details
-
close
Calls onClose handlers, closes all tracked objects, then callssuper.close()
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceStatement
- Specified by:
close
in interfaceStatementWrapper
- Throws:
SQLException
- See Also:
-