public class UniqueConstraint extends Object implements FunctionalDependency
| Modifier and Type | Class and Description |
|---|---|
static class |
UniqueConstraint.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UniqueConstraint.Builder |
builder(DatabaseRelationDefinition relation)
creates a UNIQUE constraint builder (which is also used for a PRIMARY KET builder)
|
com.google.common.collect.ImmutableList<Attribute> |
getAttributes()
return the list of attributes in the unique constraint
|
com.google.common.collect.ImmutableSet<Attribute> |
getDependents() |
com.google.common.collect.ImmutableSet<Attribute> |
getDeterminants() |
String |
getName()
return the name of the constraint
|
DatabaseRelationDefinition |
getRelation()
return the database relation for the unique constraint
|
boolean |
isPrimaryKey()
return true if it is a primary key and false otherwise
|
static UniqueConstraint |
primaryKeyOf(Attribute att) |
static UniqueConstraint |
primaryKeyOf(Attribute att,
Attribute att2) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBuilderpublic static UniqueConstraint primaryKeyOf(Attribute att)
public static UniqueConstraint primaryKeyOf(Attribute att, Attribute att2)
public static UniqueConstraint.Builder builder(DatabaseRelationDefinition relation)
relation - public String getName()
public DatabaseRelationDefinition getRelation()
public boolean isPrimaryKey()
public com.google.common.collect.ImmutableList<Attribute> getAttributes()
public com.google.common.collect.ImmutableSet<Attribute> getDeterminants()
getDeterminants in interface FunctionalDependencypublic com.google.common.collect.ImmutableSet<Attribute> getDependents()
getDependents in interface FunctionalDependencyCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.