xsul.xpola.db.conn
Class DBConnManager

java.lang.Object
  extended byxsul.xpola.db.conn.DBConnManager

public class DBConnManager
extends java.lang.Object


Field Summary
static int DATASOURCE
           
static int DERBY
           
static int HSQL
           
static int MYSQL
           
static int ORACLE
           
static int POSTGRE
           
 
Method Summary
 java.sql.Connection getConnection()
           
static DBConnManager getInstance()
           
static DBConnManager getInstance(int dbType, java.lang.String db, java.lang.String user, java.lang.String password)
           
 void init()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORACLE

public static final int ORACLE
See Also:
Constant Field Values

HSQL

public static final int HSQL
See Also:
Constant Field Values

MYSQL

public static final int MYSQL
See Also:
Constant Field Values

POSTGRE

public static final int POSTGRE
See Also:
Constant Field Values

DERBY

public static final int DERBY
See Also:
Constant Field Values

DATASOURCE

public static final int DATASOURCE
See Also:
Constant Field Values
Method Detail

getInstance

public static DBConnManager getInstance()

getInstance

public static DBConnManager getInstance(int dbType,
                                        java.lang.String db,
                                        java.lang.String user,
                                        java.lang.String password)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

init

public void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

getConnection

public java.sql.Connection getConnection()
                                  throws java.lang.Exception
Throws:
java.lang.Exception


IU Extreme! Lab (http://www.extreme.indiana.edu)