public class Unique extends LocalConstraint
| Constructor and Description |
|---|
Unique() |
Unique(DBIdentifier name,
Table table) |
Unique(String name,
Table table)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addColumn, columnsMatch, containsColumn, derefColumns, equalsLocalConstraint, getColumns, refColumns, removeColumn, setColumnsgetColumnIdentifier, getColumnName, getFullIdentifier, getFullName, getIdentifier, getName, getQualifiedPath, getSchemaIdentifier, getSchemaName, getTable, getTableIdentifier, getTableName, isDeferred, setColumnIdentifier, setColumnName, setDeferred, setSchemaIdentifier, setSchemaName, setTableIdentifier, setTableName, toStringpublic Unique()
public Unique(String name, Table table)
name - the name of the constraint, if anytable - the table of the constraintpublic Unique(DBIdentifier name, Table table)
public boolean isLogical()
ConstraintisLogical 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()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.