public class ConnectionFactory
extends java.lang.Object
构造器和说明 |
---|
ConnectionFactory() |
限定符和类型 | 方法和说明 |
---|---|
static Connection |
createDatabase()
创建默认的空连接
|
static Connection |
createDatabase(java.lang.String dbName)
根据连接名创建数据连接
|
static Connection |
createDatabase(java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password) |
static Connection |
createDatabase(java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password,
DBCPConnectionPoolAttr attr) |
static Connection |
readDatabaseFromXML(java.lang.String tmpVal) |
public static Connection createDatabase()
public static Connection createDatabase(java.lang.String dbName)
dbName
- public static Connection createDatabase(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password)
public static Connection createDatabase(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password, DBCPConnectionPoolAttr attr)
public static Connection readDatabaseFromXML(java.lang.String tmpVal)