ParameterMetaData
, Wrapper
public class AS400JDBCParameterMetaData extends Object implements ParameterMetaData
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
Modifier and Type | Method | Description |
---|---|---|
String |
getDB2ParameterName(int parameterIndex) |
Returns the name of the specified parameter.
|
int |
getParameterCCSID(int parameterIndex) |
Returns the CCSID of the specified parameter.
|
String |
getParameterClassName(int parameterIndex) |
Returns the fully-qualified name of the Java class of the specified parameter.
|
int |
getParameterCount() |
Returns the number of parameters in this ParameterMetaData object.
|
int |
getParameterMode(int parameterIndex) |
Returns the mode of the specified parameter or if that information is unknown.
|
int |
getParameterType(int parameterIndex) |
Returns the SQL type of the specified parameter.
|
String |
getParameterTypeName(int parameterIndex) |
Returns the database-specific type name of the specified parameter.
|
int |
getPrecision(int parameterIndex) |
Returns the number of decimal digits of the specified parameter.
|
int |
getScale(int parameterIndex) |
Returns the number of digits to the right of the decimal point
of the specified parameter.
|
protected String[] |
getValidWrappedList() |
|
int |
isNullable(int parameterIndex) |
Returns if the specified parameter can be null or that information is unknown.
|
boolean |
isSigned(int parameterIndex) |
Returns if values can be signed numbers for the specified parameter.
|
boolean |
isWrapperFor(Class<?> iface) |
Returns true if this either implements the interface argument or is
directly or indirectly a wrapper for an object that does.
|
<T> T |
unwrap(Class<T> iface) |
Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWrapperFor, unwrap
public String getDB2ParameterName(int parameterIndex) throws SQLException
parameterIndex
- The parameter index (1-based).SQLException
- If the prepared statement is not open.public String getParameterClassName(int parameterIndex) throws SQLException
getParameterClassName
in interface ParameterMetaData
parameterIndex
- The parameter index (1-based).SQLException
- If the prepared statement is not open.public int getParameterCount() throws SQLException
getParameterCount
in interface ParameterMetaData
SQLException
- If the prepared statement is not open.public int getParameterMode(int parameterIndex) throws SQLException
getParameterMode
in interface ParameterMetaData
parameterIndex
- The parameter index (1-based).SQLException
- If the prepared statement is not open.public int getParameterType(int parameterIndex) throws SQLException
getParameterType
in interface ParameterMetaData
parameterIndex
- The parameter index (1-based).SQLException
- If the prepared statement is not open.public int getParameterCCSID(int parameterIndex) throws SQLException
parameterIndex
- The parameter index (1-based).SQLException
- If the prepared statement is not open.public String getParameterTypeName(int parameterIndex) throws SQLException
getParameterTypeName
in interface ParameterMetaData
parameterIndex
- The parameter index (1-based).SQLException
- If the prepared statement is not open.public int getPrecision(int parameterIndex) throws SQLException
getPrecision
in interface ParameterMetaData
parameterIndex
- The parameter index (1-based).SQLException
- If the prepared statement is not open.public int getScale(int parameterIndex) throws SQLException
getScale
in interface ParameterMetaData
parameterIndex
- The parameter index (1-based).SQLException
- If the prepared statement is not open.public int isNullable(int parameterIndex) throws SQLException
isNullable
in interface ParameterMetaData
parameterIndex
- The parameter index (1-based).SQLException
- If the prepared statement is not open.public boolean isSigned(int parameterIndex) throws SQLException
isSigned
in interface ParameterMetaData
parameterIndex
- The parameter index (1-based).SQLException
- If the prepared statement is not open.protected String[] getValidWrappedList()
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
on the wrapped object. If this does not
implement the interface and is not a wrapper, return false. This method
should be implemented as a low-cost operation compared to
unwrap
so that callers can use this method to avoid
expensive unwrap
calls that may fail. If this method
returns true then calling unwrap
with the same argument
should succeed.isWrapperFor
in interface Wrapper
iface
- a Class defining an interface.SQLException
- If a database error occurs.
if an error occurs while determining whether this is a
wrapper for an object with the given interface.public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
recursively on the wrapped object or a
proxy for that result. If the receiver is not a wrapper and does not
implement the interface, then an SQLException
is thrown.unwrap
in interface Wrapper
iface
- A Class defining an interface that the result must implement.SQLException
- If a database error occurs.
If no object found that implements the interfaceCopyright © 2024. All rights reserved.