Package org.keycloak.config
Class DatabaseOptions.Datasources
java.lang.Object
org.keycloak.config.DatabaseOptions.Datasources
- Enclosing class:
- 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 optiongetNamedKey
(Option<?> option, String namedProperty) Returns datasource option based on DB optionoption
with actual wildcard value.
-
Field Details
-
OPTIONS_DATASOURCES
Options that have their sibling for a named datasource Example: for `db-dialect`, `db-dialect-` is created
-
-
Constructor Details
-
Datasources
public Datasources()
-
-
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 -
getNamedKey
Returns datasource option based on DB optionoption
with actual wildcard value. It replaces the<datasource>
with actual value innamedProperty
.f.e. Consider
option
=DatabaseOptions.DB_DRIVER
, andnamedProperty
=my-store.Result:
db-driver-my-store
-