public interface TenantAwareDataSourceProvider
| Modifier and Type | Method and Description |
|---|---|
DatabaseType |
getDatabaseType(com.atlassian.tenancy.api.Tenant tenant)
Returns the database type for the tenant
|
DataSource |
getDataSource(com.atlassian.tenancy.api.Tenant tenant)
Provide host application data source associated with a tenant.
|
String |
getSchema(com.atlassian.tenancy.api.Tenant tenant)
The name of the schema used with this database for the tenant.
|
@Nonnull DataSource getDataSource(@Nonnull com.atlassian.tenancy.api.Tenant tenant)
com.atlassian.activeobjects.external.ActiveObjects@Nonnull DatabaseType getDatabaseType(@Nonnull com.atlassian.tenancy.api.Tenant tenant)
Returns the database type for the tenant
Note: if DatabaseType.UNKNOWN is return it is left up to the client of
the data source provider to 'guess' the type of the database. It is strongly advised to implement this method so
that it never returns DatabaseType.UNKNOWN.
DatabaseTypeCopyright © 2018 Atlassian. All rights reserved.