public interface ForeignKeyColumn extends Document, HasParent<ForeignKey>, HasDeepCopy, HasId, HasName, HasOrdinalPosition, HasColumn, HasMainInterface, HasMutator<ForeignKeyColumnMutator<? extends ForeignKeyColumn>>
Document
that represents the column referenced by a foreign
key instance in the database. A ForeignKeyColumn
is located inside a
ForeignKey
.Modifier and Type | Method and Description |
---|---|
default ForeignKeyColumn |
deepCopy()
Returns a mutable copy of this document.
|
default Optional<? extends Column> |
findForeignColumn()
A helper method for accessing the foreign
Column referenced by
this key. |
default Optional<? extends Table> |
findForeignTable()
A helper method for accessing the foreign
Table referenced by
this key. |
default String |
getForeignColumnName()
Returns the name of the foreign table referenced by this column.
|
default String |
getForeignDatabaseName()
Returns the name of the foreign database referenced by this column.
|
default String |
getForeignSchemaName()
Returns the name of the foreign schema(depends on DBMS type) referenced by this column.
|
default String |
getForeignTableName()
Returns the name of the foreign column referenced by this column.
|
default Class<ForeignKeyColumn> |
mainInterface()
Returns the
Class of the interface of this node. |
default ForeignKeyColumnMutator<? extends ForeignKeyColumn> |
mutator()
Returns a
DocumentMutator for this Document. |
getParent, getParentOrThrow
getOrdinalPosition, of
findColumn, findColumnOrThrow, of
ancestors, children, children, get, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getData, put
default String getForeignDatabaseName()
default String getForeignSchemaName()
default String getForeignTableName()
default String getForeignColumnName()
default Optional<? extends Table> findForeignTable()
Table
referenced by
this key.Table
referenced by thisdefault Optional<? extends Column> findForeignColumn()
Column
referenced by
this key.Column
referenced by thisdefault Class<ForeignKeyColumn> mainInterface()
HasMainInterface
Class
of the interface of this node.
This should not be overridden by implementing classes!
mainInterface
in interface HasMainInterface
default ForeignKeyColumnMutator<? extends ForeignKeyColumn> mutator()
HasMutator
DocumentMutator
for this Document. A DocumentMutator
allows a Document to be updated in a type safe way.mutator
in interface HasMutator<ForeignKeyColumnMutator<? extends ForeignKeyColumn>>
default ForeignKeyColumn deepCopy()
HasDeepCopy
deepCopy
in interface HasDeepCopy
Copyright © 2019 Speedment, Inc.. All rights reserved.