fr.inrialpes.exmo.align.service
Class DBServiceImpl
java.lang.Object
fr.inrialpes.exmo.align.service.DBServiceImpl
- All Implemented Interfaces:
- DBService
public class DBServiceImpl
- extends Object
- implements DBService
Method Summary |
void |
close()
|
void |
connect(String password)
|
void |
connect(String user,
String password)
|
void |
connect(String port,
String user,
String password)
|
void |
connect(String IPAddress,
String port,
String user,
String password)
|
void |
connect(String IPAddress,
String port,
String user,
String password,
String database)
|
Connection |
getConnection()
|
void |
init()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
int id
conn
Connection conn
IPAddress
static String IPAddress
port
static String port
user
static String user
database
static String database
driverPrefix
String driverPrefix
cache
CacheImpl cache
DBServiceImpl
public DBServiceImpl()
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
- Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
DBServiceImpl
public DBServiceImpl(String driver,
String prefix)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
- Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
init
public void init()
- Specified by:
init
in interface DBService
connect
public void connect(String password)
throws SQLException
- Specified by:
connect
in interface DBService
- Throws:
SQLException
connect
public void connect(String user,
String password)
throws SQLException
- Specified by:
connect
in interface DBService
- Throws:
SQLException
connect
public void connect(String port,
String user,
String password)
throws SQLException
- Specified by:
connect
in interface DBService
- Throws:
SQLException
connect
public void connect(String IPAddress,
String port,
String user,
String password)
throws SQLException
- Specified by:
connect
in interface DBService
- Throws:
SQLException
connect
public void connect(String IPAddress,
String port,
String user,
String password,
String database)
throws SQLException
- Specified by:
connect
in interface DBService
- Throws:
SQLException
getConnection
public Connection getConnection()
- Specified by:
getConnection
in interface DBService
close
public void close()
- Specified by:
close
in interface DBService
(C) INRIA & friends, 2003-2008