VastbaseG100

基于openGauss内核开发的企业级关系型数据库。

Menu

TypeInfoCache类

类型信息缓存类。

addCoreType

语法格式

public void addCoreType(String pgTypeName,            
Integer oid,            
Integer sqlType,            
String javaClass,            
Integer arrayOid)

说明

定义:TypeInfo接口的addCoreType方法。

addDataType

语法格式

public void addDataType(String type,            
Class<? extends PGobject> klass)         
throws SQLException

说明

定义:TypeInfo接口的addDataType方法。

convertArrayToBaseOid

功能描述

如果它是一个数组,则返回数组的基本元素的 oid,如果不是,则返回提供的 oid。

语法格式

protected int convertArrayToBaseOid(int oid)

参数说明

oid:数组的基本元素的 oid。

返回值

返回数组的基本元素的 oid 或提供的 oid(如果不是数组)。

getArrayDelimiter

语法格式

public char getArrayDelimiter(int oid)            
throws SQLException

说明

定义:TypeInfo接口的getArrayDelimiter方法。

getDisplaySize

语法格式

public int getDisplaySize(int oid,             
int typmod)

说明

定义:TypeInfo接口的getDisplaySize方法。

getJavaClass

语法格式

public String getJavaClass(int oid)          
throws SQLException

说明

定义:TypeInfo接口的getJavaClass方法。

getMaximumPrecision

语法格式

public int getMaximumPrecision(int oid)

说明

定义:TypeInfo接口的getMaximumPrecision方法。

getPGArrayElement

语法格式

public int getPGArrayElement(int oid)           
throws SQLException

说明

定义:TypeInfo接口的getPGArrayElement方法。

getPGArrayType

语法格式

public int getPGArrayType(String elementTypeName)            
throws SQLException

说明

定义:TypeInfo接口的getPGArrayType方法。

getPGobject

语法格式

public Class<? extends PGobject> getPGobject(String type)

说明

定义:TypeInfo接口的getPGobject方法。

getPGType(int oid)

语法格式

public String getPGType(int oid)              
throws SQLException 

说明

定义:TypeInfo接口的getPGType方法。

getPGType(String pgTypeName)

语法格式

public int getPGType(String pgTypeName)       
throws SQLException

说明

定义:TypeInfo接口的getPGType方法。

getPGTypeNamesWithSQLTypes

语法格式

public Iterator<String> getPGTypeNamesWithSQLTypes()

说明

定义:TypeInfo接口的getPGTypeNamesWithSQLTypes方法。

getPrecision

语法格式

public int getPrecision(int oid,            
int typmod)

说明

定义:TypeInfo接口的getPrecision方法。

getScale

语法格式

public int getScale(int oid,          
int typmod)

说明

定义:TypeInfo接口的getScale方法。

getSQLType(int oid)

语法格式

public int getSQLType(int oid)        
throws SQLException

说明

定义:TypeInfo接口的getSQLType方法。

getSQLType(String pgTypeName)

语法格式

public int getSQLType(String pgTypeName)        
throws SQLException

说明

定义:TypeInfo接口的getSQLType方法。

getTypeForAlias

语法格式

public String getTypeForAlias(String alias)

说明

定义:TypeInfo接口的getTypeForAlias方法。

isCaseSensitive

语法格式

public boolean isCaseSensitive(int oid)

说明

定义:TypeInfo接口的isCaseSensitive方法。

isSigned

语法格式

public boolean isSigned(int oid)

说明

定义:TypeInfo接口的isSigned方法。

requiresQuoting

语法格式

public boolean requiresQuoting(int oid)            
throws SQLException

说明

定义:TypeInfo接口的requiresQuoting方法。

requiresQuotingSqlType

语法格式

public boolean requiresQuotingSqlType(int sqlType)                
throws SQLException

说明

定义:TypeInfo接口的requiresQuotingSqlType方法。

其他

已实现的接口:TypeInfo。