java.lang.Object
com.aoapps.sql.wrapper.ParameterMetaDataWrapperImpl
com.aoapps.sql.tracker.ParameterMetaDataTrackerImpl
- All Implemented Interfaces:
OnCloseHandler
,ParameterMetaDataTracker
,ParameterMetaDataWrapper
,Wrapper
,AutoCloseable
,ParameterMetaData
,Wrapper
public class ParameterMetaDataTrackerImpl
extends ParameterMetaDataWrapperImpl
implements ParameterMetaDataTracker
Tracks a
ParameterMetaData
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.ParameterMetaData
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
-
Constructor Summary
ConstructorDescriptionParameterMetaDataTrackerImpl
(ConnectionTrackerImpl connectionTracker, ParameterMetaData wrapped) Creates a newParameterMetaData
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.ParameterMetaDataWrapperImpl
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.ParameterMetaDataWrapper
getParameterClassName, getParameterCount, getParameterMode, getParameterType, getParameterTypeName, getPrecision, getScale, getWrapped, isNullable, isSigned
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
-
ParameterMetaDataTrackerImpl
public ParameterMetaDataTrackerImpl(ConnectionTrackerImpl connectionTracker, ParameterMetaData wrapped) Creates a newParameterMetaData
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:ParameterMetaDataTracker
Calls onClose handlers, closes all tracked objects, then callssuper.close()
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceParameterMetaDataTracker
- Specified by:
close
in interfaceParameterMetaDataWrapper
- Throws:
SQLException
- See Also:
-