org.jaffa.persistence.engines.jdbcengine.security
Interface IJdbcSecurityPlugin

All Known Implementing Classes:
JDBCSecurityPlugin

public interface IJdbcSecurityPlugin

The JDBC Engine will invoke the suitable trigger points of a plugin class that implements this interface. The plugin class will have to be specified in framework.properties The implementing class should have a no-argument constructor.

Author:
GautamJ

Method Summary
 void freeConnection(Connection connection)
          This method will be invoked before returning a Connection back to the connection pool.
 void newConnection(Connection connection)
          This method will be invoked after a new Connection object is obtained from a connection pool.
 

Method Detail

newConnection

public void newConnection(Connection connection)
                   throws SQLException
This method will be invoked after a new Connection object is obtained from a connection pool. An implementing class can add all the logic pertaining to user security in this method.

Parameters:
connection - The new Connection object from the pool.
Throws:
SQLException - if any error occurs.

freeConnection

public void freeConnection(Connection connection)
                    throws SQLException
This method will be invoked before returning a Connection back to the connection pool. An implementing class will undo the changes made by the newConnection() method.

Parameters:
connection - The Connection object to be returned back to the pool.
Throws:
SQLException - if any error occurs.


Copyright © 2002-2004 JAFFA Project.