1.50.39

interbase.interclient
Class ParameterMetaData

java.lang.Object
  |
  +--interbase.interclient.ParameterMetaData

public final class ParameterMetaData
extends Object

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.

ParameterMetaData is extracted from a PreparedStatement using PreparedStatement.getParameterMetaData (). This provides a means to get metadata describing the input parameters to a 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.

Since:
Extension
See Also:
PreparedStatement.getParameterMetaData()

Method Summary
 int getParameterCount()
          How many parameters are there.
 int getParameterType(int parameterIndex)
          SQL Type id from java.sql.Types for input parameter.
 String getParameterTypeName(int parameterIndex)
          Get the InterBase type name for an input parameter.
 int getPrecision(int parameterIndex)
          Get the number of decimal digits.
 int getScale(int parameterIndex)
          Number of digits to the right of decimal.
 boolean isNullable(int parameterIndex)
          Can you put a null for this parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getParameterCount

public int getParameterCount()
                      throws SQLException
How many parameters are there.
Throws:
SQLException - if a database access error occurs
Since:
Extension

getParameterType

public int getParameterType(int parameterIndex)
                     throws SQLException
SQL Type id from java.sql.Types for input parameter.
Throws:
SQLException - if a database access error occurs
Since:
Extension
See Also:
java.sql.Types

getParameterTypeName

public String getParameterTypeName(int parameterIndex)
                            throws SQLException
Get the InterBase type name for an input parameter.
Throws:
SQLException - if a database access error occurs
Since:
Extension

getPrecision

public int getPrecision(int parameterIndex)
                 throws SQLException
Get the number of decimal digits.
Throws:
SQLException - if a database access error occurs
Since:
Extension, behavior subject to further functional refinement

getScale

public int getScale(int parameterIndex)
             throws SQLException
Number of digits to the right of decimal.
Throws:
SQLException - if a database access error occurs
Since:
Extension

isNullable

public boolean isNullable(int parameterIndex)
                   throws SQLException
Can you put a null for this parameter.
Throws:
SQLException - if a database access error occurs
Since:
Extension

1.50.39

Send comments or suggestions to icsupport@interbase.com