|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Index
public void addColumn(IndexColumn indexColumn)
addColumn
in interface Index
indexColumn
- the IndexColumnpublic void deleteColumn(IndexColumn indexColumn)
deleteColumn
in interface Index
indexColumn
- the IndexColumnpublic IndexColumn findColumnByName(String columnName)
findColumnByName
in interface Index
columnName
- the name of column
public Boolean isUnique()
isUnique
in interface Index
public void setUnique(Boolean unique)
setUnique
in interface Index
unique
- true if index values can be non-unique.public IndexType getIndexType()
getIndexType
in interface Index
public void setIndexType(IndexType indexType)
setIndexType
in interface Index
indexType
- index typepublic Integer getCardinality()
getCardinality
in interface Index
public void setCardinality(Integer cardinality)
setCardinality
in interface Index
cardinality
- 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 Index
public void setPages(Integer pages)
setPages
in interface Index
pages
- 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 Index
public void setFilterCondition(String filterCondition)
setFilterCondition
in interface Index
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 |