atg.rview
Class TypeInfoMap

java.lang.Object
  extended by atg.rview.TypeInfoMap

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.

See Also:
Types

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
TypeInfoMap(java.sql.Connection pConnection)
          Creates and returns a new TypeInfoMap with the map determined using the database metadata obtained from the given connection.
 
Method Summary
 TypeInfo getTypeInfo(int pJDBCType)
          Returns the TypeInfo associated with the given JDBC type, or null if the database does not support that JDBC type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

TypeInfoMap

public TypeInfoMap(java.sql.Connection pConnection)
            throws java.sql.SQLException
Creates and returns a new TypeInfoMap with the map determined using the database metadata obtained from the given connection. If a JDBC type is defined more than once, the first entry is used.

Throws:
java.sql.SQLException - if unable to obtain the metadata
Method Detail

getTypeInfo

public TypeInfo getTypeInfo(int pJDBCType)
Returns the TypeInfo associated with the given JDBC type, or null if the database does not support that JDBC type.