public class JdbcParameterMetaData extends TraceObject implements ParameterMetaData
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, STATEMENT, trace, XA_DATA_SOURCE, XID
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
Modifier and Type | Method and Description |
---|---|
String |
getParameterClassName(int param)
Returns the Java class name of the parameter.
|
int |
getParameterCount()
Returns the number of parameters.
|
int |
getParameterMode(int param)
Returns the parameter mode.
|
int |
getParameterType(int param)
Returns the parameter type.
|
String |
getParameterTypeName(int param)
Returns the parameter type name.
|
int |
getPrecision(int param)
Returns the parameter precision.
|
int |
getScale(int param)
Returns the parameter scale.
|
int |
isNullable(int param)
Checks if this is nullable parameter.
|
boolean |
isSigned(int param)
Checks if this parameter is signed.
|
boolean |
isWrapperFor(Class<?> iface)
Checks if unwrap can return an object of this class.
|
String |
toString()
INTERNAL
|
<T> T |
unwrap(Class<T> iface)
Return an object of this class if possible.
|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
public int getParameterCount() throws SQLException
getParameterCount
in interface ParameterMetaData
SQLException
public int getParameterMode(int param) throws SQLException
getParameterMode
in interface ParameterMetaData
param
- the column index (1,2,...)SQLException
public int getParameterType(int param) throws SQLException
getParameterType
in interface ParameterMetaData
param
- the column index (1,2,...)SQLException
public int getPrecision(int param) throws SQLException
getPrecision
in interface ParameterMetaData
param
- the column index (1,2,...)SQLException
public int getScale(int param) throws SQLException
getScale
in interface ParameterMetaData
param
- the column index (1,2,...)SQLException
public int isNullable(int param) throws SQLException
isNullable
in interface ParameterMetaData
param
- the column index (1,2,...)SQLException
public boolean isSigned(int param) throws SQLException
isSigned
in interface ParameterMetaData
param
- the column index (1,2,...)SQLException
public String getParameterClassName(int param) throws SQLException
getParameterClassName
in interface ParameterMetaData
param
- the column index (1,2,...)SQLException
public String getParameterTypeName(int param) throws SQLException
getParameterTypeName
in interface ParameterMetaData
param
- the column index (1,2,...)SQLException
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
iface
- the classSQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
iface
- the classSQLException
Copyright © 2020 JBoss by Red Hat. All rights reserved.