Class ConfluenceHibernateConfig
- java.lang.Object
-
- com.atlassian.config.db.HibernateConfig
-
- com.atlassian.confluence.impl.hibernate.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.core.persistence.hibernate.HibernateDatabaseCapabilities
HibernateDatabaseCapabilities.HibernateConfigAdapter
-
-
Field Summary
Fields Modifier and Type Field Description static StringCIPHER_TYPE_PROP
-
Constructor Summary
Constructors Constructor Description ConfluenceHibernateConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdecryptPassword(@NotNull String password, String decrypterClassName)PropertiesgetHibernateProperties()com.atlassian.secrets.api.SecretStoreProvidergetSecretStoreProvider()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetH2DatabaseManagerBeanName(String h2DatabaseManagerBeanName)voidsetSecretStoreProvider(com.atlassian.secrets.api.SecretStoreProvider secretStoreProvider)protected booleanshouldRunH2Server(Properties prop)booleanuniqueAllowsAnyNullValues()booleanuniqueAllowsMultipleNullValues()-
Methods inherited from class com.atlassian.config.db.HibernateConfig
booleanRequiresSubstitution, getApplicationConfig, isDb2, isDb2Dialect, isH2, isH2Dialect, isHibernateSetup, isHSQL, isHsqlDialect, isMySql, isMySqlDialect, isOracle, isOracleDialect, isPostgreSql, isPostgreSqlDialect, isSqlServer, isSqlServerDialect, setApplicationConfig
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.core.persistence.hibernate.HibernateDatabaseCapabilities
isH2, isHSQL, isMySql, isOracle, isPostgreSql, isSqlServer, supportsIdentityColumns, supportsSequences
-
-
-
-
Field Detail
-
CIPHER_TYPE_PROP
public static final String CIPHER_TYPE_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHibernateProperties
public Properties getHibernateProperties()
- Overrides:
getHibernatePropertiesin classcom.atlassian.config.db.HibernateConfig
-
shouldRunH2Server
protected boolean shouldRunH2Server(Properties prop)
-
uniqueAllowsMultipleNullValues
public boolean uniqueAllowsMultipleNullValues()
- Specified by:
uniqueAllowsMultipleNullValuesin interfaceHibernateDatabaseCapabilities- Overrides:
uniqueAllowsMultipleNullValuesin classcom.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:
uniqueAllowsAnyNullValuesin interfaceHibernateDatabaseCapabilities- Overrides:
uniqueAllowsAnyNullValuesin classcom.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(@NotNull @NotNull String password, @Nullable String decrypterClassName)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setH2DatabaseManagerBeanName
public void setH2DatabaseManagerBeanName(String h2DatabaseManagerBeanName)
-
-