|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.dbtools.DBTableIndexMap
public class DBTableIndexMap
DBTableIndexMap
is used by DBProvider to hold actual table column
to index, and index to column mappings.
Constructor Summary | |
---|---|
DBTableIndexMap(java.lang.String utableName)
Constructor |
Method Summary | |
---|---|
void |
addIndexColumn(java.lang.String ndxName,
java.lang.String colName)
Adds the index/column name to this index map |
java.util.Set<java.lang.String> |
getAlternateIndexes()
Returns a set of the alternate indexes ("PRIMARY" has been removed). |
java.util.Set<java.lang.String> |
getColumns()
Returns a set of all column names defined within any index |
java.util.Set<java.lang.String> |
getColumnsForIndex(java.lang.String ndxName)
Gets a set of all column names defined for the specified index |
java.util.Set<java.lang.String> |
getIndexes()
Returns a set of all defined indexes (including "PRIMARY" if defined) |
java.util.Set<java.lang.String> |
getIndexesForColumn(java.lang.String colName)
Gets a set of all indexes defined for the specified column name |
boolean |
isEmpty()
Returns true if no index has been defined for this table |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBTableIndexMap(java.lang.String utableName)
utableName
- The untranslated table name for this index mapMethod Detail |
---|
public void addIndexColumn(java.lang.String ndxName, java.lang.String colName)
ndxName
- The index namecolName
- The field/column namepublic java.util.Set<java.lang.String> getAlternateIndexes()
public java.util.Set<java.lang.String> getIndexes()
public java.util.Set<java.lang.String> getIndexesForColumn(java.lang.String colName)
colName
- The column name
public java.util.Set<java.lang.String> getColumns()
public java.util.Set<java.lang.String> getColumnsForIndex(java.lang.String ndxName)
ndxName
- The index name
public boolean isEmpty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |