|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Index
Provides all database table's index specific metadata.
Method Summary | |
---|---|
void |
addColumn(IndexColumn indexColumn)
Adds IndexColumn |
void |
deleteColumn(IndexColumn indexColumn)
delete IndexColumn |
IndexColumn |
findColumnByName(String columnName)
Returns index column for specified column name or null |
Integer |
getCardinality()
When TYPE is tableIndexStatistic, then this is the number of rows in the table; otherwise, it is the number of unique values in the index. |
Set<IndexColumn> |
getColumns()
Retrieves index columns |
String |
getFilterCondition()
Returns the filter condition, if any. |
IndexType |
getIndexType()
Gets index type |
Integer |
getPages()
When TYPE is tableIndexStatisic then this is the number of pages used for the table, otherwise it is the number of pages used for the current index. |
Boolean |
isUnique()
Can index values be non-unique. false when TYPE is tableIndexStatistic. |
void |
setCardinality(Integer cardinality)
When TYPE is tableIndexStatistic, then this is the number of rows in the table; otherwise, it is the number of unique values in the index. |
void |
setFilterCondition(String filterCondition)
Sets the filter condition, if any. |
void |
setIndexType(IndexType indexType)
Sets index type |
void |
setPages(Integer pages)
When TYPE is tableIndexStatisic then this is the number of pages used for the table, otherwise it is the number of pages used for the current index. |
void |
setUnique(Boolean unique)
Can index values be non-unique. false when TYPE is tableIndexStatistic. |
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.SchemaObject |
---|
getCatalog, getSchema, setCatalog, setSchema |
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.DatabaseNamedObject |
---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
Method Detail |
---|
Set<IndexColumn> getColumns()
void addColumn(IndexColumn indexColumn)
indexColumn
- the IndexColumnvoid deleteColumn(IndexColumn indexColumn)
indexColumn
- the IndexColumnIndexColumn findColumnByName(String columnName)
columnName
- the name of column
Boolean isUnique()
void setUnique(Boolean unique)
unique
- true if index values can be non-unique.IndexType getIndexType()
void setIndexType(IndexType indexType)
indexType
- index typeInteger getCardinality()
void setCardinality(Integer cardinality)
cardinality
- the number of rows in the table if index type is STATISTICS; otherwise, the number of unique values in
the index.Integer getPages()
void setPages(Integer pages)
pages
- the number of pages used for the table if index type is STATISTICS; otherwise the number of pages used for the
current index.String getFilterCondition()
void setFilterCondition(String filterCondition)
filterCondition
- the filter condition, if any. (may be null)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |