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.ParameterMetaData
getParameterCount
in interface FirebirdParameterMetaData
java.sql.SQLException
- if a database access error occurspublic int isNullable(int parameter) throws java.sql.SQLException
isNullable
in interface java.sql.ParameterMetaData
isNullable
in interface FirebirdParameterMetaData
parameter
- the first parameter is 1, the second is 2, ...ParameterMetaData.parameterNoNulls
,
ParameterMetaData.parameterNullable
, or
ParameterMetaData.parameterNullableUnknown
java.sql.SQLException
- if a database access error occurspublic boolean isSigned(int parameter) throws java.sql.SQLException
isSigned
in interface java.sql.ParameterMetaData
isSigned
in interface FirebirdParameterMetaData
parameter
- 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.ParameterMetaData
getPrecision
in interface FirebirdParameterMetaData
parameter
- 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.ParameterMetaData
getScale
in interface FirebirdParameterMetaData
parameter
- 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.ParameterMetaData
getParameterType
in interface FirebirdParameterMetaData
parameter
- the first parameter is 1, the second is 2, ...java.sql.Types
java.sql.SQLException
- if a database access error occursTypes
public java.lang.String getParameterTypeName(int parameter) throws java.sql.SQLException
getParameterTypeName
in interface java.sql.ParameterMetaData
getParameterTypeName
in interface FirebirdParameterMetaData
parameter
- 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.ParameterMetaData
getParameterClassName
in interface FirebirdParameterMetaData
parameter
- 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.ParameterMetaData
getParameterMode
in interface FirebirdParameterMetaData
param
- 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.Wrapper
java.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException
Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.