public class MemoryConnection
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static java.sql.Connection |
create(java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password,
DBCPConnectionPoolAttr dbcpAttr)
创建数据连接
|
static java.lang.String[] |
getConnectionInfo() |
static java.util.Map<java.lang.String,DataSourceAdapter> |
getConnectionMap() |
static PoolInfo |
getConnectionPoolInfo(java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password,
DBCPConnectionPoolAttr dbcpAttr) |
static JSONArray |
getJSONConnectionInfo() |
static void |
resetDataSourcePool()
切换连接池的时候需要重置连接池
|
public static java.sql.Connection create(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password, DBCPConnectionPoolAttr dbcpAttr) throws java.sql.SQLException
driver
- 驱动名url
- 连接地址user
- 用户名password
- 密码dbcpAttr
- 连接池属性java.sql.SQLException
public static void resetDataSourcePool()
public static JSONArray getJSONConnectionInfo() throws JSONException
JSONException
public static PoolInfo getConnectionPoolInfo(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password, DBCPConnectionPoolAttr dbcpAttr) throws JSONException
JSONException
public static java.lang.String[] getConnectionInfo()
public static java.util.Map<java.lang.String,DataSourceAdapter> getConnectionMap()