|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.access.AS400JDBCParameterMetaData
The AS400JDBCParameterMetaData class can be used to retrieve information about the parameters of a PreparedStatement. Use PreparedStatement.getParameterMetaData() to create new ParameterMetaData objects.
Fields inherited from interface java.sql.ParameterMetaData |
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown |
Method Summary | |
java.lang.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. |
java.lang.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. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getParameterClassName(int parameterIndex) throws java.sql.SQLException
getParameterClassName
in interface java.sql.ParameterMetaData
parameterIndex
- The parameter index (1-based).java.sql.SQLException
- If the prepared statement is not open.public int getParameterCount() throws java.sql.SQLException
getParameterCount
in interface java.sql.ParameterMetaData
java.sql.SQLException
- If the prepared statement is not open.public int getParameterMode(int parameterIndex) throws java.sql.SQLException
getParameterMode
in interface java.sql.ParameterMetaData
parameterIndex
- The parameter index (1-based).java.sql.SQLException
- If the prepared statement is not open.public int getParameterType(int parameterIndex) throws java.sql.SQLException
getParameterType
in interface java.sql.ParameterMetaData
parameterIndex
- The parameter index (1-based).java.sql.SQLException
- If the prepared statement is not open.public java.lang.String getParameterTypeName(int parameterIndex) throws java.sql.SQLException
getParameterTypeName
in interface java.sql.ParameterMetaData
parameterIndex
- The parameter index (1-based).java.sql.SQLException
- If the prepared statement is not open.public int getPrecision(int parameterIndex) throws java.sql.SQLException
getPrecision
in interface java.sql.ParameterMetaData
parameterIndex
- The parameter index (1-based).java.sql.SQLException
- If the prepared statement is not open.public int getScale(int parameterIndex) throws java.sql.SQLException
getScale
in interface java.sql.ParameterMetaData
parameterIndex
- The parameter index (1-based).java.sql.SQLException
- If the prepared statement is not open.public int isNullable(int parameterIndex) throws java.sql.SQLException
isNullable
in interface java.sql.ParameterMetaData
parameterIndex
- The parameter index (1-based).java.sql.SQLException
- If the prepared statement is not open.public boolean isSigned(int parameterIndex) throws java.sql.SQLException
isSigned
in interface java.sql.ParameterMetaData
parameterIndex
- The parameter index (1-based).java.sql.SQLException
- If the prepared statement is not open.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |