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