|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.access.AS400JDBCParameterMetaData
public class AS400JDBCParameterMetaData extends Object implements ParameterMetaData
The AS400JDBCParameterMetaData class can be used to retrieve information about the parameters of a PreparedStatement. Use PreparedStatement.getParameterMetaData() to create new ParameterMetaData objects.
| Modifier and Type | Field and Description |
|---|
| Fields inherited from interface java.sql.ParameterMetaData |
|---|
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown |
| Modifier and Type | Method and Description |
|---|---|
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. |
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 |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Method Detail |
|---|
public String getParameterClassName(int parameterIndex)
throws SQLException
getParameterClassName in interface ParameterMetaDataparameterIndex - The parameter index (1-based).SQLException - If the prepared statement is not open.
public int getParameterCount()
throws SQLException
getParameterCount in interface ParameterMetaDataSQLException - If the prepared statement is not open.
public int getParameterMode(int parameterIndex)
throws SQLException
getParameterMode in interface ParameterMetaDataparameterIndex - The parameter index (1-based).SQLException - If the prepared statement is not open.
public int getParameterType(int parameterIndex)
throws SQLException
getParameterType in interface ParameterMetaDataparameterIndex - The parameter index (1-based).SQLException - If the prepared statement is not open.
public String getParameterTypeName(int parameterIndex)
throws SQLException
getParameterTypeName in interface ParameterMetaDataparameterIndex - The parameter index (1-based).SQLException - If the prepared statement is not open.
public int getPrecision(int parameterIndex)
throws SQLException
getPrecision in interface ParameterMetaDataparameterIndex - The parameter index (1-based).SQLException - If the prepared statement is not open.
public int getScale(int parameterIndex)
throws SQLException
getScale in interface ParameterMetaDataparameterIndex - The parameter index (1-based).SQLException - If the prepared statement is not open.
public int isNullable(int parameterIndex)
throws SQLException
isNullable in interface ParameterMetaDataparameterIndex - The parameter index (1-based).SQLException - If the prepared statement is not open.
public boolean isSigned(int parameterIndex)
throws SQLException
isSigned in interface ParameterMetaDataparameterIndex - The parameter index (1-based).SQLException - If the prepared statement is not open.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||