Class OracleCacheDataSourceConfiguration
java.lang.Object
io.micronaut.cache.oracle.configuration.OracleCacheDataSourceConfiguration
@ConfigurationProperties("micronaut.oracle.cache")
public final class OracleCacheDataSourceConfiguration
extends Object
Global datasource selection for the Oracle cache module.
- Since:
- 6.2.0
- Author:
- Davide Cocco
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the configured datasource name.Gets the SQL object prefix.booleanChecks whether the datasource name is configured.voidsetDatasource(String datasource) Sets the datasource name.voidSets the SQL object prefix.
-
Field Details
-
DEFAULT_PREFIX
-
-
Constructor Details
-
OracleCacheDataSourceConfiguration
public OracleCacheDataSourceConfiguration()
-
-
Method Details
-
getDatasource
Gets the configured datasource name.- Returns:
- The datasource name used by the Oracle cache
-
isDatasourceConfigured
public boolean isDatasourceConfigured()Checks whether the datasource name is configured.- Returns:
- Whether the Oracle cache datasource name is configured
-
setDatasource
Sets the datasource name.- Parameters:
datasource- The datasource name used by the Oracle cache
-
getPrefix
Gets the SQL object prefix.- Returns:
- The SQL object prefix used by the Oracle cache
-
setPrefix
Sets the SQL object prefix.- Parameters:
prefix- The SQL object prefix used by the Oracle cache
-