@InternalApi public final class JdbcTypeConverter extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
fromFirebirdToJdbcType(int firebirdType,
int subtype,
int scale)
Converts from the Firebird type, subtype and scale to the JDBC type value from
Types . |
static int |
fromMetaDataToFirebirdType(int metaDataType)
Converts the metadata type value to the Firebird type value (null bit not set).
|
static int |
fromMetaDataToJdbcType(int metaDataType,
int subtype,
int scale)
Converts from the metadata type (as used in the system tables) to JDBC type values from
Types . |
static boolean |
isJdbcType(FieldDescriptor fieldDescriptor,
int jdbcType)
Determines if a field descriptor matches a JDBC type value from
Types . |
static int |
toJdbcType(FieldDescriptor fieldDescriptor)
Gets the JDBC type value from
Types for the field descriptor. |
public static int toJdbcType(FieldDescriptor fieldDescriptor)
Types
for the field descriptor.fieldDescriptor
- Field descriptorTypes.OTHER
for unknown typespublic static boolean isJdbcType(FieldDescriptor fieldDescriptor, int jdbcType)
Types
.fieldDescriptor
- Field descritporjdbcType
- JDBC typetrue
if the field descriptor and JDBC type are equivalent (using toJdbcType(FieldDescriptor)
)public static int fromFirebirdToJdbcType(int firebirdType, int subtype, int scale)
Types
.
This method is not capable of identifying Types.ROWID
; this will be identified
as Types.BINARY
instead.
firebirdType
- Firebird type value (from ISCConstants
SQL_*
with or without nullable bit setsubtype
- Subtypescale
- ScaleTypes.OTHER
for unknown typespublic static int fromMetaDataToJdbcType(int metaDataType, int subtype, int scale)
Types
.metaDataType
- Metadata type valuesubtype
- Subtypescale
- ScaleTypes.OTHER
for unknown typespublic static int fromMetaDataToFirebirdType(int metaDataType)
metaDataType
- Metadata type valueCopyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.