public interface ForeignKey extends Document, HasParent<Table>, HasEnabled, HasId, HasName, HasChildren, HasMainInterface, HasMutator<ForeignKeyMutator<? extends ForeignKey>>
Document
that represents a foreign key instance in the
database. A ForeignKey
is located inside a Table
and can have
multiple ForeignKeyColumns
as children.Modifier and Type | Field and Description |
---|---|
static String |
FOREIGN_KEY_COLUMNS |
ENABLED, ENABLED_DEFAULT
Modifier and Type | Method and Description |
---|---|
Stream<? extends ForeignKeyColumn> |
foreignKeyColumns()
Creates a stream of foreign key columns located in this document.
|
default Class<ForeignKey> |
mainInterface()
Returns the
Class of the interface of this node. |
default ForeignKeyMutator<? extends ForeignKey> |
mutator()
Returns a
DocumentMutator for this Document. |
getParent, getParentOrThrow
isEnabled, of, test
ancestors, children, children, get, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getData, put
defaultNameFor
static final String FOREIGN_KEY_COLUMNS
Stream<? extends ForeignKeyColumn> foreignKeyColumns()
default Class<ForeignKey> mainInterface()
HasMainInterface
Class
of the interface of this node.
This should not be overridden by implementing classes!
mainInterface
in interface HasMainInterface
default ForeignKeyMutator<? extends ForeignKey> mutator()
HasMutator
DocumentMutator
for this Document. A DocumentMutator
allows a Document to be updated in a type safe way.mutator
in interface HasMutator<ForeignKeyMutator<? extends ForeignKey>>
Copyright © 2017 Speedment, Inc.. All rights reserved.