KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > database > DatabaseService


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5
6 /**
7  * Created by The eXo Platform SARL .
8  * Author : Tuan Nguyen
9  * tuan08@users.sourceforge.net
10  * Date: Jun 14, 2003
11  * Time: 1:12:22 PM
12  */

13 package org.exoplatform.services.database;
14
15 import javax.sql.DataSource JavaDoc;
16
17 public interface DatabaseService {
18
19   public static final String JavaDoc HSQL = "hsql";
20   public static final String JavaDoc MYSQL = "mysql";
21   public static final String JavaDoc DB2 = "db2";
22   public static final String JavaDoc ORACLE = "oracle";
23   public static final String JavaDoc POSTGRESQL = "postgresql";
24   public static final String JavaDoc SQL_SERVER = "microsoft sql server";
25   public static final String JavaDoc UNKNOWN = "unknown";
26
27   public static final String JavaDoc EXO_DATASOURCE_NAME = "ExoDS";
28   public static final String JavaDoc EXO_WORKFLOW_DATASOURCE_NAME = "WorkflowDS";
29
30   public DataSource JavaDoc getDefaultDataSource() ;
31   public DataSource JavaDoc getDataSource(String JavaDoc name) ;
32   public String JavaDoc getDatabaseType(String JavaDoc dsName) ;
33   public String JavaDoc getDatabaseType(DataSource JavaDoc ds) ;
34 }
35
Popular Tags