public final class ConfluenceTenantAwareDataSourceProvider
extends com.atlassian.activeobjects.spi.AbstractTenantAwareDataSourceProvider
Constructor and Description |
---|
ConfluenceTenantAwareDataSourceProvider(org.hibernate.SessionFactory sessionFactory,
CurrentDialect currentDialect) |
Modifier and Type | Method and Description |
---|---|
boolean |
enablePluginSchemaMigration() |
boolean |
enableUpgradeTasks() |
com.atlassian.activeobjects.spi.DatabaseType |
getDatabaseType(com.atlassian.tenancy.api.Tenant tenant) |
DataSource |
getDataSource(com.atlassian.tenancy.api.Tenant tenant) |
boolean |
handleMigrationError(SQLException ex) |
public ConfluenceTenantAwareDataSourceProvider(org.hibernate.SessionFactory sessionFactory, CurrentDialect currentDialect)
@Nonnull public DataSource getDataSource(@Nonnull com.atlassian.tenancy.api.Tenant tenant)
public boolean enableUpgradeTasks()
public boolean enablePluginSchemaMigration()
public boolean handleMigrationError(SQLException ex)
@Nonnull public com.atlassian.activeobjects.spi.DatabaseType getDatabaseType(@Nonnull com.atlassian.tenancy.api.Tenant tenant)
getDatabaseType
in interface com.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
getDatabaseType
in class com.atlassian.activeobjects.spi.AbstractTenantAwareDataSourceProvider
Copyright © 2003–2017 Atlassian. All rights reserved.