public interface IIndexOperator extends IDbType
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createIndex(Index index) |
void |
dropIndex(String tableName,
String indexName)
根据表名和索引名,删除表名和索引名对应的索引.所有实现使用精确匹配方式。
|
Index |
getIndex(String tableName,
String indexName)
根据表名和索引名,取得表名和索引名对应的索引.所有实现使用精确匹配方式。
|
List<Index> |
getIndexByFuzzyMatch(String indexName) |
List<Index> |
getIndexsByTable(String tableName)
根据表名,取得表名对应的索引列表.所有实现使用精确匹配方式。
|
void |
rebuildIndex(String tableName,
String indexName)
重建索引
|
setDialect, setJdbcTemplatevoid createIndex(Index index) throws SQLException
SQLExceptionvoid dropIndex(String tableName, String indexName)
tableName - 表名indexName - 索引名Index getIndex(String tableName, String indexName) throws SQLException
tableName - 表名indexName - 索引名SQLExceptionList<Index> getIndexByFuzzyMatch(String indexName) throws SQLException
SQLExceptionList<Index> getIndexsByTable(String tableName) throws SQLException
tableName - 表名SQLExceptionCopyright © 2018. All rights reserved.