|
||||||||||
| 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.Unique
public class Unique
Represents a unique constraint. It can also represent a partial constraint.
| Constructor Summary | |
|---|---|
Unique()
|
|
Unique(DBIdentifier name,
Table table)
|
|
Unique(String name,
Table table)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
deref()
|
boolean |
equalsUnique(Unique unq)
Return true if the structure of this primary key matches that of the given one (same table, same columns). |
int |
getRefCount()
|
boolean |
isLogical()
Return whether this constraint is a logical constraint only; i.e. |
void |
ref()
|
void |
setIdentifier(DBIdentifier name)
|
void |
setName(String name)
Deprecated. |
| 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 |
|---|
getColumnIdentifier, getColumnName, getFullIdentifier, getFullName, getIdentifier, getName, getQualifiedPath, getSchemaIdentifier, getSchemaName, getTable, getTableIdentifier, getTableName, isDeferred, setColumnIdentifier, setColumnName, setDeferred, setSchemaIdentifier, setSchemaName, setTableIdentifier, setTableName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Unique()
public Unique(String name,
Table table)
name - the name of the constraint, if anytable - the table of the constraint
public Unique(DBIdentifier name,
Table table)
| Method Detail |
|---|
public boolean isLogical()
Constraint
isLogical in class Constraintpublic void setName(String name)
setName in class Constraintpublic void setIdentifier(DBIdentifier name)
setIdentifier in class Constraintpublic boolean equalsUnique(Unique unq)
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 | |||||||||