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
.types
;
12 import org
.springframework
.jdbc
.datasource
.DriverManagerDataSource
;
14 public interface IDatabaseType
{
18 public String
getName();
22 public String
getClassString();
26 public String
getUrlString();
30 public int getDefaultPort();
35 public String
getHibernateDialect();
38 * Returns the connection String for the given parameters
39 * @param server the server, e.g. IP-Address
40 * @param database the database name on the server (e.g. "testDB")
41 * @param port the port number
42 * @return the connection String
44 public String
getConnectionString(String server
, String database
, int port
);
47 * Returns the connection String for the given parameters, using default port
48 * @param server the server, e.g. IP-Address
49 * @param database the database name on the server (e.g. "testDB")
50 * @return the connection String
52 public String
getConnectionString(String server
, String database
);
55 * Returns the DriverManagerDataSource class that that the datasource needs to create a spring bean
56 * @return the DriverManagerDataSource class
58 public Class
<?
extends DriverManagerDataSource
> getDriverManagerDataSourceClass();