org.hsqldb.jdbc
Class jdbcParameterMetaData
java.lang.Object
org.hsqldb.jdbc.jdbcParameterMetaData
- ParameterMetaData
public class jdbcParameterMetaData
extends java.lang.Object
implements ParameterMetaData
An object that can be used to get information about the types and
properties of the parameters in a PreparedStatement object.
String | getParameterClassName(int param) - Retrieves the fully-qualified name of the Java class whose instances
should be passed to the method PreparedStatement.setObject.
|
int | getParameterCount() - Retrieves the number of parameters in the PreparedStatement object for
which this ParameterMetaData object provides information.
|
int | getParameterMode(int param) - Retrieves the designated parameter's mode.
|
int | getParameterType(int param) - Retrieves the designated parameter's SQL type.
|
String | getParameterTypeName(int param) - Retrieves the designated parameter's database-specific type name.
|
int | getPrecision(int param) - Retrieves the designated parameter's number of decimal digits.
|
int | getScale(int param) - Retrieves the designated parameter's number of digits to right of
the decimal point.
|
int | isNullable(int param) - Retrieves whether null values are allowed in the designated parameter.
|
boolean | isSigned(int param) - Retrieves whether values for the designated parameter can be
signed numbers.
|
String | toString() - Retrieves a String repsentation of this object.
|
getParameterClassName
public String getParameterClassName(int param)
throws SQLException
Retrieves the fully-qualified name of the Java class whose instances
should be passed to the method PreparedStatement.setObject.
param
- the first parameter is 1, the second is 2, ...
- the fully-qualified name of the class in the
Java programming language that would be
used by the method PreparedStatement.setObject
to set the value in the specified parameter.
This is the class name used for custom mapping.
getParameterCount
public int getParameterCount()
throws SQLException
Retrieves the number of parameters in the PreparedStatement object for
which this ParameterMetaData object provides information.
getParameterMode
public int getParameterMode(int param)
throws SQLException
Retrieves the designated parameter's mode.
param
- the first parameter is 1, the second is 2, ...
- mode of the parameter; one of
ParameterMetaData.parameterModeIn,
ParameterMetaData.parameterModeOut,
ParameterMetaData.parameterModeInOut,
ParameterMetaData.parameterModeUnknown
getParameterType
public int getParameterType(int param)
throws SQLException
Retrieves the designated parameter's SQL type.
param
- the first parameter is 1, the second is 2, ...
- SQL type from java.sql.Types
getParameterTypeName
public String getParameterTypeName(int param)
throws SQLException
Retrieves the designated parameter's database-specific type name.
param
- the first parameter is 1, the second is 2, ...
- type the name used by the database.
If the parameter type is a user-defined
type, then a fully-qualified type name is
returned.
getPrecision
public int getPrecision(int param)
throws SQLException
Retrieves the designated parameter's number of decimal digits.
param
- the first parameter is 1, the second is 2, ...
getScale
public int getScale(int param)
throws SQLException
Retrieves the designated parameter's number of digits to right of
the decimal point.
param
- the first parameter is 1, the second is 2, ...
isNullable
public int isNullable(int param)
throws SQLException
Retrieves whether null values are allowed in the designated parameter.
param
- the first parameter is 1, the second is 2, ...
- the nullability status of the given parameter; one of
ParameterMetaData.parameterNoNulls,
ParameterMetaData.parameterNullable or
ParameterMetaData.parameterNullableUnknown
isSigned
public boolean isSigned(int param)
throws SQLException
Retrieves whether values for the designated parameter can be
signed numbers.
param
- the first parameter is 1, the second is 2, ...
- true if so; false otherwise
toString
public String toString()
Retrieves a String repsentation of this object.
- a String repsentation of this object
Copyright B) 2001 - 2005 HSQL Development Group. All Rights Reserved.