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 ConnectionFactory
public void start() throws Exception
start
in interface ConnectionFactory
Exception
public Connection checkoutConnection() throws SQLException
SQLException
public void stop()
stop
in interface ConnectionFactory
protected DataSource getDataSource()
public void prepare(Object tx)
prepare
in interface ConnectionFactory
public Connection getConnection()
getConnection
in interface ConnectionFactory
public void commit(Object tx)
commit
in interface ConnectionFactory
public void rollback(Object tx)
rollback
in interface ConnectionFactory
public void close(Connection con)
close
in interface ConnectionFactory
public 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.