|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.rwt.MetaData
com.sptci.rwt.KeyMetaData
com.sptci.rwt.IndexMetaData
public class IndexMetaData
A metadata object that represents table indices.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Nested Class Summary | |
|---|---|
static class |
IndexMetaData.SortSequence
An enumerationg for the sort sequence of indices. |
static class |
IndexMetaData.Type
An enumeration for the index types. |
| Field Summary | |
|---|---|
private int |
cardinality
The cardinality for the index. |
private int |
pages
The number of pages used for the index. |
private IndexMetaData.SortSequence |
sortSequence
A field indicating the sort order used by the index. |
private IndexMetaData.Type |
type
A field indicating the type of the index. |
private boolean |
unique
A flag indicating whether this index represents unique values or not. |
| Constructor Summary | |
|---|---|
IndexMetaData()
|
|
| Method Summary | |
|---|---|
int |
getCardinality()
Returns cardinality. |
int |
getPages()
Returns pages. |
String |
getSortSequence()
Returns sortSequence. |
String |
getType()
Returns type. |
boolean |
getUnique()
Returns unique. |
boolean |
isUnique()
Returns unique. |
protected void |
setCardinality(int cardinality)
Set cardinality. |
protected void |
setPages(int pages)
Set pages. |
protected void |
setSortSequence(IndexMetaData.SortSequence sortSequence)
Set sortSequence. |
protected void |
setType(IndexMetaData.Type type)
Set type. |
protected void |
setUnique(boolean unique)
Set unique. |
| Methods inherited from class com.sptci.rwt.KeyMetaData |
|---|
addColumn, getColumns, getKeySequence, getTable, setColumns, setKeySequence, setTable |
| Methods inherited from class com.sptci.rwt.MetaData |
|---|
equals, getName, hashCode, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private boolean unique
private IndexMetaData.Type type
private IndexMetaData.SortSequence sortSequence
private int cardinality
type is IndexMetaData.Type.Statistic, then this is the number of rows in the table;
otherwise, it is the number of unique values in the index.
private int pages
type is IndexMetaData.Type.Statistic, then this is the number of pages used for the table;
otherwise, it is the number of pages used for the index.
| Constructor Detail |
|---|
public IndexMetaData()
| Method Detail |
|---|
public boolean isUnique()
unique.
public boolean getUnique()
unique.
protected void setUnique(boolean unique)
unique.
unique - The value to set.public String getType()
type.
protected void setType(IndexMetaData.Type type)
type.
type - The value to set.public String getSortSequence()
sortSequence.
protected void setSortSequence(IndexMetaData.SortSequence sortSequence)
sortSequence.
sortSequence - The value to set.public int getCardinality()
cardinality.
protected void setCardinality(int cardinality)
cardinality.
cardinality - The value to set.public int getPages()
pages.
protected void setPages(int pages)
pages.
pages - The value to set.
|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||