2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.database
;
12 import org
.hibernate
.cache
.CacheProvider
;
13 import org
.springframework
.beans
.factory
.config
.BeanDefinition
;
15 import eu
.etaxonomy
.cdm
.database
.DbSchemaValidation
;
17 public interface ICdmDataSource
{
20 * Returns a BeanDefinition object of type DriverManagerDataSource that contains
21 * datsource properties (url, username, password, ...)
24 public BeanDefinition
getDatasourceBean();
31 public BeanDefinition
getHibernatePropertiesBean(DbSchemaValidation hbm2dll
);
38 public BeanDefinition
getHibernatePropertiesBean(DbSchemaValidation hbm2dll
, Boolean showSql
, Boolean formatSql
, Class
<?
extends CacheProvider
> cacheProviderClass
);
46 public String
getName();