| java.lang.Object org.apache.derby.impl.jdbc.EmbedParameterSetMetaData
All known Subclasses: org.apache.derby.impl.jdbc.EmbedParameterMetaData30,
EmbedParameterSetMetaData | public class EmbedParameterSetMetaData implements EngineParameterMetaData(Code) | | This class immitates to implement the ParameterMetaData interface from JDBC3.0
We want to provide the functionality to JDKs before JDBC3.0. We put it here
instead of in Local20 because we want to make it available for CallableStatement.
It provides the parameter meta data for callable & prepared statements.
The subclass in Local30 actually implements ParameterMetaData interface.
For use of ParameterMetaData functionality in network server, please do not use
this class directly. Instead use the method available on EnginePreparedStatement
See Also: org.apache.derby.iapi.jdbc.EngineParameterMetaData See Also: org.apache.derby.iapi.jdbc.EnginePreparedStatement |
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 |
|
|