java.lang.Object
org.firebirdsql.jdbc.metadata.TypeMetadata
Helper class to determine type metadata conforming to expectations of
DatabaseMetaData.- Since:
- 4.0
- Author:
- Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptionstatic intgetDataType(int sqlType, int sqlSubType, int sqlScale, int characterSetId) Derives the JDBC data type fromTypesorJaybirdTypeCodesfrom metadata information.static StringgetDataTypeName(int sqlType, int sqlSubType, int sqlScale) Derives the JDBC/SQL type name from metadata information.
-
Method Details
-
getDataType
public static int getDataType(int sqlType, int sqlSubType, int sqlScale, int characterSetId) Derives the JDBC data type fromTypesorJaybirdTypeCodesfrom metadata information.- Parameters:
sqlType- Firebird type code as used in the metadata tablessqlSubType- Firebird subtype code as used in the metadata tablessqlScale- Firebird scale as used in the metadata tablescharacterSetId- Character set id as used in the metadata tables- Returns:
- JDBC data type code.
-
getDataTypeName
Derives the JDBC/SQL type name from metadata information.- Parameters:
sqlType- Firebird type code as used in the metadata tablessqlSubType- Firebird subtype code as used in the metadata tablessqlScale- Firebird scale as used in the metadata tables- Returns:
- JDBC/SQL type name
-