@Immutable public interface JdbcConfiguration extends Configuration
fields that are common to all JDBC configurations.| Modifier and Type | Interface and Description |
|---|---|
static interface |
JdbcConfiguration.Builder
The JDBC-specific builder used to construct and/or alter JDBC configuration instances.
|
Configuration.ConfigBuilder<C extends Configuration,B extends Configuration.ConfigBuilder<C,B>>| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
ALL_KNOWN_FIELDS
|
static Field |
DATABASE
A field for the name of the database.
|
static Field |
HOSTNAME
A field for the hostname of the database server.
|
static Field |
ON_CONNECT_STATEMENTS
A semicolon separated list of SQL statements to be executed when the connection to database is established.
|
static Field |
PASSWORD
A field for the password of the database.
|
static Field |
PORT
A field for the port of the database server.
|
static Field |
USER
A field for the user of the database.
|
PASSWORD_PATTERN| Modifier and Type | Method and Description |
|---|---|
static JdbcConfiguration |
adapt(Configuration config)
Obtain a
JdbcConfiguration adapter for the given Configuration. |
static JdbcConfiguration.Builder |
copy(Configuration config)
Create a new
configuration builder that starts with a copy of the supplied configuration. |
static JdbcConfiguration.Builder |
create()
Create a new
configuration builder that starts with an empty configuration. |
default String |
getDatabase()
Get the database name property from the configuration.
|
default String |
getHostname()
Get the hostname property from the configuration.
|
default String |
getPassword()
Get the password property from the configuration.
|
default int |
getPort()
Get the port property from the configuration.
|
default String |
getPortAsString()
Get the port property from the configuration.
|
default String |
getUser()
Get the user property from the configuration.
|
default Predicate<String> |
knownFieldNames()
Get a predicate that determines if supplied keys are pre-defined field names.
|
default Configuration |
withoutKnownFields()
Get a view of this configuration that does not contain the
known fields. |
asMap, asMap, asProperties, asProperties, edit, empty, filter, forEach, forEachMatchingFieldName, forEachMatchingFieldName, forEachMatchingFieldName, forEachMatchingFieldName, forEachMatchingFieldNameWithBoolean, forEachMatchingFieldNameWithBoolean, forEachMatchingFieldNameWithBoolean, forEachMatchingFieldNameWithInteger, forEachMatchingFieldNameWithInteger, forEachMatchingFieldNameWithInteger, forEachMatchingFieldNameWithString, forEachMatchingFieldNameWithString, forEachMatchingFieldNameWithString, from, from, from, fromSystemProperties, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getDuration, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInteger, getInteger, getInteger, getInteger, getInteger, getInteger, getLong, getLong, getLong, getLong, getLong, getLong, getNumber, getNumber, getString, getString, getString, getString, getString, getString, getStrings, getStrings, hasKey, isEmpty, keys, load, load, load, load, load, load, load, map, mapped, subset, validate, validate, validateAndRecord, withMasked, withMasked, withMaskedPasswords, withReplacedVariables, withSystemProperties, withSystemPropertiesstatic final Field DATABASE
static final Field USER
static final Field PASSWORD
static final Field HOSTNAME
static final Field PORT
static final Field ON_CONNECT_STATEMENTS
static JdbcConfiguration adapt(Configuration config)
JdbcConfiguration adapter for the given Configuration.config - the configuration; may not be nullstatic JdbcConfiguration.Builder copy(Configuration config)
configuration builder that starts with a copy of the supplied configuration.copy in interface Configurationconfig - the configuration to copystatic JdbcConfiguration.Builder create()
configuration builder that starts with an empty configuration.create in interface Configurationdefault Predicate<String> knownFieldNames()
default Configuration withoutKnownFields()
known fields.default String getHostname()
default String getPortAsString()
default int getPort()
default String getDatabase()
default String getUser()
default String getPassword()
Copyright © 2018 JBoss by Red Hat. All rights reserved.