public interface Schema extends Document, HasParent<Dbms>, HasDeepCopy, HasEnabled, HasId, 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 | Method and Description |
---|---|
default Schema |
deepCopy()
Returns a mutable copy of this document.
|
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<Table> |
tables()
Creates a stream of tables located in this document.
|
getParent, getParentOrThrow
isEnabled, of, test
defaultNameFor
getAlias, getJavaName, of
default boolean isDefaultSchema()
true
if this schema is the default one, else
false
. Default value is true
.true
if default, else false
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>>
default Schema deepCopy()
HasDeepCopy
deepCopy
in interface HasDeepCopy
Copyright © 2019 Speedment, Inc.. All rights reserved.