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()
           
 Properties getHibernateProperties()
           
 boolean isDb2()
           
static boolean isDb2Dialect(String dialect)
           
 boolean isHSQL()
           
static boolean isHsqlDialect(String dialect)
           
 boolean isMySql()
           
static boolean isMySqlDialect(String dialect)
           
 boolean isOracle()
           
static boolean isOracleDialect(String dialect)
           
 boolean isPostgreSql()
           
static boolean isPostgreSqlDialect(String dialect)
           
 boolean isSqlServer()
           
static boolean isSqlServerDialect(String dialect)
           
 void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfiguration)
           
 boolean uniqueAllowsAnyNullValues()
           
 boolean uniqueAllowsMultipleNullValues()
           
 
Methods inherited from class com.atlassian.config.db.HibernateConfig
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 Properties getHibernateProperties()
Overrides:
getHibernateProperties in class com.atlassian.config.db.HibernateConfig

isOracleDialect

public static boolean isOracleDialect(String dialect)

isSqlServerDialect

public static boolean isSqlServerDialect(String dialect)

isDb2Dialect

public static boolean isDb2Dialect(String dialect)

isHsqlDialect

public static boolean isHsqlDialect(String dialect)

isMySqlDialect

public static boolean isMySqlDialect(String dialect)

isPostgreSqlDialect

public static boolean isPostgreSqlDialect(String dialect)

isDb2

public boolean isDb2()

isSqlServer

public boolean isSqlServer()

isPostgreSql

public boolean isPostgreSql()

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()
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()
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()


Copyright © 2003-2011 Atlassian. All Rights Reserved.