public class UniqueConstraintImpl extends Object implements UniqueConstraint
FunctionalDependency.Builder| Modifier and Type | Method and Description |
|---|---|
static FunctionalDependency.Builder |
builder(NamedRelationDefinition relation,
String name)
creates a UNIQUE constraint builder
|
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<Attribute> |
getAttributes()
return the list of attributes in the unique constraint
|
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<Attribute> |
getDependents() |
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<Attribute> |
getDeterminants() |
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(NamedRelationDefinition relation,
String name)
creates a PRIMARY KEY builder
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprimaryKeyOf, primaryKeyOfdefaultBuilderpublic static FunctionalDependency.Builder builder(NamedRelationDefinition relation, String name)
builder in interface UniqueConstraintrelation - name - public static FunctionalDependency.Builder primaryKeyBuilder(NamedRelationDefinition relation, String name)
primaryKeyBuilder in interface UniqueConstraintrelation - name - public String getName()
getName in interface UniqueConstraintpublic boolean isPrimaryKey()
isPrimaryKey in interface UniqueConstraintpublic it.unibz.inf.ontop.com.google.common.collect.ImmutableList<Attribute> getAttributes()
getAttributes in interface UniqueConstraintpublic it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<Attribute> getDeterminants()
getDeterminants in interface FunctionalDependencypublic it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<Attribute> getDependents()
getDependents in interface FunctionalDependencyCopyright © 2009–2021 Free University of Bozen-Bolzano. All rights reserved.