public interface TypeInfo
| Modifier and Type | Method and Description |
|---|---|
void |
addCoreType(java.lang.String pgTypeName,
java.lang.Integer oid,
java.lang.Integer sqlType,
java.lang.String javaClass,
java.lang.Integer arrayOid) |
void |
addDataType(java.lang.String type,
java.lang.Class klass) |
char |
getArrayDelimiter(int oid)
Determine the delimiter for the elements of the given array type oid.
|
int |
getDisplaySize(int oid,
int typmod) |
java.lang.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(java.lang.String elementTypeName)
Determine the oid of the given base postgresql type's array type
|
java.lang.Class |
getPGobject(java.lang.String type) |
java.lang.String |
getPGType(int oid)
Look up the postgresql type name for a given oid.
|
int |
getPGType(java.lang.String pgTypeName)
Look up the oid for a given postgresql type name.
|
java.util.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(java.lang.String pgTypeName)
Look up the SQL typecode for a given postgresql type name.
|
java.lang.String |
getTypeForAlias(java.lang.String alias) |
boolean |
isCaseSensitive(int oid) |
boolean |
isSigned(int oid) |
boolean |
requiresQuoting(int oid) |
void addCoreType(java.lang.String pgTypeName,
java.lang.Integer oid,
java.lang.Integer sqlType,
java.lang.String javaClass,
java.lang.Integer arrayOid)
void addDataType(java.lang.String type,
java.lang.Class klass)
throws java.sql.SQLException
java.sql.SQLExceptionint getSQLType(int oid)
throws java.sql.SQLException
oid - the type's OIDTypes)
for the typejava.sql.SQLExceptionint getSQLType(java.lang.String pgTypeName)
throws java.sql.SQLException
pgTypeName - the server type name to look upTypes)
for the typejava.sql.SQLExceptionint getPGType(java.lang.String pgTypeName)
throws java.sql.SQLException
getPGType(int).pgTypeName - the server type name to look upjava.sql.SQLExceptionjava.lang.String getPGType(int oid)
throws java.sql.SQLException
getPGType(String).oid - the type's OIDjava.sql.SQLExceptionint getPGArrayElement(int oid)
throws java.sql.SQLException
oid - the array type's OIDjava.sql.SQLExceptionint getPGArrayType(java.lang.String elementTypeName)
throws java.sql.SQLException
elementTypeName - the base type'sjava.sql.SQLExceptionchar getArrayDelimiter(int oid)
throws java.sql.SQLException
oid - the array type's OIDjava.sql.SQLExceptionjava.util.Iterator getPGTypeNamesWithSQLTypes()
java.lang.Class getPGobject(java.lang.String type)
java.lang.String getJavaClass(int oid)
throws java.sql.SQLException
java.sql.SQLExceptionjava.lang.String getTypeForAlias(java.lang.String alias)
int getPrecision(int oid,
int typmod)
int getScale(int oid,
int typmod)
boolean isCaseSensitive(int oid)
boolean isSigned(int oid)
int getDisplaySize(int oid,
int typmod)
int getMaximumPrecision(int oid)
boolean requiresQuoting(int oid)
throws java.sql.SQLException
java.sql.SQLException