Class 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 ActiveObjects TenantAwareDataSourceProvider that obtains its JDBC connections from Hibernate
    Since:
    8.0
    • 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 interface com.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
      • getDatabaseType

        public @NonNull com.atlassian.activeobjects.spi.DatabaseType getDatabaseType​(@NonNull com.atlassian.tenancy.api.Tenant tenant)
        Specified by:
        getDatabaseType in interface com.atlassian.activeobjects.spi.TenantAwareDataSourceProvider
      • getSchema

        public @Nullable String getSchema​(com.atlassian.tenancy.api.Tenant tenant)
        Specified by:
        getSchema in interface com.atlassian.activeobjects.spi.TenantAwareDataSourceProvider