public class FBParameterMetaData extends java.lang.Object implements FirebirdParameterMetaData
FBParameterMetaData here.parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown| Modifier | Constructor and Description |
|---|---|
protected |
FBParameterMetaData(XSQLVAR[] xsqlvars,
org.firebirdsql.gds.impl.GDSHelper connection)
Creates a new
FBParameterMetaData instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getParameterClassName(int parameter)
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 contains
information. |
int |
getParameterMode(int param)
Retrieves the designated parameter's mode.
|
int |
getParameterType(int parameter)
Retrieves the designated parameter's SQL type.
|
java.lang.String |
getParameterTypeName(int parameter)
Retrieves the designated parameter's database-specific type name.
|
int |
getPrecision(int parameter)
Retrieves the designated parameter's number of decimal digits.
|
int |
getScale(int parameter)
Retrieves the designated parameter's number of digits to right of the decimal point.
|
int |
isNullable(int parameter)
Retrieves whether null values are allowed in the designated parameter.
|
boolean |
isSigned(int parameter)
Retrieves whether values for the designated parameter can be signed numbers.
|
boolean |
isWrapperFor(java.lang.Class<?> iface) |
<T> T |
unwrap(java.lang.Class<T> iface) |
protected FBParameterMetaData(XSQLVAR[] xsqlvars, org.firebirdsql.gds.impl.GDSHelper connection) throws java.sql.SQLException
FBParameterMetaData instance.xsqlvars - a XSQLVAR[] valueconnection - a AbstractConnection valuejava.sql.SQLException - if an error occurspublic int getParameterCount()
PreparedStatement
object for which this ParameterMetaData object contains
information.getParameterCount in interface java.sql.ParameterMetaDatagetParameterCount in interface FirebirdParameterMetaDatajava.sql.SQLException - if a database access error occurspublic int isNullable(int parameter)
throws java.sql.SQLException
isNullable in interface java.sql.ParameterMetaDataisNullable in interface FirebirdParameterMetaDataparameter - the first parameter is 1, the second is 2, ...ParameterMetaData.parameterNoNulls,
ParameterMetaData.parameterNullable, or
ParameterMetaData.parameterNullableUnknownjava.sql.SQLException - if a database access error occurspublic boolean isSigned(int parameter)
throws java.sql.SQLException
isSigned in interface java.sql.ParameterMetaDataisSigned in interface FirebirdParameterMetaDataparameter - the first parameter is 1, the second is 2, ...true if so; false otherwisejava.sql.SQLException - if a database access error occurspublic int getPrecision(int parameter)
throws java.sql.SQLException
getPrecision in interface java.sql.ParameterMetaDatagetPrecision in interface FirebirdParameterMetaDataparameter - the first parameter is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic int getScale(int parameter)
throws java.sql.SQLException
getScale in interface java.sql.ParameterMetaDatagetScale in interface FirebirdParameterMetaDataparameter - the first parameter is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic int getParameterType(int parameter)
throws java.sql.SQLException
getParameterType in interface java.sql.ParameterMetaDatagetParameterType in interface FirebirdParameterMetaDataparameter - the first parameter is 1, the second is 2, ...java.sql.Typesjava.sql.SQLException - if a database access error occursTypespublic java.lang.String getParameterTypeName(int parameter)
throws java.sql.SQLException
getParameterTypeName in interface java.sql.ParameterMetaDatagetParameterTypeName in interface FirebirdParameterMetaDataparameter - the first parameter is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic java.lang.String getParameterClassName(int parameter)
throws java.sql.SQLException
PreparedStatement.setObject.getParameterClassName in interface java.sql.ParameterMetaDatagetParameterClassName in interface FirebirdParameterMetaDataparameter - the first parameter is 1, the second is 2, ...PreparedStatement.setObject to set the value
in the specified parameter. This is the class name used
for custom mapping.java.sql.SQLException - if a database access error occurspublic int getParameterMode(int param)
throws java.sql.SQLException
getParameterMode in interface java.sql.ParameterMetaDatagetParameterMode in interface FirebirdParameterMetaDataparam - the first parameter is 1, the second is 2, ...ParameterMetaData.parameterModeIn,
ParameterMetaData.parameterModeOut, or
ParameterMetaData.parameterModeInOut
ParameterMetaData.parameterModeUnknown.java.sql.SQLException - if a database access error occurspublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionCopyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.