org.postgresql.jdbc2
Class TypeInfoCache
java.lang.Object
org.postgresql.jdbc2.TypeInfoCache
public class TypeInfoCache
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeInfoCache
public TypeInfoCache(BaseConnection conn)
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)