public class C3p0ConnectionFactory extends Object
| Constructor and Description |
|---|
C3p0ConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
checkoutConnection() |
void |
close(Connection con) |
void |
commit(Object tx) |
Connection |
getConnection() |
protected DataSource |
getDataSource() |
String |
getDriverClass() |
String |
getPwd() |
String |
getUrl() |
String |
getUsr() |
protected void |
loadDriver(String drv) |
void |
prepare(Object tx) |
void |
rollback(Object tx) |
void |
setConfig(AdjListJDBCCacheLoaderConfig config) |
void |
start() |
void |
stop() |
public void setConfig(AdjListJDBCCacheLoaderConfig config)
setConfig in interface ConnectionFactorypublic void start()
throws Exception
start in interface ConnectionFactoryExceptionpublic Connection checkoutConnection() throws SQLException
SQLExceptionpublic void stop()
stop in interface ConnectionFactoryprotected DataSource getDataSource()
public void prepare(Object tx)
prepare in interface ConnectionFactorypublic Connection getConnection()
getConnection in interface ConnectionFactorypublic void commit(Object tx)
commit in interface ConnectionFactorypublic void rollback(Object tx)
rollback in interface ConnectionFactorypublic void close(Connection con)
close in interface ConnectionFactorypublic String getUrl()
public String getUsr()
public String getPwd()
public String getDriverClass()
protected void loadDriver(String drv)
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.