|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.torque.engine.database.model.Index
A Class for information about indices of a table
Field Summary | |
private java.util.List |
indexColumns
|
private java.lang.String |
indexName
|
private boolean |
isUnique
|
private Table |
parentTable
|
Constructor Summary | |
Index()
Default Constructor |
Method Summary | |
void |
addColumn(org.xml.sax.Attributes attrib)
adds a new column to an index |
java.lang.String |
getIndexColumnList()
Return a comma delimited string of the index columns |
java.util.List |
getIndexColumns()
Return the vector of local columns. |
java.lang.String |
getIndexName()
Get the name of the index |
boolean |
getIsUnique()
Get unique attribute of the index |
Table |
getTable()
Get the parent Table of the index |
java.lang.String |
getTableName()
Returns the Name of the table the index is in |
void |
loadFromXML(org.xml.sax.Attributes attrib)
Imports index from an XML specification |
private java.lang.String |
makeColumnList(java.util.List cols)
Creates a list of columns delimited by commas |
void |
setIndexName(java.lang.String indexName)
Set the name of the index |
void |
setTable(Table parent)
Set the parent Table of the index |
java.lang.String |
toString()
String representation of the index. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String indexName
private Table parentTable
private java.util.List indexColumns
private boolean isUnique
Constructor Detail |
public Index()
Method Detail |
public void loadFromXML(org.xml.sax.Attributes attrib)
public boolean getIsUnique()
public java.lang.String getIndexName()
public void setIndexName(java.lang.String indexName)
public void setTable(Table parent)
public Table getTable()
public java.lang.String getTableName()
public void addColumn(org.xml.sax.Attributes attrib)
private java.lang.String makeColumnList(java.util.List cols)
public java.lang.String getIndexColumnList()
public java.util.List getIndexColumns()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |