java.lang.Object
com.aoapps.sql.wrapper.ResultSetMetaDataWrapperImpl
com.aoapps.sql.tracker.ResultSetMetaDataTrackerImpl
- All Implemented Interfaces:
OnCloseHandler
,ResultSetMetaDataTracker
,ResultSetMetaDataWrapper
,Wrapper
,AutoCloseable
,ResultSetMetaData
,Wrapper
public class ResultSetMetaDataTrackerImpl
extends ResultSetMetaDataWrapperImpl
implements ResultSetMetaDataTracker
Tracks a
ResultSetMetaData
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.Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
-
Constructor Summary
ConstructorDescriptionResultSetMetaDataTrackerImpl
(ConnectionTrackerImpl connectionTracker, ResultSetMetaData wrapped) Creates a newResultSetMetaData
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.ResultSetMetaDataWrapperImpl
getConnectionWrapper, getWrapped, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aoapps.sql.wrapper.ResultSetMetaDataWrapper
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, getWrapped, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable
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
-
ResultSetMetaDataTrackerImpl
public ResultSetMetaDataTrackerImpl(ConnectionTrackerImpl connectionTracker, ResultSetMetaData wrapped) Creates a newResultSetMetaData
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:ResultSetMetaDataTracker
Calls onClose handlers, closes all tracked objects, then callssuper.close()
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResultSetMetaDataTracker
- Specified by:
close
in interfaceResultSetMetaDataWrapper
- Throws:
SQLException
- See Also:
-