| org.apache.derby.iapi.jdbc.EngineParameterMetaData
All known Subclasses: org.apache.derby.impl.jdbc.EmbedParameterSetMetaData,
EngineParameterMetaData | public interface EngineParameterMetaData (Code) | | An internal api only, mainly for use in the network server.
This interface imitates the ParameterMetaData interface from JDBC3.0
We want to provide the ParameterMetaData functionality to JDKs before JDBC3.0.
org.apache.derby.iapi.jdbc.EnginePreparedStatement interface returns an object
of this type on a getEmbedParameterSetMetaData
Once,JDK1.3 stops being supported, this interface can be removed and
instead the JDBC 3.0 Class ParameterMetaData can be used
|
Method Summary | |
public String | getParameterClassName(int param) 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, ... | public int | getParameterCount() Retrieves the number of parameters in the PreparedStatement object for which
this ParameterMetaData object contains information. | public int | getParameterMode(int param) Retrieves the designated parameter's mode.
Parameters: param - - the first parameter is 1, the second is 2, ... | public int | getParameterType(int param) Retrieves the designated parameter's SQL type.
Parameters: param - - the first parameter is 1, the second is 2, ... | public String | getParameterTypeName(int param) Retrieves the designated parameter's database-specific type name.
Parameters: param - - the first parameter is 1, the second is 2, ... | public int | getPrecision(int param) Retrieves the designated parameter's number of decimal digits.
Parameters: param - - the first parameter is 1, the second is 2, ... | public int | getScale(int param) 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, ... | public int | isNullable(int param) Retrieves whether null values are allowed in the designated parameter.
Parameters: param - - the first parameter is 1, the second is 2, ... | public boolean | isSigned(int param) Retrieves whether values for the designated parameter can be signed numbers.
Parameters: param - - the first parameter is 1, the second is 2, ... |
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, ... the fully-qualified name of the class in the Javaprogramming language that would be used by the methodPreparedStatement.setObject to set the value in the specified parameter.This is the class name used for custom mapping. exception: SQLException - if a database access error occurs |
getParameterCount | public int getParameterCount()(Code) | | Retrieves the number of parameters in the PreparedStatement object for which
this ParameterMetaData object contains information.
the number of parameters |
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, ... mode of the parameter; one of ParameterMetaData.parameterModeIn,ParameterMetaData.parameterModeOut, or ParameterMetaData.parameterModeInOutParameterMetaData.parameterModeUnknown. exception: SQLException - if a database access error occurs |
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, ... SQL type from java.sql.Types exception: SQLException - if a database access error occurs |
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, ... type the name used by the database. If the parametertype is a user-defined type, then a fully-qualified type name is returned. exception: SQLException - if a database access error occurs |
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, ... precision exception: SQLException - if a database access error occurs |
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, ... scale exception: SQLException - if a database access error occurs |
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, ... the nullability status of the given parameter; one ofParameterMetaData.parameterNoNulls, ParameterMetaData.parameterNullable, orParameterMetaData.parameterNullableUnknown exception: SQLException - if a database access error occurs |
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, ... true if it can be signed numbers exception: SQLException - if a database access error occurs |
|
|