Class DefaultPostgresStorageConfigurationProvider
java.lang.Object
io.micronaut.microstream.postgres.DefaultPostgresStorageConfigurationProvider
- All Implemented Interfaces:
io.micronaut.core.naming.Named
,RootClassConfigurationProvider
,PostgresStorageConfigurationProvider
@EachProperty("microstream.postgres.storage")
public class DefaultPostgresStorageConfigurationProvider
extends Object
implements PostgresStorageConfigurationProvider
- Since:
- 2.0.0
- Author:
- Tim Yates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe name qualifier of the defined postgres DataSource to use.@NonNull String
getName()
@NonNull Class<?>
Returns the class of the Root Instance.@NonNull String
void
setDatasourceName
(@Nullable String datasourceName) The name qualifier of the defined postgres DataSource to use.void
setRootClass
(@NonNull Class<?> rootClass) Class of the Root Instance.void
setTableName
(@NonNull String tableName)
-
Constructor Details
-
DefaultPostgresStorageConfigurationProvider
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
-
getRootClass
Description copied from interface:RootClassConfigurationProvider
Returns the class of the Root Instance. Root Instances- Specified by:
getRootClass
in interfaceRootClassConfigurationProvider
- Returns:
- Class for the Root Instance.
-
setRootClass
Class of the Root Instance. Root Instances- Parameters:
rootClass
- Class for the Root Instance.
-
getDatasourceName
Description copied from interface:PostgresStorageConfigurationProvider
The name qualifier of the defined postgres DataSource to use. If unset, a datasource with the same name as the storage will be used. If there is no bean with a name qualifier matching the storage name, the default datasource will be used.- Specified by:
getDatasourceName
in interfacePostgresStorageConfigurationProvider
- Returns:
- Returns the name qualifier of the datasource to use.
-
setDatasourceName
The name qualifier of the defined postgres DataSource to use. If unset, a datasource with the same name as the storage will be used. If there is no bean with a name qualifier matching the storage name, the default datasource will be used.- Parameters:
datasourceName
-
-
getTableName
- Specified by:
getTableName
in interfacePostgresStorageConfigurationProvider
- Returns:
- Returns the name of the table to use.
-
setTableName
- Parameters:
tableName
- Name of the table to use.
-