|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.db.DB
public class DB
Database connection utilities.
| Field Summary | |
|---|---|
static javax.sql.DataSource |
datasource
The loaded datasource. |
static java.lang.String |
destroyMethod
The method used to destroy the datasource |
| Constructor Summary | |
|---|---|
DB()
|
|
| Method Summary | |
|---|---|
static void |
close()
Close the connection opened for the current thread. |
static void |
destroy()
Destroy the datasource |
static boolean |
execute(java.lang.String SQL)
Execute an SQL update |
static java.sql.ResultSet |
executeQuery(java.lang.String SQL)
Execute an SQL query |
static java.sql.Connection |
getConnection()
Open a connection for the current thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static javax.sql.DataSource datasource
public static java.lang.String destroyMethod
| Constructor Detail |
|---|
public DB()
| Method Detail |
|---|
public static void close()
public static java.sql.Connection getConnection()
public static boolean execute(java.lang.String SQL)
SQL -
public static java.sql.ResultSet executeQuery(java.lang.String SQL)
SQL -
public static void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||