public class ApplicationDataSourceProvider extends Object implements com.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
ApplicationDataSourceProvider(org.hibernate.SessionFactory sessionFactory,
com.atlassian.config.ApplicationConfig applicationConfig) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.activeobjects.spi.DatabaseType |
getDatabaseType(com.atlassian.tenancy.api.Tenant tenant) |
DataSource |
getDataSource(com.atlassian.tenancy.api.Tenant tenant) |
String |
getSchema(com.atlassian.tenancy.api.Tenant tenant) |
public ApplicationDataSourceProvider(org.hibernate.SessionFactory sessionFactory, com.atlassian.config.ApplicationConfig applicationConfig)
@Nonnull public DataSource getDataSource(@Nonnull com.atlassian.tenancy.api.Tenant tenant)
getDataSource
in interface com.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
@Nonnull public com.atlassian.activeobjects.spi.DatabaseType getDatabaseType(@Nonnull com.atlassian.tenancy.api.Tenant tenant)
getDatabaseType
in interface com.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
Copyright © 2021 Atlassian. All rights reserved.