Package org.keycloak.config
Class DatabaseOptions
java.lang.Object
org.keycloak.config.DatabaseOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionOptions that have their sibling for a named datasource Example: for `db-dialect`, `db-dialect-` is created -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDatasourceOption
(Option<T> parentOption) Get datasource option containing named datasource mapped to parent DB options.getKeyForDatasource
(String option) Get mapped datasource key based on DB optiongetKeyForDatasource
(Option<?> option) Get mapped datasource key based on DB optiongetResultNamedKey
(Option<?> option, String namedProperty) Returns datasource option based on DB optionoption
with actual wildcard value.
-
Field Details
-
DB_DIALECT
-
DB_DRIVER
-
DB
-
DB_URL
-
DB_URL_HOST
-
DB_URL_DATABASE
-
DB_URL_PORT
-
DB_URL_PROPERTIES
-
DB_USERNAME
-
DB_PASSWORD
-
DB_SCHEMA
-
DB_POOL_INITIAL_SIZE
-
DB_POOL_MIN_SIZE
-
DB_POOL_MAX_SIZE
-
DB_SQL_JPA_DEBUG
-
DB_SQL_LOG_SLOW_QUERIES
-
DB_ACTIVE_DATASOURCE
-
OPTIONS_DATASOURCES
Options that have their sibling for a named datasource Example: for `db-dialect`, `db-dialect-` is created
-
-
Constructor Details
-
DatabaseOptions
public DatabaseOptions()
-
-
Method Details
-
getDatasourceOption
Get datasource option containing named datasource mapped to parent DB options.We map DB options to named datasource options like:
db-url-host --> db-url-host-<datasource>
db-username --> db-username-<datasource>
db --> db-kind-<datasource>
-
getKeyForDatasource
Get mapped datasource key based on DB option -
getKeyForDatasource
Get mapped datasource key based on DB option -
getResultNamedKey
Returns datasource option based on DB optionoption
with actual wildcard value. It replaces the<datasource>
with actual value innamedProperty
.f.e. Consider
option
=DB_DRIVER
, andnamedProperty
=my-store.Result:
db-driver-my-store
-