|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DBIndexCapability
Capability for managing indexes in the database.
Changes in indexes can be observed as model changes notified from DFSchema.
| Method Summary | |
|---|---|
boolean |
canBeDropped(DBIndexInfo index)
Can the specified index be dropped? |
boolean |
canBeRebuilded(DBIndexInfo index)
Can the specified index be rebuild? |
void |
createIndex(String index,
String indexType,
DBTableInfo table,
List<String> columns,
List<Boolean> order,
DFEnvironmentRW env)
Creates an index over the specified table of the given type. |
void |
dropIndex(DBIndexInfo index,
DFEnvironmentRW env)
Drops the specified index. |
DBIndexInfo |
findIndex(DBTableInfo table,
List<String> columns)
Will try to find and return indexes for the columns provided. |
void |
rebuildIndex(DBIndexInfo index,
DFEnvironmentRW env)
Rebuild the specified index. |
| Method Detail |
|---|
void createIndex(String index,
String indexType,
DBTableInfo table,
List<String> columns,
List<Boolean> order,
DFEnvironmentRW env)
TODO API - we must add some proxy method to API to delegate to DatabasePlatform. Contact us if you need it.
index - The name of the new index. The name must not be already used by
an index.indexType - The type of the index. Consult implementation class
com.im.df.core.DatabasePlatform.supportedIndexTypes in DIF Impl module
for valid values.table - The table that will be indexedcolumns - The list of columns to index. The order is significantorder - The ascending/descending specification for the sort order
void dropIndex(DBIndexInfo index,
DFEnvironmentRW env)
index - The index to drop
void rebuildIndex(DBIndexInfo index,
DFEnvironmentRW env)
index - The index to rebuildboolean canBeDropped(DBIndexInfo index)
index - The index to dropboolean canBeRebuilded(DBIndexInfo index)
index - The index to rebuild
DBIndexInfo findIndex(DBTableInfo table,
List<String> columns)
table - The table whose columns are indexedcolumns - The list of indexed columns
null if no such index
exists.
|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||