public class TypeInfoMap
extends java.lang.Object
A TypeInfoMap maps JDBC types to database-specific type information, including the database-specific type name, and creation parameters. The TypeInfoMap must be created using a JDBC connection, which uses the JDBC metadata to obtain this mapping.
Types
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
TypeInfoMap(java.sql.Connection pConnection)
Creates and returns a new TypeInfoMap with the map determined
using the database metadata obtained from the given connection.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDatabaseProductName() |
TypeInfo |
getTypeInfo(int pJDBCType)
Returns the TypeInfo associated with the given JDBC type, or null
if the database does not support that JDBC type.
|
void |
setDatabaseProductName(java.lang.String pDatabaseProductName)
Sets the property DatabaseProductName.
|
public TypeInfoMap(java.sql.Connection pConnection) throws java.sql.SQLException
java.sql.SQLException
- if unable to obtain the metadatapublic TypeInfo getTypeInfo(int pJDBCType)
public void setDatabaseProductName(java.lang.String pDatabaseProductName)
public java.lang.String getDatabaseProductName()