Module org.tquadrat.foundation.sql
Class EnhancedPreparedStatementBase.ParameterMetaDataImpl
java.lang.Object
org.tquadrat.foundation.sql.internal.ParameterMetaDataBase
org.tquadrat.foundation.sql.internal.EnhancedPreparedStatementBase.ParameterMetaDataImpl
- All Implemented Interfaces:
ParameterMetaData
- Enclosing class:
EnhancedPreparedStatementBase
@ClassVersion(sourceVersion="$Id: EnhancedPreparedStatementBase.java 1100 2024-02-16 23:33:45Z tquadrat $")
@API(status=INTERNAL,
since="0.1.0")
protected final class EnhancedPreparedStatementBase.ParameterMetaDataImpl
extends ParameterMetaDataBase
The base class for a variant of
ParameterMetaData
that is used by
EnhancedPreparedStatement.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: EnhancedPreparedStatementBase.java 1100 2024-02-16 23:33:45Z tquadrat $
- Since:
- 0.1.0
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.sql.internal.EnhancedPreparedStatementBase.ParameterMetaDataImpl"
-
Constructor Summary
ConstructorsConstructorDescriptionParameterMetaDataImpl(ParameterMetaData metaData) Creates a new instance ofParameterMetaDataImpl. -
Method Summary
Modifier and TypeMethodDescriptionfinal int[]getParameterIndexes(String parameterName) Retrieves the parameter indexes for the given parameter name.final Collection<String> Retrieves the names of the parameters in theEnhancedPreparedStatementobject for which thisParameterMetaDataobject contains information.Methods inherited from class org.tquadrat.foundation.sql.internal.ParameterMetaDataBase
getParameterClassName, getParameterCount, getParameterType, getParameterTypeName, getPrecision, getScale, isNullable, isSigned
-
Constructor Details
-
ParameterMetaDataImpl
Creates a new instance ofParameterMetaDataImpl.- Parameters:
metaData- The wrapped metadata instance.
-
-
Method Details
-
getParameterIndexes
Retrieves the parameter indexes for the given parameter name.- Specified by:
getParameterIndexesin interfaceParameterMetaData- Specified by:
getParameterIndexesin classParameterMetaDataBase- Parameters:
parameterName- The name of the parameter, prefixed by a colon.- Returns:
- The parameter indexes for this parameter name.
- Throws:
SQLException- The given parameter name is not defined.
-
getParameterNames
Retrieves the names of the parameters in theEnhancedPreparedStatementobject for which thisParameterMetaDataobject contains information.- Specified by:
getParameterNamesin interfaceParameterMetaData- Specified by:
getParameterNamesin classParameterMetaDataBase- Returns:
- The names of the parameters.
-
