|
|||||||||
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
Provides a high-level API for getting JDBC connections.
Constructor Summary | |
---|---|
DB()
|
Method Summary | |
---|---|
static java.sql.Connection |
getConnection()
Returns a connection from the default datasource, with auto-commit enabled. |
static java.sql.Connection |
getConnection(boolean autocommit)
Returns a connection from the default datasource, with the specified auto-commit setting. |
static java.sql.Connection |
getConnection(java.lang.String database)
Returns a connection from any datasource, with auto-commit enabled. |
static java.sql.Connection |
getConnection(java.lang.String database,
boolean autocommit)
Get a connection from any datasource, with the specified auto-commit setting. |
static javax.sql.DataSource |
getDataSource()
Returns the default datasource. |
static javax.sql.DataSource |
getDataSource(java.lang.String database)
Returns any default datasource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DB()
Method Detail |
---|
public static javax.sql.DataSource getDataSource()
public static javax.sql.DataSource getDataSource(java.lang.String database)
public static java.sql.Connection getConnection()
public static java.sql.Connection getConnection(boolean autocommit)
public static java.sql.Connection getConnection(java.lang.String database)
public static java.sql.Connection getConnection(java.lang.String database, boolean autocommit)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |