org.jboss.cache.loader
Interface ConnectionFactory

All Known Implementing Classes:
C3p0ConnectionFactory, ManagedConnectionFactory

public interface ConnectionFactory

ConnectionFactory interface defining the operations to be defined by connection providers

Author:
Hany Mesha , Galder Zamarreno

Method Summary
 void close(Connection con)
           
 void commit(Object tx)
           
 Connection getConnection()
           
 void prepare(Object tx)
           
 void rollback(Object tx)
           
 void setConfig(AdjListJDBCCacheLoaderConfig config)
           
 void start()
           
 void stop()
           
 

Method Detail

setConfig

void setConfig(AdjListJDBCCacheLoaderConfig config)

start

void start()
           throws Exception
Throws:
Exception

getConnection

Connection getConnection()
                         throws SQLException
Throws:
SQLException

prepare

void prepare(Object tx)

commit

void commit(Object tx)

rollback

void rollback(Object tx)

close

void close(Connection con)

stop

void stop()


Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.