com.atlassian.confluence.core.persistence.hibernate
Class ConfluenceHibernateConfig

java.lang.Object
  extended by com.atlassian.config.db.HibernateConfig
      extended by com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateConfig

public final class ConfluenceHibernateConfig
extends com.atlassian.config.db.HibernateConfig

Hibernate configuration for Confluence.


Field Summary
 
Fields inherited from class com.atlassian.config.db.HibernateConfig
HIBERNATE_CONFIG_PREFIX, HIBERNATE_SETUP
 
Constructor Summary
ConfluenceHibernateConfig()
           
 
Method Summary
 com.atlassian.config.ApplicationConfiguration getApplicationConfig()
           
 java.util.Properties getHibernateProperties()
           
 boolean isDb2()
           
static boolean isDb2Dialect(java.lang.String dialect)
           
 boolean isHSQL()
           
static boolean isHsqlDialect(java.lang.String dialect)
           
 boolean isMySql()
           
static boolean isMySqlDialect(java.lang.String dialect)
           
 boolean isOracle()
           
static boolean isOracleDialect(java.lang.String dialect)
           
 boolean isPostgreSql()
           
static boolean isPostgreSqlDialect(java.lang.String dialect)
           
 boolean isSqlServer()
           
static boolean isSqlServerDialect(java.lang.String dialect)
           
 void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfiguration)
           
 boolean uniqueAllowsAnyNullValues()
           
 boolean uniqueAllowsMultipleNullValues()
           
 
Methods inherited from class com.atlassian.config.db.HibernateConfig
booleanRequiresSubstitution, isHibernateSetup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceHibernateConfig

public ConfluenceHibernateConfig()
Method Detail

getHibernateProperties

public java.util.Properties getHibernateProperties()
Overrides:
getHibernateProperties in class com.atlassian.config.db.HibernateConfig

isOracleDialect

public static boolean isOracleDialect(java.lang.String dialect)

isSqlServerDialect

public static boolean isSqlServerDialect(java.lang.String dialect)

isDb2Dialect

public static boolean isDb2Dialect(java.lang.String dialect)

isHsqlDialect

public static boolean isHsqlDialect(java.lang.String dialect)

isMySqlDialect

public static boolean isMySqlDialect(java.lang.String dialect)

isPostgreSqlDialect

public static boolean isPostgreSqlDialect(java.lang.String dialect)

isDb2

public boolean isDb2()
Overrides:
isDb2 in class com.atlassian.config.db.HibernateConfig

isSqlServer

public boolean isSqlServer()
Overrides:
isSqlServer in class com.atlassian.config.db.HibernateConfig

isPostgreSql

public boolean isPostgreSql()
Overrides:
isPostgreSql in class com.atlassian.config.db.HibernateConfig

isMySql

public boolean isMySql()
Overrides:
isMySql in class com.atlassian.config.db.HibernateConfig

isOracle

public boolean isOracle()
Overrides:
isOracle in class com.atlassian.config.db.HibernateConfig

isHSQL

public boolean isHSQL()
Overrides:
isHSQL in class com.atlassian.config.db.HibernateConfig

uniqueAllowsMultipleNullValues

public boolean uniqueAllowsMultipleNullValues()
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()
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()

setApplicationConfig

public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfiguration)
Overrides:
setApplicationConfig in class com.atlassian.config.db.HibernateConfig

getApplicationConfig

public com.atlassian.config.ApplicationConfiguration getApplicationConfig()
Overrides:
getApplicationConfig in class com.atlassian.config.db.HibernateConfig


Copyright © 2003-2014 Atlassian. All Rights Reserved.