|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectplay.db.DBConfig
public class DBConfig
| 嵌套类摘要 | |
|---|---|
static class |
DBConfig.PlayConnectionCustomizer
|
static class |
DBConfig.ProxyDriver
Needed because DriverManager will not load a driver ouside of the system classloader |
| 字段摘要 | |
|---|---|
static java.lang.String |
defaultDbConfigName
This is the name of the default db- and jpa-config name |
| 构造方法摘要 | |
|---|---|
protected |
DBConfig(java.lang.String dbConfigName)
|
| 方法摘要 | |
|---|---|
void |
close()
Close the connection opened for the current thread. |
protected boolean |
configure()
Detects changes and reconfigures this dbConfig. |
void |
destroy()
Tries to destroy the datasource |
boolean |
execute(java.lang.String SQL)
Execute an SQL update |
java.sql.ResultSet |
executeQuery(java.lang.String SQL)
Execute an SQL query |
protected java.lang.String |
getConfigInfoString()
returns empty string if default config. |
java.sql.Connection |
getConnection()
Open a connection for the current thread. |
javax.sql.DataSource |
getDatasource()
|
java.lang.String |
getDBConfigName()
|
protected java.lang.String |
getStatus()
|
java.lang.String |
getUrl()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final java.lang.String defaultDbConfigName
| 构造方法详细信息 |
|---|
protected DBConfig(java.lang.String dbConfigName)
| 方法详细信息 |
|---|
public java.lang.String getDBConfigName()
public void close()
public java.sql.Connection getConnection()
public boolean execute(java.lang.String SQL)
SQL -
public java.sql.ResultSet executeQuery(java.lang.String SQL)
SQL -
public void destroy()
protected boolean configure()
protected java.lang.String getConfigInfoString()
protected java.lang.String getStatus()
public javax.sql.DataSource getDatasource()
public java.lang.String getUrl()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||