Open
Description
The JDBC compliance requires java.sql.ParameterMetaData
to be fully implemented.
This issue is about describing Inputs of a PreparedStatement Object and optionally of a CallableStatement.
The method PreparedStatement.getParameterMetaData
returns a ParameterMetaData
object describing the parameter markers that appear in the PreparedStatement object. Methods in the ParameterMetaData interface provide information about the number of parameters and their characteristics.
Example:
PreparedStatement pstmt = conn.prepareStatement(
"SELECT * FROM BOOKLIST WHERE ISBN = ?"
);
ParameterMetaData pmd = pstmt.getParameterMetaData();
int colType = pmd.getParameterType(1);
See the API specification for more details.