public interface TypeInfo
| Modifier and Type | Method and Description |
|---|---|
void |
addCoreType(String rsTypeName,
Integer oid,
Integer sqlType,
String javaClass,
Integer arrayOid) |
void |
addDataType(String type,
Class<? extends RedshiftObject> klass) |
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 |
getPrecision(int oid,
int typmod) |
int |
getRSArrayElement(int oid)
Look up the oid of an array's base type given the array's type oid.
|
int |
getRSArrayType(String elementTypeName)
Determine the oid of the given base Redshift type's array type.
|
Class<? extends RedshiftObject> |
getRSobject(String type) |
String |
getRSType(int oid)
Look up the redshift type name for a given oid.
|
int |
getRSType(String rsTypeName)
Look up the oid for a given redshift type name.
|
Iterator<String> |
getRSTypeNamesWithSQLTypes() |
int |
getScale(int oid,
int typmod) |
int |
getSQLType(int oid)
Look up the SQL typecode for a given type oid.
|
int |
getSQLType(String rsTypeName)
Look up the SQL typecode for a given Redshift type name.
|
String |
getTypeForAlias(String alias) |
boolean |
isCaseSensitive(int oid) |
boolean |
isSigned(int oid) |
boolean |
requiresQuoting(int oid) |
boolean |
requiresQuotingSqlType(int sqlType)
Returns true if particular sqlType requires quoting.
|
void addCoreType(String rsTypeName, Integer oid, Integer sqlType, String javaClass, Integer arrayOid)
void addDataType(String type, Class<? extends RedshiftObject> klass) throws SQLException
SQLExceptionint getSQLType(int oid)
throws SQLException
oid - the type's OIDTypes) for the typeSQLException - if an error occurs when retrieving sql typeint getSQLType(String rsTypeName) throws SQLException
rsTypeName - the server type name to look upTypes) for the typeSQLException - if an error occurs when retrieving sql typeint getRSType(String rsTypeName) throws SQLException
getRSType(int).rsTypeName - the server type name to look upSQLException - if an error occurs when retrieving RS typeString getRSType(int oid) throws SQLException
getRSType(String).oid - the type's OIDSQLException - if an error occurs when retrieving RS typeint getRSArrayElement(int oid)
throws SQLException
oid - the array type's OIDSQLException - if an error occurs when retrieving array elementint getRSArrayType(String elementTypeName) throws SQLException
elementTypeName - the base type'sSQLException - if an error occurs when retrieving array typechar getArrayDelimiter(int oid)
throws SQLException
oid - the array type's OIDSQLException - if an error occurs when retrieving array delimiterClass<? extends RedshiftObject> getRSobject(String type)
String getJavaClass(int oid) throws SQLException
SQLExceptionint 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 SQLException
SQLExceptionboolean requiresQuotingSqlType(int sqlType)
throws SQLException
sqlType - sql type as in java.sql.TypesSQLException - if something goes wrongCopyright © 2024 Amazon.com Inc.. All rights reserved.