public interface Schema extends Document, HasParent<Dbms>, HasEnabled, HasName, HasChildren, HasAlias, HasMainInterface, HasMutator<SchemaMutator<? extends Schema>>
Document
that represents a schema instance in the database. A
Schema
is located inside a Dbms
and can have multiple
Tables
as children.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SCHEMA |
static String |
TABLES |
ENABLED, ENABLED_DEFAULT
Modifier and Type | Method and Description |
---|---|
default boolean |
isDefaultSchema()
Returns
true if this schema is the default one, else
false . |
default Class<Schema> |
mainInterface()
Returns the
Class of the interface of this node. |
default SchemaMutator<? extends Schema> |
mutator()
Returns a
DocumentMutator for this Document. |
Stream<? extends Table> |
tables()
Creates a stream of tables located in this document.
|
getParent, getParentOrThrow
isEnabled, of, test
defaultNameFor
getAlias, getJavaName, of
ancestors, children, children, get, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getData, put
static final String DEFAULT_SCHEMA
static final String TABLES
default boolean isDefaultSchema()
true
if this schema is the default one, else
false
. Default value is true
.true
if default, else false
Stream<? extends Table> tables()
default Class<Schema> mainInterface()
HasMainInterface
Class
of the interface of this node.
This should not be overridden by implementing classes!
mainInterface
in interface HasMainInterface
default SchemaMutator<? extends Schema> mutator()
HasMutator
DocumentMutator
for this Document. A DocumentMutator
allows a Document to be updated in a type safe way.mutator
in interface HasMutator<SchemaMutator<? extends Schema>>
Copyright © 2017 Speedment, Inc.. All rights reserved.