| 限定符 | 构造器和说明 |
|---|---|
|
Index()
Creates a new instance with default characteristics (no name or
parent table, small column list size allocation, non-unique).
|
protected |
Index(Table table,
java.util.List indexColumns)
Creates a new instance for the list of columns composing an
index.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addColumn(org.xml.sax.Attributes attrib)
Adds a new column to an index.
|
java.lang.String |
getColumnList()
Return a comma delimited string of the columns which compose this index.
|
protected java.util.List |
getColumnNames()
Returns the list of names of the columns referenced by this
index.
|
java.util.List |
getColumns()
Return the list of local columns.
|
java.lang.String |
getName()
Gets the name of this index.
|
Table |
getTable()
Get the parent Table of the index
|
java.lang.String |
getTableName()
Returns the Name of the table the index is in
|
boolean |
isUnique()
Returns the uniqueness of this index.
|
void |
loadFromXML(org.xml.sax.Attributes attrib)
Imports index from an XML specification
|
void |
setName(java.lang.String name)
Set the name of this index.
|
void |
setTable(Table parent)
Set the parent Table of the index
|
java.lang.String |
toString()
String representation of the index.
|
public Index()
protected Index(Table table, java.util.List indexColumns) throws EngineException
Index().table - The table this index is associated with.indexColumns - The list of Column objects which
make up this index. Cannot be empty.EngineException - Error generating name.Index()public void loadFromXML(org.xml.sax.Attributes attrib)
attrib - the xml attributespublic boolean isUnique()
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of this indexpublic void setTable(Table parent)
parent - the tablepublic Table getTable()
public java.lang.String getTableName()
public void addColumn(org.xml.sax.Attributes attrib)
attrib - xml attributes for the columnpublic java.lang.String getColumnList()
public java.util.List getColumns()
protected java.util.List getColumnNames()
public java.lang.String toString()
toString 在类中 java.lang.Object