| java.lang.Object org.hsqldb.jdbc.jdbcParameterMetaData
jdbcParameterMetaData | public class jdbcParameterMetaData implements ParameterMetaData(Code) | | An object that can be used to get information about the types and
properties of the parameters in a PreparedStatement object.
author: boucherb@users version: 1.7.2 since: JDK 1.4, HSQLDB 1.7.2 |
Method Summary | |
void | checkRange(int param) Checks if the value of the param argument is a valid parameter
position. | public String | getParameterClassName(int param) Retrieves the fully-qualified name of the Java class whose instances
should be passed to the method PreparedStatement.setObject. | public int | getParameterCount() Retrieves the number of parameters in the PreparedStatement object for
which this ParameterMetaData object provides information. | public int | getParameterMode(int param) Retrieves the designated parameter's mode. | public int | getParameterType(int param) Retrieves the designated parameter's SQL type. | public String | getParameterTypeName(int param) Retrieves the designated parameter's database-specific type name. | public int | getPrecision(int param) Retrieves the designated parameter's number of decimal digits. | public int | getScale(int param) Retrieves the designated parameter's number of digits to right of
the decimal point. | public int | isNullable(int param) Retrieves whether null values are allowed in the designated parameter. | public boolean | isSigned(int param) Retrieves whether values for the designated parameter can be
signed numbers. | public String | toString() Retrieves a String repsentation of this object. |
classNames | String[] classNames(Code) | | The fully-qualified name of the Java class whose instances should
be passed to the method PreparedStatement.setObject.
Note that changes to Function.java and Types.java allow passing
objects of any class implementing java.io.Serializable and that,
as such, the parameter expression resolution mechanism has been
upgraded to provide the precise FQN for SQL function and stored
procedure arguments, rather than the more generic
org.hsqldb.JavaObject class that is used internally to represent
and transport objects whose class is not in the standard mapping.
|
isIdentity | boolean[] isIdentity(Code) | | whether param is assigned directly to identity column
|
modes | int[] modes(Code) | | Parameter mode values
|
nullability | int[] nullability(Code) | | nullability code for site to which param is bound
|
parameterCount | int parameterCount(Code) | | The number of parameters in the described statement
|
types | int[] types(Code) | | The numeric data type codes of the parameters.
|
jdbcParameterMetaData | jdbcParameterMetaData(Result r) throws SQLException(Code) | | Creates a new instance of jdbcParameterMetaData.
Parameters: r - A Result object describing the statement parameters throws: SQLException - never - reserved for future use |
checkRange | void checkRange(int param) throws SQLException(Code) | | Checks if the value of the param argument is a valid parameter
position.
Parameters: param - position to check throws: SQLException - if the value of the param argument is not avalid parameter position |
getParameterClassName | public String getParameterClassName(int param) throws SQLException(Code) | | Retrieves the fully-qualified name of the Java class whose instances
should be passed to the method PreparedStatement.setObject.
Parameters: param - the first parameter is 1, the second is 2, ... throws: SQLException - if a database access error occurs the fully-qualified name of the class in theJava programming language that would beused by the method PreparedStatement.setObjectto set the value in the specified parameter.This is the class name used for custom mapping. since: JDK 1.4, HSQLDB 1.7.2 |
getParameterCount | public int getParameterCount() throws SQLException(Code) | | Retrieves the number of parameters in the PreparedStatement object for
which this ParameterMetaData object provides information.
throws: SQLException - if a database access error occurs the number of parameters since: JDK 1.4, HSQLDB 1.7.2 |
getParameterMode | public int getParameterMode(int param) throws SQLException(Code) | | Retrieves the designated parameter's mode.
Parameters: param - the first parameter is 1, the second is 2, ... throws: SQLException - if a database access error occurs mode of the parameter; one ofParameterMetaData.parameterModeIn,ParameterMetaData.parameterModeOut,ParameterMetaData.parameterModeInOut,ParameterMetaData.parameterModeUnknown since: JDK 1.4, HSQLDB 1.7.2 |
getParameterType | public int getParameterType(int param) throws SQLException(Code) | | Retrieves the designated parameter's SQL type.
Parameters: param - the first parameter is 1, the second is 2, ... throws: SQLException - if a database access error occurs SQL type from java.sql.Types since: JDK 1.4, HSQLDB 1.7.2 See Also: java.sql.Types |
getParameterTypeName | public String getParameterTypeName(int param) throws SQLException(Code) | | Retrieves the designated parameter's database-specific type name.
Parameters: param - the first parameter is 1, the second is 2, ... throws: SQLException - if a database access error occurs type the name used by the database.If the parameter type is a user-definedtype, then a fully-qualified type name isreturned. since: JDK 1.4, HSQLDB 1.7.2 |
getPrecision | public int getPrecision(int param) throws SQLException(Code) | | Retrieves the designated parameter's number of decimal digits.
Parameters: param - the first parameter is 1, the second is 2, ... throws: SQLException - if a database access error occurs precision since: JDK 1.4, HSQLDB 1.7.2 |
getScale | public int getScale(int param) throws SQLException(Code) | | Retrieves the designated parameter's number of digits to right of
the decimal point.
Parameters: param - the first parameter is 1, the second is 2, ... throws: SQLException - if a database access error occurs scale since: JDK 1.4, HSQLDB 1.7.2 |
isNullable | public int isNullable(int param) throws SQLException(Code) | | Retrieves whether null values are allowed in the designated parameter.
Parameters: param - the first parameter is 1, the second is 2, ... throws: SQLException - if a database access error occurs the nullability status of the given parameter; one ofParameterMetaData.parameterNoNulls,ParameterMetaData.parameterNullable orParameterMetaData.parameterNullableUnknown since: JDK 1.4, HSQLDB 1.7.2 |
isSigned | public boolean isSigned(int param) throws SQLException(Code) | | Retrieves whether values for the designated parameter can be
signed numbers.
Parameters: param - the first parameter is 1, the second is 2, ... throws: SQLException - if a database access error occurs true if so; false otherwise since: JDK 1.4, HSQLDB 1.7.2 |
toString | public String toString()(Code) | | Retrieves a String repsentation of this object.
a String repsentation of this object |
|
|