org.postgresql.jdbc2
Class TypeInfoCache

java.lang.Object
  extended by org.postgresql.jdbc2.TypeInfoCache

public class TypeInfoCache
extends java.lang.Object


Constructor Summary
TypeInfoCache(BaseConnection conn)
           
 
Method Summary
 void addDataType(java.lang.String type, java.lang.Class klass)
           
static int getDisplaySize(int oid, int typmod)
           
 java.lang.String getJavaClass(int oid)
           
static int getMaximumPrecision(int oid)
           
 java.lang.Class getPGobject(java.lang.String type)
           
 java.lang.String getPGType(int oid)
           
 int getPGType(java.lang.String pgTypeName)
           
static java.util.Iterator getPGTypeNamesWithSQLTypes()
           
static int getPrecision(int oid, int typmod)
           
static int getScale(int oid, int typmod)
           
 int getSQLType(int oid)
           
static int getSQLType(java.lang.String pgTypeName)
           
static boolean isCaseSensitive(int oid)
           
static boolean isSigned(int oid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeInfoCache

public TypeInfoCache(BaseConnection conn)
Method Detail

addDataType

public void addDataType(java.lang.String type,
                        java.lang.Class klass)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getPGTypeNamesWithSQLTypes

public static java.util.Iterator getPGTypeNamesWithSQLTypes()

getSQLType

public int getSQLType(int oid)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getSQLType

public static int getSQLType(java.lang.String pgTypeName)

getPGType

public int getPGType(java.lang.String pgTypeName)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

getPGType

public java.lang.String getPGType(int oid)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

getPGobject

public java.lang.Class getPGobject(java.lang.String type)

getJavaClass

public java.lang.String getJavaClass(int oid)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

getPrecision

public static int getPrecision(int oid,
                               int typmod)

getScale

public static int getScale(int oid,
                           int typmod)

isCaseSensitive

public static boolean isCaseSensitive(int oid)

isSigned

public static boolean isSigned(int oid)

getDisplaySize

public static int getDisplaySize(int oid,
                                 int typmod)

getMaximumPrecision

public static int getMaximumPrecision(int oid)