|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jaxme.sqls.impl.ColumnSetImpl net.sf.jaxme.sqls.impl.IndexImpl
Nested Class Summary | |
static class |
IndexImpl.NameImpl
|
Nested classes inherited from class net.sf.jaxme.sqls.Index |
Index.Name |
Method Summary | |
void |
addColumn(Column.Name pName)
Adds the column with the given name to the index by invoking 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 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. |
Methods inherited from class net.sf.jaxme.sqls.impl.ColumnSetImpl |
getTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jaxme.sqls.ColumnSet |
getTable |
Method Detail |
public void setName(Index.Name pName)
Index
Sets the index name. Explicit setting of an index name is not required.
setName
in interface Index
public void setName(java.lang.String pName)
Index
Sets the index name. Explicit setting of an index name is not required.
setName
in interface Index
public Index.Name getName()
Index
Returns the index name. Explicit setting of an index name is not required.
getName
in interface Index
public void addColumn(Column pColumn)
Index
Adds a column to the index. The column must have the same table.
addColumn
in interface Index
public void addColumn(Column.Name pName)
Index
Adds the column with the given name to the index
by invoking Index.addColumn(Column)
.
addColumn
in interface Index
public void addColumn(java.lang.String pName)
Index
Adds the column with the given name to the index
by invoking Index.addColumn(Column)
.
addColumn
in interface Index
public boolean isUnique()
Index
Returns whether the index is unique.
isUnique
in interface Index
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |