public interface UniqueConstraint extends FunctionalDependency
FunctionalDependency.Builder| Modifier and Type | Method and Description |
|---|---|
static FunctionalDependency.Builder |
builder(DatabaseRelationDefinition relation,
String name)
creates a UNIQUE constraint builder
|
com.google.common.collect.ImmutableList<Attribute> |
getAttributes()
return the list of attributes in the unique constraint
|
String |
getName()
return the name of the constraint
|
boolean |
isPrimaryKey()
return true if it is a primary key and false otherwise
|
static FunctionalDependency.Builder |
primaryKeyBuilder(DatabaseRelationDefinition relation,
String name)
creates a PRIMARY KEY builder
|
static void |
primaryKeyOf(Attribute attribute) |
static void |
primaryKeyOf(Attribute attribute1,
Attribute attribute2) |
defaultBuilder, getDependents, getDeterminantsString getName()
boolean isPrimaryKey()
com.google.common.collect.ImmutableList<Attribute> getAttributes()
static FunctionalDependency.Builder builder(DatabaseRelationDefinition relation, String name)
relation - name - static FunctionalDependency.Builder primaryKeyBuilder(DatabaseRelationDefinition relation, String name)
relation - name - static void primaryKeyOf(Attribute attribute)
Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.