接口 ColumnDefinition
-
- 所有超级接口:
ProtocolEntity
- 所有已知子接口:
CachedResultSetMetaData
public interface ColumnDefinition extends ProtocolEntity
Represents protocol specific result set metadata, eg., for native protocol, Protocol::ColumnDefinition41 protocol entity.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidbuildIndexMapping()Builds a hash between column names and their indices for fast retrieval.voidexportTo(ColumnDefinition columnDefinition)intfindColumn(String columnName, boolean useColumnNamesInFindColumn, int indexBase)Map<String,Integer>getColumnLabelToIndex()Map<String,Integer>getColumnNameToIndex()Map<String,Integer>getColumnToIndexCache()Field[]getFields()Map<String,Integer>getFullColumnNameToIndex()booleanhasBuiltIndexMapping()booleanhasLargeFields()Check if fields with type BLOB, MEDIUMBLOB, LONGBLOB, TEXT, MEDIUMTEXT or LONGTEXT exist in this ColumnDefinition.voidinitializeFrom(ColumnDefinition columnDefinition)voidsetColumnLabelToIndex(Map<String,Integer> columnLabelToIndex)voidsetColumnNameToIndex(Map<String,Integer> colNameToIndex)voidsetColumnToIndexCache(Map<String,Integer> columnToIndexCache)voidsetFields(Field[] fields)voidsetFullColumnNameToIndex(Map<String,Integer> fullColNameToIndex)
-
-
-
方法详细资料
-
getFields
Field[] getFields()
-
setFields
void setFields(Field[] fields)
-
buildIndexMapping
void buildIndexMapping()
Builds a hash between column names and their indices for fast retrieval. This is done lazily to support findColumn() and get*(String), as it can be more expensive than just retrieving result set values by ordinal index.
-
hasBuiltIndexMapping
boolean hasBuiltIndexMapping()
-
initializeFrom
void initializeFrom(ColumnDefinition columnDefinition)
-
exportTo
void exportTo(ColumnDefinition columnDefinition)
-
findColumn
int findColumn(String columnName, boolean useColumnNamesInFindColumn, int indexBase)
-
hasLargeFields
boolean hasLargeFields()
Check if fields with type BLOB, MEDIUMBLOB, LONGBLOB, TEXT, MEDIUMTEXT or LONGTEXT exist in this ColumnDefinition.- 返回:
- true if fields with type BLOB, MEDIUMBLOB, LONGBLOB, TEXT, MEDIUMTEXT or LONGTEXT exist in this ColumnDefinition.
-
-