com.atlassian.config.db
Class DatabaseHelper
java.lang.Object
com.atlassian.config.db.DatabaseHelper
public class DatabaseHelper
- extends Object
The DatabaseHelper class provides methods used during bootstrap. In order to be able to mock those methods, the
functionality was componentized.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseHelper
public DatabaseHelper()
setDatabaseLowerProperty
public void setDatabaseLowerProperty(Properties databaseProperties,
ApplicationConfiguration applicationConfig)
throws BootstrapException
- Test whether the database's lower function supports non-ascii characters and sets a hibernate parameter in the
application configuration. This serves as a workaround for postgres which does not support lower casing of
non-ascii characters in certain versions. The property set in this method will be used in
GeneralUtil.specialToLowerCase() to indicate whether the database supports the lowercasing or not. The property
might not be set if the database does not support the query.
- Parameters:
databaseProperties - applicationConfig -
- Throws:
BootstrapException
getDatasource
public DataSource getDatasource(String ds)
throws BootstrapException
- Throws:
BootstrapException
Copyright © 2006-2010 Atlassian Pty Ltd. All Rights Reserved.