public class ForeignKeyConstraintImpl extends Object implements ForeignKeyConstraint
| Modifier and Type | Class and Description |
|---|---|
static class |
ForeignKeyConstraintImpl.ForeignKeyConstraintSerializer |
ForeignKeyConstraint.Builder, ForeignKeyConstraint.Component| Modifier and Type | Method and Description |
|---|---|
static ForeignKeyConstraint.Builder |
builder(String name,
DatabaseRelationDefinition relation,
DatabaseRelationDefinition referencedRelation)
creates a FOREIGN KEY builder
|
com.google.common.collect.ImmutableList<ForeignKeyConstraint.Component> |
getComponents()
returns the components of the foreign key constraint
each component defines a map from an attribute of the relation
to an attribute of the referenced relation
|
String |
getName()
returns the name of the foreign key constraint
|
DatabaseRelationDefinition |
getReferencedRelation()
returns referenced database relation
|
DatabaseRelationDefinition |
getRelation()
returns the relation with the foreign key
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitofpublic static ForeignKeyConstraint.Builder builder(String name, DatabaseRelationDefinition relation, DatabaseRelationDefinition referencedRelation)
ForeignKeyConstraintbuilder in interface ForeignKeyConstraintpublic String getName()
getName in interface ForeignKeyConstraintpublic com.google.common.collect.ImmutableList<ForeignKeyConstraint.Component> getComponents()
getComponents in interface ForeignKeyConstraintpublic DatabaseRelationDefinition getReferencedRelation()
getReferencedRelation in interface ForeignKeyConstraintpublic DatabaseRelationDefinition getRelation()
getRelation in interface ForeignKeyConstraintCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.