sqlg2.db
Interface ConnectionManager

All Known Implementing Classes:
SingleConnectionManager

public interface ConnectionManager

Connection pool interface. Pool is created once for each connected user.


Method Summary
 java.sql.Connection allocConnection(boolean simpleTransaction)
          Connection allocation.
 void close()
          Closing all connections and releasing all resources.
 void releaseConnection(java.sql.Connection conn)
          Connection release.
 

Method Detail

allocConnection

java.sql.Connection allocConnection(boolean simpleTransaction)
                                    throws java.sql.SQLException
Connection allocation.

Parameters:
simpleTransaction - true if connection is allocated for simple transaction. Can be used to prevent deadlocks between transactions.
Throws:
java.sql.SQLException

releaseConnection

void releaseConnection(java.sql.Connection conn)
                       throws java.sql.SQLException
Connection release.

Throws:
java.sql.SQLException

close

void close()
           throws java.sql.SQLException
Closing all connections and releasing all resources.

Throws:
java.sql.SQLException