com.jfw.examples
Class MyPCM

java.lang.Object
  extended by com.jfw.examples.MyPCM
All Implemented Interfaces:
PCMConnection

public class MyPCM
extends java.lang.Object
implements PCMConnection


Constructor Summary
MyPCM()
           
 
Method Summary
 java.sql.Connection getConnection()
          Return a database connection ().
 boolean releaseConnection(java.sql.Connection connection)
          Release a database connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyPCM

public MyPCM()
Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws java.lang.Exception
Description copied from interface: PCMConnection
Return a database connection ().

Specified by:
getConnection in interface PCMConnection
Returns:
a connection to the database.
Throws:
java.lang.Exception - if a database access error occurs.

releaseConnection

public boolean releaseConnection(java.sql.Connection connection)
Description copied from interface: PCMConnection
Release a database connection.

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