Class ActiveObjectsDataSourceProvider
- java.lang.Object
-
- com.atlassian.confluence.impl.activeobjects.ActiveObjectsDataSourceProvider
-
- All Implemented Interfaces:
com.atlassian.activeobjects.spi.DataSourceProvider
,com.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
public final class ActiveObjectsDataSourceProvider extends Object implements com.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
An implementation of the ActiveObjectsTenantAwareDataSourceProvider
that obtains its JDBC connections from Hibernate- Since:
- 8.0
-
-
Constructor Summary
Constructors Constructor Description ActiveObjectsDataSourceProvider(SystemInformationService systemInformationService, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull com.atlassian.activeobjects.spi.DatabaseType
getDatabaseType(@NonNull com.atlassian.tenancy.api.Tenant tenant)
@NonNull DataSource
getDataSource(@NonNull com.atlassian.tenancy.api.Tenant tenant)
@Nullable String
getSchema(com.atlassian.tenancy.api.Tenant tenant)
-
-
-
Constructor Detail
-
ActiveObjectsDataSourceProvider
public ActiveObjectsDataSourceProvider(SystemInformationService systemInformationService, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getDataSource
public @NonNull DataSource getDataSource(@NonNull com.atlassian.tenancy.api.Tenant tenant)
- Specified by:
getDataSource
in interfacecom.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
-
getDatabaseType
public @NonNull com.atlassian.activeobjects.spi.DatabaseType getDatabaseType(@NonNull com.atlassian.tenancy.api.Tenant tenant)
- Specified by:
getDatabaseType
in interfacecom.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
-
getSchema
public @Nullable String getSchema(com.atlassian.tenancy.api.Tenant tenant)
- Specified by:
getSchema
in interfacecom.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
-
-