atg.adapter.gsa
Class DatabaseTypeNameToJDBC

java.lang.Object
  extended by atg.adapter.gsa.DatabaseTypeNameToJDBC

public class DatabaseTypeNameToJDBC
extends java.lang.Object

The purpose of this class is to map from a the database specific type name for a column to the java.sql.Types for that column. Given a DatabaseTableInfo for a given database it will return the jdbc type for the supported GSA types.

Version:
$Id: //test/UnitTests/base/main/src/Java/atg/adapter/gsa/DatabaseTypeNameToJDBC.java#2 $
Author:
adamb
See Also:
Types

Field Summary
 atg.adapter.gsa.DatabaseTableInfo mTableInfo
           
static int UNKNOWN
           
 
Constructor Summary
DatabaseTypeNameToJDBC(atg.adapter.gsa.DatabaseTableInfo pTableInfo)
          Creates a new instance of this class initialized with the given DatabaseTableInfo object.
 
Method Summary
 int databaseTypeNametoJDBCType(java.lang.String pTypeName)
          Given a database specific type name, returns the matching java.sql.Types constant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mTableInfo

public atg.adapter.gsa.DatabaseTableInfo mTableInfo

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values
Constructor Detail

DatabaseTypeNameToJDBC

public DatabaseTypeNameToJDBC(atg.adapter.gsa.DatabaseTableInfo pTableInfo)
Creates a new instance of this class initialized with the given DatabaseTableInfo object.

Parameters:
pTableInfo -
Method Detail

databaseTypeNametoJDBCType

public int databaseTypeNametoJDBCType(java.lang.String pTypeName)
Given a database specific type name, returns the matching java.sql.Types constant. If there is no suitable match this method returns the constant UNKNOWN.

Parameters:
pTypeName -
Returns:


Copyright © 2009. All Rights Reserved.