org.makumba.commons
Class DbConnectionProvider
java.lang.Object
org.makumba.commons.DbConnectionProvider
public class DbConnectionProvider
- extends Object
A group of database connections, at most one per database name. They can be closed all at a time. This object is not
thread-safe. The typical use is database accesses made by a JSP page (which take place all in the same thread of the
servlet engine).
- Author:
- Cristian Bogdan
connections
Map<String,Transaction> connections
DbConnectionProvider
public DbConnectionProvider()
getConnectionTo
public Transaction getConnectionTo(String dbname)
close
public void close()
- Close all connections.
finalize
protected void finalize()
- Overrides:
finalize
in class Object
setTransactionProvider
public void setTransactionProvider(TransactionProvider tp)
getTransactionProvider
public TransactionProvider getTransactionProvider()
setContext
public void setContext(Attributes attributes)