public class C3P0NoEPConnectionProvider extends Object implements ConnectionProvider
Title: 常用代码打包
Description: Default connection provider, which uses an internal connection pool.
Copyright: Copyright (c) 2013
Company: www.justdos.net
| 限定符和类型 | 字段和说明 |
|---|---|
protected static com.ds.common.logging.Log |
log
Commons Logging instance.
|
| 构造器和说明 |
|---|
C3P0NoEPConnectionProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
com.mchange.v2.c3p0.ComboPooledDataSource |
createDataSource() |
void |
destroy()
Tells the connection provider to destroy itself.
|
void |
finalize() |
Connection |
getConnection()
Returns a database connection.
|
double |
getConnectionTimeout()
Returns the amount of time between connection recycles in days.
|
String |
getDriver()
Returns the JDBC driver classname used to make database connections.
|
int |
getMaxConnections()
Returns the maximum number of connections that the pool will use.
|
int |
getMinConnections()
Returns the minimum number of connections that the pool will use.
|
String |
getPassword()
Returns the password used to connect to the database.
|
ProviderConfig |
getProviderConfig() |
String |
getServerURL()
Returns the JDBC connection URL used to make database connections.
|
String |
getUsername()
Returns the username used to connect to the database.
|
boolean |
isMysqlUseUnicode() |
boolean |
isPooled()
Returns true if this connection provider provides connections out
of a connection pool.
|
void |
restart()
This method should be called whenever properties have been changed so
that the changes will take effect.
|
void |
start()
Starts the connection provider.
|
public boolean isPooled()
ConnectionProviderisPooled 在接口中 ConnectionProviderpublic ProviderConfig getProviderConfig()
getProviderConfig 在接口中 ConnectionProviderpublic com.mchange.v2.c3p0.ComboPooledDataSource createDataSource()
public Connection getConnection() throws SQLException
ConnectionProvidergetConnection 在接口中 ConnectionProviderSQLExceptionpublic void start()
ConnectionProviderstart 在接口中 ConnectionProviderpublic void restart()
ConnectionProviderrestart 在接口中 ConnectionProviderpublic void destroy()
ConnectionProviderdestroy 在接口中 ConnectionProviderpublic String getDriver()
public String getServerURL()
public String getUsername()
public String getPassword()
public int getMinConnections()
public int getMaxConnections()
public double getConnectionTimeout()
public boolean isMysqlUseUnicode()
Copyright © 2023 onecode. All rights reserved.