public class IndexImpl extends ColumnSetImpl implements Index
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexImpl.NameImpl |
Index.Name| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(Column.Name pName)
Adds the column with the given name to the index
by invoking
Index.addColumn(Column). |
void |
addColumn(Column pColumn)
Adds a column to the index.
|
void |
addColumn(java.lang.String pName)
Adds the column with the given name to the index
by invoking
Index.addColumn(Column). |
java.util.Iterator |
getColumns()
Returns the column sets columns.
|
Index.Name |
getName()
Returns the index name.
|
boolean |
isPrimaryKey()
Returns whether the index is a primary key index.
|
boolean |
isUnique()
Returns whether the index is unique.
|
void |
setName(Index.Name pName)
Sets the index name.
|
void |
setName(java.lang.String pName)
Sets the index name.
|
getTablepublic void setName(Index.Name pName)
IndexSets the index name. Explicit setting of an index name is not required.
public void setName(java.lang.String pName)
IndexSets the index name. Explicit setting of an index name is not required.
public Index.Name getName()
IndexReturns the index name. Explicit setting of an index name is not required.
public void addColumn(Column pColumn)
IndexAdds a column to the index. The column must have the same table.
public void addColumn(Column.Name pName)
IndexAdds the column with the given name to the index
by invoking Index.addColumn(Column).
public void addColumn(java.lang.String pName)
IndexAdds the column with the given name to the index
by invoking Index.addColumn(Column).
public boolean isUnique()
IndexReturns whether the index is unique.
public boolean isPrimaryKey()
IndexReturns whether the index is a primary key index.
isPrimaryKey in interface Indexpublic java.util.Iterator getColumns()
ColumnSetReturns the column sets columns. In the case of an Index,
these are the columns that have been added via Index.addColumn(Column).
In the case of a ForeignKey, these are the local columns of
column links.
getColumns in interface ColumnSet