java.lang.Object
com.aoapps.sql.wrapper.SQLOutputWrapperImpl
com.aoapps.sql.tracker.SQLOutputTrackerImpl
- All Implemented Interfaces:
OnCloseHandler,SQLOutputTracker,SQLOutputWrapper,Wrapper,AutoCloseable,SQLOutput,Wrapper
Tracks a
SQLOutput for unclosed or unfreed objects.- Author:
- AO Industries, Inc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LevelThe logging level that enables allocation stack trace logging. -
Constructor Summary
ConstructorsConstructorDescriptionSQLOutputTrackerImpl(ConnectionTrackerImpl connectionTracker, SQLOutput wrapped) Creates a newSQLOutputtracker. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOnClose(Runnable onCloseHandler) Will call the handler once on close/free.voidclose()Calls onClose handlers, closes all tracked objects, then callssuper.close().Methods inherited from class com.aoapps.sql.wrapper.SQLOutputWrapperImpl
getConnectionWrapper, getWrapped, toString, unwrapArray, unwrapBlob, unwrapClob, unwrapInputStream, unwrapNClob, unwrapReader, unwrapRef, unwrapRowId, unwrapSQLXML, unwrapStruct, wrapSQLData, writeArray, writeAsciiStream, writeBinaryStream, writeBlob, writeCharacterStream, writeClob, writeNClob, writeObject, writeRef, writeRowId, writeSQLXML, writeStructMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.aoapps.sql.wrapper.SQLOutputWrapper
getWrapped, writeArray, writeAsciiStream, writeBigDecimal, writeBinaryStream, writeBlob, writeBoolean, writeByte, writeBytes, writeCharacterStream, writeClob, writeDate, writeDouble, writeFloat, writeInt, writeLong, writeNClob, writeNString, writeObject, writeObject, writeRef, writeRowId, writeShort, writeSQLXML, writeString, writeStruct, writeTime, writeTimestamp, writeURLMethods inherited from interface com.aoapps.sql.wrapper.Wrapper
isWrapperFor, unwrap
-
Field Details
-
ALLOCATION_STACKTRACE_LOG_LEVEL
The logging level that enables allocation stack trace logging.
-
-
Constructor Details
-
SQLOutputTrackerImpl
Creates a newSQLOutputtracker.
-
-
Method Details
-
getAllocationStacktrace
-
getAllocationLogger
-
addOnClose
Description copied from interface:OnCloseHandlerWill call the handler once on close/free.- Specified by:
addOnClosein interfaceOnCloseHandler
-
close
Description copied from interface:SQLOutputTrackerCalls onClose handlers, closes all tracked objects, then callssuper.close().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSQLOutputTracker- Specified by:
closein interfaceSQLOutputWrapper- Throws:
SQLException- See Also:
-
