org.jboss.cache.loader
Class ManagedConnectionFactory

java.lang.Object
  extended by org.jboss.cache.loader.ManagedConnectionFactory
All Implemented Interfaces:
ConnectionFactory

public class ManagedConnectionFactory
extends java.lang.Object
implements ConnectionFactory

ManagedConnectionFactory for Application Server managed environments

Author:
Hany Mesha , Galder Zamarreno

Constructor Summary
ManagedConnectionFactory()
           
 
Method Summary
 void close(java.sql.Connection con)
           
 void commit(java.lang.Object txId)
           
 java.sql.Connection getConnection()
           
 void prepare(java.lang.Object txId)
           
 void rollback(java.lang.Object txId)
           
 void setConfig(AdjListJDBCCacheLoaderConfig config)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedConnectionFactory

public ManagedConnectionFactory()
Method Detail

setConfig

public void setConfig(AdjListJDBCCacheLoaderConfig config)
Specified by:
setConfig in interface ConnectionFactory

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface ConnectionFactory
Throws:
java.lang.Exception

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Specified by:
getConnection in interface ConnectionFactory
Throws:
java.sql.SQLException

prepare

public void prepare(java.lang.Object txId)
Specified by:
prepare in interface ConnectionFactory

commit

public void commit(java.lang.Object txId)
Specified by:
commit in interface ConnectionFactory

rollback

public void rollback(java.lang.Object txId)
Specified by:
rollback in interface ConnectionFactory

close

public void close(java.sql.Connection con)
Specified by:
close in interface ConnectionFactory

stop

public void stop()
Specified by:
stop in interface ConnectionFactory