public class ConfluenceHibernateConfig
extends com.atlassian.config.db.HibernateConfig
Unfortunately the 'hibernate.query.substitutions' cannot be simply added to the database specific properties files as this would require an upgrade task that changes the configuration for existing installations. While it's easy enough to create an UpgradeTask that changes the configuration the upgrade task would need to reload the spring context as the LocalSessionFactoryBean is already instantiated at this point of the bootstrapping process. This is unfortunately too risky to be added to the release at this stage. See CONF-20081
| Modifier and Type | Field and Description |
|---|---|
static String |
CIPHER_TYPE_PROP |
static String |
DIALECT_KEY
Deprecated.
since 7.6.0 use
AvailableSettings.DIALECT instead |
| Constructor and Description |
|---|
ConfluenceHibernateConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
decryptPassword(@NotNull String password,
String decrypterClassName) |
com.atlassian.db.config.password.CipherProvider |
getCipherProvider() |
Properties |
getHibernateProperties() |
void |
setCipherProvider(com.atlassian.db.config.password.CipherProvider cipherProvider) |
void |
setH2ClientConfig(com.google.common.base.Function<com.atlassian.h2.ServerView,String> h2ClientConfig)
Deprecated.
since 7.0.1. Use
setH2ClientConfiguration(Function) |
void |
setH2ClientConfiguration(Function<com.atlassian.h2.ServerView,String> h2ClientConfig) |
void |
setH2ServerLifecycle(com.atlassian.h2.ServerLifecycle h2ServerLifecycle) |
protected boolean |
shouldRunH2Server(Properties prop) |
boolean |
supportsIdentityColumns()
Return true if the current database supports identity columns.
|
boolean |
supportsSequences()
Return true if the current database supports sequences.
|
boolean |
uniqueAllowsAnyNullValues() |
boolean |
uniqueAllowsMultipleNullValues() |
booleanRequiresSubstitution, getApplicationConfig, isDb2, isDb2Dialect, isH2, isH2Dialect, isHibernateSetup, isHSQL, isHsqlDialect, isMySql, isMySqlDialect, isOracle, isOracleDialect, isPostgreSql, isPostgreSqlDialect, isSqlServer, isSqlServerDialect, setApplicationConfig@Deprecated public static final String DIALECT_KEY
AvailableSettings.DIALECT insteadpublic static final String CIPHER_TYPE_PROP
public Properties getHibernateProperties()
getHibernateProperties in class com.atlassian.config.db.HibernateConfigprotected boolean shouldRunH2Server(Properties prop)
public boolean uniqueAllowsMultipleNullValues()
uniqueAllowsMultipleNullValues in class com.atlassian.config.db.HibernateConfigpublic boolean uniqueAllowsAnyNullValues()
uniqueAllowsAnyNullValues in class com.atlassian.config.db.HibernateConfiguniqueAllowsMultipleNullValues()public boolean supportsIdentityColumns()
public boolean supportsSequences()
public void setH2ServerLifecycle(com.atlassian.h2.ServerLifecycle h2ServerLifecycle)
@Deprecated public void setH2ClientConfig(com.google.common.base.Function<com.atlassian.h2.ServerView,String> h2ClientConfig)
setH2ClientConfiguration(Function)public void setH2ClientConfiguration(Function<com.atlassian.h2.ServerView,String> h2ClientConfig)
public void setCipherProvider(com.atlassian.db.config.password.CipherProvider cipherProvider)
public com.atlassian.db.config.password.CipherProvider getCipherProvider()
Copyright © 2003–2022 Atlassian. All rights reserved.