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.20
-
-
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 String
CIPHER_TYPE_PROP
-
Constructor Summary
Constructors Constructor Description ConfluenceHibernateConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decryptPassword(@NotNull String password, String decrypterClassName)
com.atlassian.db.config.password.CipherProvider
getCipherProvider()
Properties
getHibernateProperties()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setCipherProvider(com.atlassian.db.config.password.CipherProvider cipherProvider)
void
setH2DatabaseManagerBeanName(String h2DatabaseManagerBeanName)
protected boolean
shouldRunH2Server(Properties prop)
boolean
uniqueAllowsAnyNullValues()
boolean
uniqueAllowsMultipleNullValues()
-
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:
getHibernateProperties
in classcom.atlassian.config.db.HibernateConfig
-
shouldRunH2Server
protected boolean shouldRunH2Server(Properties prop)
-
uniqueAllowsMultipleNullValues
public boolean uniqueAllowsMultipleNullValues()
- Specified by:
uniqueAllowsMultipleNullValues
in interfaceHibernateDatabaseCapabilities
- Overrides:
uniqueAllowsMultipleNullValues
in 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:
uniqueAllowsAnyNullValues
in interfaceHibernateDatabaseCapabilities
- Overrides:
uniqueAllowsAnyNullValues
in 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()
-
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 interfaceorg.springframework.context.ApplicationContextAware
-
setH2DatabaseManagerBeanName
public void setH2DatabaseManagerBeanName(String h2DatabaseManagerBeanName)
-
-