View Javadoc

1   package com.atlassian.config.db;
2   
3   import com.atlassian.config.ConfigurationException;
4   
5   /**
6    * User: nickf
7    * Date: Nov 10, 2004
8    * Time: 5:16:18 PM
9    */
10  public interface HibernateConfigurator
11  {
12      String DATABASE_TYPE_EMBEDDED = "embedded";
13      String DATABASE_TYPE_STANDARD = "standard";
14      String DATABASE_TYPE_DATASOURCE = "datasource";
15  
16      void configureDatabase(DatabaseDetails dbDetails, boolean embedded)
17          throws ConfigurationException;
18  
19      void configureDatasource(String datasourceName, String dialect) throws ConfigurationException;
20  
21      void unconfigureDatabase();
22  }