Class ConfluenceHibernateConfig

  • All Implemented Interfaces:
    HibernateDatabaseCapabilities, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class ConfluenceHibernateConfig
    extends com.atlassian.config.db.HibernateConfig
    implements HibernateDatabaseCapabilities, org.springframework.context.ApplicationContextAware
    Since:
    7.13.17
    • Constructor Detail

      • ConfluenceHibernateConfig

        public ConfluenceHibernateConfig()
    • Method Detail

      • getHibernateProperties

        public Properties getHibernateProperties()
        Overrides:
        getHibernateProperties in class com.atlassian.config.db.HibernateConfig
      • shouldRunH2Server

        protected boolean shouldRunH2Server​(Properties prop)
      • uniqueAllowsMultipleNullValues

        public boolean uniqueAllowsMultipleNullValues()
        Specified by:
        uniqueAllowsMultipleNullValues in interface HibernateDatabaseCapabilities
        Overrides:
        uniqueAllowsMultipleNullValues in class com.atlassian.config.db.HibernateConfig
        Returns:
        true if the current database allows multiple null values to be inserted in a column on which there is a unique constraint.
      • uniqueAllowsAnyNullValues

        public boolean uniqueAllowsAnyNullValues()
        Specified by:
        uniqueAllowsAnyNullValues in interface HibernateDatabaseCapabilities
        Overrides:
        uniqueAllowsAnyNullValues in class com.atlassian.config.db.HibernateConfig
        Returns:
        true if the current database allows unique constraints over columns that can contain null values. The null values may or may not be treated like they are unique.
        See Also:
        uniqueAllowsMultipleNullValues()
      • setSecretStoreProvider

        public void setSecretStoreProvider​(com.atlassian.secrets.api.SecretStoreProvider secretStoreProvider)
      • getSecretStoreProvider

        public com.atlassian.secrets.api.SecretStoreProvider getSecretStoreProvider()
      • decryptPassword

        public String decryptPassword​(@NonNull String password,
                                      @Nullable String decrypterClassName)
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • setH2DatabaseManagerBeanName

        public void setH2DatabaseManagerBeanName​(String h2DatabaseManagerBeanName)