com.jfw.database
Interface PCMConnection

All Known Implementing Classes:
MyPCM

public interface PCMConnection

Must be implement by all classes used for managing the database connections directly, without the use of a connection pool or datasource.


Method Summary
 java.sql.Connection getConnection()
          Return a database connection ().
 boolean releaseConnection(java.sql.Connection connection)
          Release a database connection.
 

Method Detail

getConnection

java.sql.Connection getConnection()
                                  throws java.lang.Exception
Return a database connection ().

Returns:
a connection to the database.
Throws:
java.lang.Exception - if a database access error occurs.

releaseConnection

boolean releaseConnection(java.sql.Connection connection)
Release a database connection.

Parameters:
connection - specify the connection to release.
Returns:
true if the connection has been released correctly, false in case of error.