public interface Table extends Document, HasParent<Schema>, HasEnabled, HasName, HasChildren, HasAlias, HasPackageName, HasMainInterface, HasMutator<TableMutator<? extends Table>>
Document
that represents a table instance in the database. A
Table
is located inside a Schema
and can have multiple
Columns
as children.Modifier and Type | Field and Description |
---|---|
static String |
COLUMNS |
static String |
FOREIGN_KEYS |
static String |
INDEXES |
static String |
PRIMARY_KEY_COLUMNS |
ENABLED, ENABLED_DEFAULT
PACKAGE_NAME
Modifier and Type | Method and Description |
---|---|
Stream<? extends Column> |
columns()
Creates a stream of columns located in this document.
|
default Optional<? extends Column> |
findColumn(String name) |
default Optional<? extends ForeignKey> |
findForeignKey(String name) |
default Optional<? extends Index> |
findIndex(String name) |
default Optional<? extends PrimaryKeyColumn> |
findPrimaryKeyColumn(String name) |
Stream<? extends ForeignKey> |
foreignKeys()
Creates a stream of foreign keys located in this document.
|
Stream<? extends Index> |
indexes()
Creates a stream of indexes located in this document.
|
default Class<Table> |
mainInterface()
Returns the
Class of the interface of this node. |
default TableMutator<? extends Table> |
mutator()
Returns a
DocumentMutator for this Document. |
Stream<? extends PrimaryKeyColumn> |
primaryKeyColumns()
Creates a stream of primary key columns located in this document.
|
getParent, getParentOrThrow
isEnabled, of, test
defaultNameFor
getAlias, getJavaName, of
ancestors, children, children, get, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getData, put
getPackageName, of
static final String COLUMNS
static final String INDEXES
static final String FOREIGN_KEYS
static final String PRIMARY_KEY_COLUMNS
Stream<? extends Column> columns()
Stream<? extends Index> indexes()
Stream<? extends ForeignKey> foreignKeys()
Stream<? extends PrimaryKeyColumn> primaryKeyColumns()
default Optional<? extends ForeignKey> findForeignKey(String name)
default Optional<? extends PrimaryKeyColumn> findPrimaryKeyColumn(String name)
default Class<Table> mainInterface()
HasMainInterface
Class
of the interface of this node.
This should not be overridden by implementing classes!
mainInterface
in interface HasMainInterface
default TableMutator<? extends Table> mutator()
HasMutator
DocumentMutator
for this Document. A DocumentMutator
allows a Document to be updated in a type safe way.mutator
in interface HasMutator<TableMutator<? extends Table>>
Copyright © 2016 Speedment, Inc.. All rights reserved.