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.20
    • 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()
      • setCipherProvider

        public void setCipherProvider​(com.atlassian.db.config.password.CipherProvider cipherProvider)
      • getCipherProvider

        public com.atlassian.db.config.password.CipherProvider getCipherProvider()
      • decryptPassword

        public String decryptPassword​(@NotNull
                                      @NotNull 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)