|
2.50.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--interbase.interclient.ParameterMetaData
Describes input column information for the parameters of a prepared statement.
ParameterMetaData is an InterClient extension to JDBC for describing the parameters to a prepared statement dynamically.
ParameterMetaData is extracted from a PreparedStatement
using
PreparedStatement.getParameterMetaData()
.
This provides a means to get metadata describing
the input parameters to a dynamically prepared
statement (SQL DESCRIBE INPUT
functionality).
This class was proposed for inclusion in JDBC 2.0, but was rejected due to lack of underlying support of some RDBMS vendors.
Method Summary | |
int |
getArrayBaseType(int parameterIndex)
Gets an array parameter's base SQL type. |
int[][] |
getArrayDimensions(int parameterIndex)
Gets an array parameters dimension and bounds. |
int |
getParameterCount()
Gets the number of input parameters of a dynamically prepared statement. |
int |
getParameterType(int parameterIndex)
Gets the parameter SQL type for an input column of a prepared statement. |
String |
getParameterTypeName(int parameterIndex)
Gets the InterBase type name for an input column. |
int |
getPrecision(int parameterIndex)
Gets the number of decimal digits for an input column. |
int |
getScale(int parameterIndex)
Gets the number of digits to the right of the decimal for an input column. |
boolean |
isNullable(int parameterIndex)
Can you put a null for this input column. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getParameterCount() throws SQLException
SQLException
- if a database access error occurspublic int getParameterType(int parameterIndex) throws SQLException
java.sql.Types
SQLException
- if a database access error occurspublic String getParameterTypeName(int parameterIndex) throws SQLException
SQLException
- if a database access error occurspublic int getPrecision(int parameterIndex) throws SQLException
SQLException
- if a database access error occurspublic int getScale(int parameterIndex) throws SQLException
SQLException
- if a database access error occurspublic boolean isNullable(int parameterIndex) throws SQLException
SQLException
- if a database access error occurspublic int getArrayBaseType(int parameterIndex) throws SQLException
java.sql.Types.ARRAY
.parameterIndex
- the first parameter is 1, the second is 2, ...SQLException
- if a database access error occursjava.sql.Types
public int[][] getArrayDimensions(int parameterIndex) throws SQLException
java.sql.Types.ARRAY
.parameterIndex
- the first parameter is 1, the second is 2, ...SQLException
- if a database access error occurs
|
2.50.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |