com.atlassian.config.db
Class HibernateConfig

java.lang.Object
  extended by com.atlassian.config.db.HibernateConfig

public class HibernateConfig
extends Object

Wrapper around ApplicationConfiguration to provide easy access to Hibernate configuration info


Field Summary
static String HIBERNATE_CONFIG_PREFIX
           
static String HIBERNATE_SETUP
           
 
Constructor Summary
HibernateConfig()
          Do not construct.
 
Method Summary
 Properties getHibernateProperties()
          Gets all hibernate properties from the config starting 'hibernate.'
 boolean isHibernateSetup()
           
 boolean isHSQL()
           
 boolean isMySql()
          Since MySQL needs to be isolated from _real_ databases.
 boolean isOracle()
           
 void setApplicationConfig(ApplicationConfiguration applicationConfiguration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIBERNATE_SETUP

public static final String HIBERNATE_SETUP
See Also:
Constant Field Values

HIBERNATE_CONFIG_PREFIX

public static final String HIBERNATE_CONFIG_PREFIX
See Also:
Constant Field Values
Constructor Detail

HibernateConfig

public HibernateConfig()
Do not construct. Do not take orally. Consult a doctor if pain persists.

Method Detail

setApplicationConfig

public void setApplicationConfig(ApplicationConfiguration applicationConfiguration)

isHibernateSetup

public boolean isHibernateSetup()

getHibernateProperties

public Properties getHibernateProperties()
Gets all hibernate properties from the config starting 'hibernate.'

Returns:
all hibernate properties in a Properties map

isMySql

public boolean isMySql()
Since MySQL needs to be isolated from _real_ databases.


isOracle

public boolean isOracle()

isHSQL

public boolean isHSQL()


Atlassian Config is developed by Atlassian Software Systems.