| 程序包 | 说明 |
|---|---|
| org.mirrentools.sd | |
| org.mirrentools.sd.impl.dbutil | |
| org.mirrentools.sd.models.db.query |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract List<SdTableIndexKeyAttribute> |
ScrewDriverDbUtil.getTableIndexKeysAttribute(String tableName,
boolean unique,
boolean approximate)
获取指定表的索引属性,如果不存在返回长度为0的集合
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<SdTableIndexKeyAttribute> |
SdDbUtilSqlServerImpl.getTableIndexKeysAttribute(String tableName,
boolean unique,
boolean approximate) |
List<SdTableIndexKeyAttribute> |
SdDbUtilMySqlImpl.getTableIndexKeysAttribute(String tableName,
boolean unique,
boolean approximate) |
List<SdTableIndexKeyAttribute> |
SdAbstractDbUtil.getTableIndexKeysAttribute(String tableName,
boolean unique,
boolean approximate) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SdAbstractDbUtil.converterIndexKeysAttribute(ResultSet rs,
SdTableIndexKeyAttribute result)
将DatabaseMetaData.getColumns转换为SdTableIndexKeyAttribute属性
|
| 限定符和类型 | 方法和说明 |
|---|---|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setAscOrDesc(String ascOrDesc)
column sort sequence, "A" => ascending,"D" => descending, may be null if
sort sequence is not supported; null when TYPE is tableIndexStatistic
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setCardinality(int cardinality)
When TYPE is tableIndexStatistic, thenthis is the number of rows in the
table; otherwise, it is thenumber of unique values in the index.
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setColumnName(String columnName)
column name; null when TYPE istableIndexStatistic
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setFilterCondition(String filterCondition)
Filter condition, if any.
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setIndexName(String indexName)
index name; null when TYPE istableIndexStatistic
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setIndexQualifier(String indexQualifier)
index catalog (may be null); null when TYPE is tableIndexStatistic
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setIndexRemarks(String indexRemarks)
设置索引注释
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setNonUnique(boolean nonUnique)
Can index values be non-unique.false when TYPE is tableIndexStatistic
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setOrdinalPosition(short ordinalPosition)
column sequence numberwithin index; zero when TYPE is tableIndexStatistic
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setPages(int pages)
When TYPE is tableIndexStatisic thenthis is the number of pages used for
the table, otherwise itis the number of pages used for the current index.
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setTableCat(String tableCat)
table catalog (may be null)
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setTableName(String tableName)
table name
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setTableSchem(String tableSchem)
table schema (may be null)
|
SdTableIndexKeyAttribute |
SdTableIndexKeyAttribute.setType(short type)
index type:
tableIndexStatistic - this identifies table statistics that arereturned in conjuction with a table's index descriptions tableIndexClustered - this is a clustered index tableIndexHashed - this is a hashed index tableIndexOther - this is some other style of index |
| 限定符和类型 | 方法和说明 |
|---|---|
List<SdTableIndexKeyAttribute> |
SdTable.getIndexKeys()
获取索引属性
|
| 限定符和类型 | 方法和说明 |
|---|---|
SdTable |
SdTable.addIndexKey(SdTableIndexKeyAttribute indexKey)
设置索引属性
|
| 限定符和类型 | 方法和说明 |
|---|---|
SdTable |
SdTable.setIndexKeys(List<SdTableIndexKeyAttribute> indexKeys)
设置索引属性
|
Copyright © 2019 Mirren Tools. All rights reserved.