public class GeneratorPool extends Object implements IConnectionPool
| 构造器和说明 |
|---|
GeneratorPool(String drivername,
String jdbcurl,
String username,
String password,
String packagename,
String path,
int connectionSize)
Instantiates a new generator pool.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close.
|
Connection |
getConnection()
Gets the connection.
|
Connection |
getConnection(long timeout)
Gets the connection.
|
String |
getGwtbase()
Gets the gwtbase.
|
GeneratorPool |
getInstance()
Gets the single instance of GeneratorPool.
|
String |
getNetPath()
Gets the net path.
|
String |
getPackage()
Gets the package.
|
String |
getPath()
Gets the path.
|
void |
log(String msg)
Log.
|
void |
releaseConnection(Connection con)
Release connection.
|
public GeneratorPool(String drivername, String jdbcurl, String username, String password, String packagename, String path, int connectionSize)
drivername - the drivernamejdbcurl - the jdbcurlusername - the usernamepassword - the passwordpackagename - the packagenamepath - the pathconnectionSize - the connection sizepublic GeneratorPool getInstance()
public void log(String msg)
msg - the msgpublic Connection getConnection()
IConnectionPoolgetConnection 在接口中 IConnectionPoolpublic void releaseConnection(Connection con)
IConnectionPoolreleaseConnection 在接口中 IConnectionPoolcon - the conpublic Connection getConnection(long timeout)
timeout - the timeoutpublic void close()
public String getPath()
IConnectionPoolgetPath 在接口中 IConnectionPoolpublic String getNetPath()
IConnectionPoolgetNetPath 在接口中 IConnectionPoolpublic String getPackage()
IConnectionPoolgetPackage 在接口中 IConnectionPoolpublic String getGwtbase()
IConnectionPoolgetGwtbase 在接口中 IConnectionPoolCopyright © 2018. All rights reserved.