|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.jdbc.schema.Constraint
org.apache.openjpa.jdbc.schema.LocalConstraint
org.apache.openjpa.jdbc.schema.Index
public class Index
Represents a database index. Can also represent a partial index,
aligning with DatabaseMetaData.
| Constructor Summary | |
|---|---|
Index()
Default constructor. |
|
Index(String name,
Table table)
Constructor. |
|
| Method Summary | |
|---|---|
void |
deref()
|
boolean |
equalsIndex(Index idx)
Indexes are equal if they have the same name, the same columns, and are both unique/not unique. |
int |
getRefCount()
|
boolean |
isLogical()
Return whether this constraint is a logical constraint only; i.e. |
boolean |
isUnique()
Return true if this is a UNIQUE index. |
void |
ref()
|
void |
setUnique(boolean unique)
Set whether this is a UNIQUE index. |
| Methods inherited from class org.apache.openjpa.jdbc.schema.LocalConstraint |
|---|
addColumn, columnsMatch, containsColumn, derefColumns, equalsLocalConstraint, getColumns, refColumns, removeColumn, setColumns |
| Methods inherited from class org.apache.openjpa.jdbc.schema.Constraint |
|---|
getColumnName, getFullName, getName, getSchemaName, getTable, getTableName, isDeferred, setColumnName, setDeferred, setName, setSchemaName, setTableName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Index()
public Index(String name,
Table table)
name - the name of the indextable - the table of the index| Method Detail |
|---|
public boolean isUnique()
public void setUnique(boolean unique)
public boolean isLogical()
Constraint
isLogical in class Constraintpublic boolean equalsIndex(Index idx)
public int getRefCount()
public void ref()
public void deref()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||