|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.postgresql.jdbc2.TypeInfoCache
public class TypeInfoCache
| Constructor Summary | |
|---|---|
TypeInfoCache(BaseConnection conn,
int unknownLength)
|
|
| Method Summary | |
|---|---|
void |
addCoreType(String pgTypeName,
Integer oid,
Integer sqlType,
String javaClass,
Integer arrayOid)
|
void |
addDataType(String type,
Class klass)
|
protected int |
convertArrayToBaseOid(int oid)
Return the oid of the array's base element if it's an array, if not return the provided oid. |
char |
getArrayDelimiter(int oid)
Determine the delimiter for the elements of the given array type oid. |
int |
getDisplaySize(int oid,
int typmod)
|
String |
getJavaClass(int oid)
|
int |
getMaximumPrecision(int oid)
|
int |
getPGArrayElement(int oid)
Look up the oid of an array's base type given the array's type oid. |
int |
getPGArrayType(String elementTypeName)
Determine the oid of the given base postgresql type's array type |
Class |
getPGobject(String type)
|
String |
getPGType(int oid)
Look up the postgresql type name for a given oid. |
int |
getPGType(String pgTypeName)
Look up the oid for a given postgresql type name. |
Iterator |
getPGTypeNamesWithSQLTypes()
|
int |
getPrecision(int oid,
int typmod)
|
int |
getScale(int oid,
int typmod)
|
int |
getSQLType(int oid)
Look up the SQL typecode for a given type oid. |
int |
getSQLType(String pgTypeName)
Look up the SQL typecode for a given postgresql type name. |
String |
getTypeForAlias(String alias)
|
boolean |
isCaseSensitive(int oid)
|
boolean |
isSigned(int oid)
|
boolean |
requiresQuoting(int oid)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeInfoCache(BaseConnection conn,
int unknownLength)
| Method Detail |
|---|
public void addCoreType(String pgTypeName,
Integer oid,
Integer sqlType,
String javaClass,
Integer arrayOid)
addCoreType in interface TypeInfo
public void addDataType(String type,
Class klass)
throws SQLException
addDataType in interface TypeInfoSQLExceptionpublic Iterator getPGTypeNamesWithSQLTypes()
getPGTypeNamesWithSQLTypes in interface TypeInfo
public int getSQLType(int oid)
throws SQLException
TypeInfo
getSQLType in interface TypeInfooid - the type's OID
Types)
for the type
SQLException
public int getSQLType(String pgTypeName)
throws SQLException
TypeInfo
getSQLType in interface TypeInfopgTypeName - the server type name to look up
Types)
for the type
SQLException
public int getPGType(String pgTypeName)
throws SQLException
TypeInfoTypeInfo.getPGType(int).
getPGType in interface TypeInfopgTypeName - the server type name to look up
SQLException
public String getPGType(int oid)
throws SQLException
TypeInfoTypeInfo.getPGType(String).
getPGType in interface TypeInfooid - the type's OID
SQLException
public int getPGArrayType(String elementTypeName)
throws SQLException
TypeInfo
getPGArrayType in interface TypeInfoelementTypeName - the base type's
SQLExceptionprotected int convertArrayToBaseOid(int oid)
public char getArrayDelimiter(int oid)
throws SQLException
TypeInfo
getArrayDelimiter in interface TypeInfooid - the array type's OID
SQLException
public int getPGArrayElement(int oid)
throws SQLException
TypeInfo
getPGArrayElement in interface TypeInfooid - the array type's OID
SQLExceptionpublic Class getPGobject(String type)
getPGobject in interface TypeInfo
public String getJavaClass(int oid)
throws SQLException
getJavaClass in interface TypeInfoSQLExceptionpublic String getTypeForAlias(String alias)
getTypeForAlias in interface TypeInfo
public int getPrecision(int oid,
int typmod)
getPrecision in interface TypeInfo
public int getScale(int oid,
int typmod)
getScale in interface TypeInfopublic boolean isCaseSensitive(int oid)
isCaseSensitive in interface TypeInfopublic boolean isSigned(int oid)
isSigned in interface TypeInfo
public int getDisplaySize(int oid,
int typmod)
getDisplaySize in interface TypeInfopublic int getMaximumPrecision(int oid)
getMaximumPrecision in interface TypeInfo
public boolean requiresQuoting(int oid)
throws SQLException
requiresQuoting in interface TypeInfoSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||