|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.db.DB
public class DB
Database connection utilities.
Field Summary | |
---|---|
static javax.sql.DataSource |
datasource
The loaded datasource. |
Constructor Summary | |
---|---|
DB()
|
Method Summary | |
---|---|
static void |
close()
Close the connection opened for the current thread. |
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
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |