public class FBParameterMetaData extends AbstractFieldMetaData implements FirebirdParameterMetaData
PreparedStatement
object.AbstractFieldMetaData.ExtendedFieldInfo, AbstractFieldMetaData.FieldKey
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
Modifier | Constructor and Description |
---|---|
protected |
FBParameterMetaData(RowDescriptor rowDescriptor,
FBConnection connection)
Creates a new
FBParameterMetaData instance. |
Modifier and Type | Method and Description |
---|---|
protected Map<AbstractFieldMetaData.FieldKey,AbstractFieldMetaData.ExtendedFieldInfo> |
getExtendedFieldInfo(FBConnection connection)
This method retrieves extended information from the system tables in
a database.
|
String |
getParameterClassName(int parameter) |
int |
getParameterCount() |
int |
getParameterMode(int parameter) |
int |
getParameterType(int parameter) |
String |
getParameterTypeName(int parameter) |
int |
getPrecision(int parameter) |
int |
getScale(int parameter) |
int |
isNullable(int parameter) |
boolean |
isSigned(int parameter) |
estimateFixedPrecision, getExtFieldInfo, getFieldClassName, getFieldCount, getFieldDescriptor, getFieldType, getFieldTypeName, getPrecisionInternal, getRowDescriptor, getScaleInternal, isSignedInternal, isWrapperFor, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWrapperFor, unwrap
protected FBParameterMetaData(RowDescriptor rowDescriptor, FBConnection connection) throws SQLException
FBParameterMetaData
instance.rowDescriptor
- a row descriptorconnection
- a FBConnection
valueSQLException
- if an error occurspublic int getParameterCount() throws SQLException
getParameterCount
in interface ParameterMetaData
SQLException
public int isNullable(int parameter) throws SQLException
isNullable
in interface ParameterMetaData
SQLException
public boolean isSigned(int parameter) throws SQLException
isSigned
in interface ParameterMetaData
SQLException
public int getPrecision(int parameter) throws SQLException
NOTE For NUMERIC
and DECIMAL
the reported precision is the maximum precision
allowed by the underlying storage data type, it is not the declared precision.
getPrecision
in interface ParameterMetaData
SQLException
public int getScale(int parameter) throws SQLException
getScale
in interface ParameterMetaData
SQLException
public int getParameterType(int parameter) throws SQLException
getParameterType
in interface ParameterMetaData
SQLException
public String getParameterTypeName(int parameter) throws SQLException
getParameterTypeName
in interface ParameterMetaData
SQLException
public String getParameterClassName(int parameter) throws SQLException
getParameterClassName
in interface ParameterMetaData
SQLException
public int getParameterMode(int parameter) throws SQLException
getParameterMode
in interface ParameterMetaData
SQLException
protected Map<AbstractFieldMetaData.FieldKey,AbstractFieldMetaData.ExtendedFieldInfo> getExtendedFieldInfo(FBConnection connection) throws SQLException
FBParameterMetaData
does not support extended field info, so it always returns an empty Map.
getExtendedFieldInfo
in class AbstractFieldMetaData
AbstractFieldMetaData.FieldKey
instances and AbstractFieldMetaData.ExtendedFieldInfo
instances,
or an empty Map if the metadata implementation does not support extended info.SQLException
- if a database error occurs while obtaining extended field information.Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.