com.boylesoftware.cb2
Interface DAOPlugin

All Known Subinterfaces:
FetchExecutor, QueryParamProcessor, QueryParamSetter, ResultSetFieldGetter, ResultSetFieldProcessor
All Known Implementing Classes:
GenericFetchExecutor

public interface DAOPlugin

Common parent interface for various DAO plugin subinterfaces. You cannot write a plugin, which implements only this interface - it is abstract. Instead, a plugin implementation must implement one or more of the derived from this definition subinterfaces. Depending on what particular subinterfaces your plugin implements, the DAO will be calling its methods at certain moments to perform certain elementary operations.

To install a plugin add a <plugin> element into your DAO configuration in the blo-config.xml file:

 <plugin>
   <class>org.myorganization.myapplication.MyDAOPluginImplementation</class>
 </plugin>

Note, that some subinterfaces allow to have multiple plugins implementing them installed on a DAO, while others allow only one single plugin of that type for a DAO.

Version:
$Id: DAOPlugin.java,v 1.3 2004/04/20 16:00:58 levahim Exp $
Author:
Lev Himmelfarb
See Also:
DAO

Method Summary
 void setApplicationContext(ApplicationContext appCtx)
          The systems calls this method after it creates a new instance of the plugin, once in its lifecycle.
 

Method Detail

setApplicationContext

public void setApplicationContext(ApplicationContext appCtx)
The systems calls this method after it creates a new instance of the plugin, once in its lifecycle.

Parameters:
appCtx - the application context.


Copyright © 2002,2003,2004 - Boyle Software, Inc.