java.lang.Object
com.aoapps.sql.wrapper.RowIdWrapperImpl
com.aoapps.sql.tracker.RowIdTrackerImpl
- All Implemented Interfaces:
OnCloseHandler
,RowIdTracker
,RowIdWrapper
,Wrapper
,AutoCloseable
,RowId
,Wrapper
Tracks a
RowId
for unclosed or unfreed objects.- Author:
- AO Industries, Inc.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Level
The logging level that enables allocation stack trace logging. -
Constructor Summary
ConstructorDescriptionRowIdTrackerImpl
(ConnectionTrackerImpl connectionTracker, RowId wrapped) Creates a newRowId
tracker. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOnClose
(Runnable onCloseHandler) Will call the handler once on close/free.void
close()
Calls onClose handlers, closes all tracked objects, then callssuper.close()
.Methods inherited from class com.aoapps.sql.wrapper.RowIdWrapperImpl
equals, getConnectionWrapper, getWrapped, hashCode, toString, unwrapRowId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aoapps.sql.wrapper.RowIdWrapper
equals, getBytes, getWrapped, hashCode, toString
Methods 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
-
RowIdTrackerImpl
Creates a newRowId
tracker.
-
-
Method Details
-
getAllocationStacktrace
-
getAllocationLogger
-
addOnClose
Description copied from interface:OnCloseHandler
Will call the handler once on close/free.- Specified by:
addOnClose
in interfaceOnCloseHandler
-
close
Description copied from interface:RowIdTracker
Calls onClose handlers, closes all tracked objects, then callssuper.close()
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceRowIdTracker
- Specified by:
close
in interfaceRowIdWrapper
- Throws:
SQLException
- See Also:
-