|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.db.relational.RDB
Relational Database access point. This class is a singleton.
| Field Summary | |
static boolean |
DEBUG
|
| Method Summary | |
void |
destroy()
Deactivates connections to the database. |
java.sql.Connection |
getConnection()
Obtain a connection from the pool. |
int |
getConnectionNumber()
Returns the current number of open connections. |
static RDB |
getInstance()
Returns the only instance of RDB available in the system (one per JVM, or zone when used in JServ). |
static RDB |
getInstance(java.lang.String dburl,
java.lang.String login,
java.lang.String password,
java.lang.String driver)
Returns the only instance of RDB available in the system (one per JVM, or zone when used in JServ). |
Log |
getLog()
Returns the log system. |
void |
log(int level,
java.lang.String message)
Log a message and an exception. |
void |
log(int level,
java.lang.String message,
java.lang.Exception e)
Logs a message and an exception. |
static void |
main(java.lang.String[] args)
Tests and demonstrates this class behaviour. |
void |
returnConnection(java.sql.Connection con)
Returns a connection to the pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean DEBUG
| Method Detail |
public int getConnectionNumber()
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void returnConnection(java.sql.Connection con)
public static RDB getInstance()
public static RDB getInstance(java.lang.String dburl,
java.lang.String login,
java.lang.String password,
java.lang.String driver)
public void log(int level,
java.lang.String message,
java.lang.Exception e)
Log
public void log(int level,
java.lang.String message)
Logpublic Log getLog()
public void destroy()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||