| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.common.jdbc.model.spi.CoreMetaDataBean
org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean
org.jboss.dna.common.jdbc.model.spi.SchemaObjectBean
org.jboss.dna.common.jdbc.model.spi.IndexBean
public class IndexBean

Provides all database table's index specific metadata.
| Constructor Summary | |
|---|---|
| IndexBean()Default constructor | |
| 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 class org.jboss.dna.common.jdbc.model.spi.SchemaObjectBean | 
|---|
| getCatalog, getSchema, setCatalog, setSchema | 
| Methods inherited from class org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean | 
|---|
| addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| 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 | 
| Constructor Detail | 
|---|
public IndexBean()
| Method Detail | 
|---|
public Set<IndexColumn> getColumns()
getColumns in interface Indexpublic void addColumn(IndexColumn indexColumn)
addColumn in interface IndexindexColumn - the IndexColumnpublic void deleteColumn(IndexColumn indexColumn)
deleteColumn in interface IndexindexColumn - the IndexColumnpublic IndexColumn findColumnByName(String columnName)
findColumnByName in interface IndexcolumnName - the name of column
public Boolean isUnique()
isUnique in interface Indexpublic void setUnique(Boolean unique)
setUnique in interface Indexunique - true if index values can be non-unique.public IndexType getIndexType()
getIndexType in interface Indexpublic void setIndexType(IndexType indexType)
setIndexType in interface IndexindexType - index typepublic Integer getCardinality()
getCardinality in interface Indexpublic void setCardinality(Integer cardinality)
setCardinality in interface Indexcardinality - the number of rows in the table if index type is STATISTICS; otherwise, the number of unique values in
        the index.public Integer getPages()
getPages in interface Indexpublic void setPages(Integer pages)
setPages in interface Indexpages - the number of pages used for the table if index type is STATISTICS; otherwise the number of pages used for the
        current index.public String getFilterCondition()
getFilterCondition in interface Indexpublic void setFilterCondition(String filterCondition)
setFilterCondition in interface IndexfilterCondition - the filter condition, if any. (may be null)| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||