public interface Dbms extends Document, HasParent<Project>, HasEnabled, HasId, HasName, HasChildren, HasAlias, HasMainInterface, HasMutator<DbmsMutator<? extends Dbms>>
Document
that represents a dbms instance in the database. A
Dbms
is located inside a Project
and can have multiple
Schemas
as children.Modifier and Type | Field and Description |
---|---|
static String |
CONNECTION_URL |
static String |
IP_ADDRESS |
static String |
PORT |
static String |
SCHEMAS |
static String |
TYPE_NAME |
static String |
USERNAME |
ENABLED, ENABLED_DEFAULT
Modifier and Type | Method and Description |
---|---|
default Optional<String> |
getConnectionUrl()
Returns the explicit connection URL to use for this
Dbms if the
user has specified one, or an empty Optional if one should be
generated automatically by the DbmsType . |
default Optional<String> |
getIpAddress()
Returns the address of the database host if it is specified.
|
default OptionalInt |
getPort()
Returns the port number of the database on the database host.
|
default String |
getTypeName()
Returns the type name of the
DbmsType of this Dbms . |
default Optional<String> |
getUsername()
Returns the database username to use when connecting to the dbms.
|
default Class<Dbms> |
mainInterface()
Returns the
Class of the interface of this node. |
default DbmsMutator<? extends Dbms> |
mutator()
Returns a
DocumentMutator for this Document. |
Stream<? extends Schema> |
schemas()
Creates a stream of schemas located in this document.
|
getParent, getParentOrThrow
isEnabled, of, test
defaultNameFor
getAlias, getJavaName, of
static final String TYPE_NAME
static final String IP_ADDRESS
static final String PORT
static final String CONNECTION_URL
static final String USERNAME
static final String SCHEMAS
default String getTypeName()
DbmsType
of this Dbms
. This
will be the fully qualified class name of the DbmsType
implementing class.default Optional<String> getIpAddress()
empty
will be returned.empty
default OptionalInt getPort()
empty
is returned.empty
default Optional<String> getConnectionUrl()
Dbms
if the
user has specified one, or an empty Optional
if one should be
generated automatically by the DbmsType
.Dbms
default Optional<String> getUsername()
empty
is returned.empty
Stream<? extends Schema> schemas()
default Class<Dbms> mainInterface()
HasMainInterface
Class
of the interface of this node.
This should not be overridden by implementing classes!
mainInterface
in interface HasMainInterface
default DbmsMutator<? extends Dbms> mutator()
HasMutator
DocumentMutator
for this Document. A DocumentMutator
allows a Document to be updated in a type safe way.mutator
in interface HasMutator<DbmsMutator<? extends Dbms>>
Copyright © 2018 Speedment, Inc.. All rights reserved.