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.
|
getTable
public void setName(Index.Name pName)
Index
Sets the index name. Explicit setting of an index name is not required.
public void setName(java.lang.String pName)
Index
Sets the index name. Explicit setting of an index name is not required.
public Index.Name getName()
Index
Returns the index name. Explicit setting of an index name is not required.
public void addColumn(Column pColumn)
Index
Adds a column to the index. The column must have the same table.
public void addColumn(Column.Name pName)
Index
Adds the column with the given name to the index
by invoking Index.addColumn(Column)
.
public void addColumn(java.lang.String pName)
Index
Adds the column with the given name to the index
by invoking Index.addColumn(Column)
.
public boolean isUnique()
Index
Returns whether the index is unique.
public boolean isPrimaryKey()
Index
Returns whether the index is a primary key index.
isPrimaryKey
in interface Index
public java.util.Iterator getColumns()
ColumnSet
Returns 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