magoffin.matt.ma2.dao.support
Class AbstractJdbcBrowseModePlugin

java.lang.Object
  extended by magoffin.matt.ma2.support.AbstractPlugin
      extended by magoffin.matt.ma2.dao.support.AbstractJdbcBrowseModePlugin
All Implemented Interfaces:
BrowseModePlugin, Plugin
Direct Known Subclasses:
AlbumsByDateBrowseModePlugin, PopularityBrowseModePlugin, RatingAverageBrowseModePlugin

public abstract class AbstractJdbcBrowseModePlugin
extends AbstractPlugin
implements BrowseModePlugin

Base class for JDBC based implementations of BrowseModePlugin.

The class is a useful class to extend for JDBC-based implementations of the BrowseModePlugin API. This class provides a common framework for initializing the plugin instance with a Spring context file.

Version:
$Revision: 51 $ $Date: 2007-11-08 18:52:26 +1300 (Thu, 08 Nov 2007) $
Author:
matt.magoffin

Field Summary
 
Fields inherited from class magoffin.matt.ma2.support.AbstractPlugin
log
 
Constructor Summary
AbstractJdbcBrowseModePlugin()
           
 
Method Summary
 DomainObjectFactory getDomainObjectFactory()
           
 org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
           
 java.lang.Class<? extends Plugin> getPluginType()
          Return the type of plugin this plugin represents.
 UserBiz getUserBiz()
           
 void setDomainObjectFactory(DomainObjectFactory domainObjectFactory)
           
 void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
           
 void setUserBiz(UserBiz userBiz)
           
 
Methods inherited from class magoffin.matt.ma2.support.AbstractPlugin
getConfigName, init, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface magoffin.matt.ma2.plugin.BrowseModePlugin
find, getSupportedModes, supportsMode
 
Methods inherited from interface magoffin.matt.ma2.plugin.Plugin
getMessageResourceNames, initialize
 

Constructor Detail

AbstractJdbcBrowseModePlugin

public AbstractJdbcBrowseModePlugin()
Method Detail

getPluginType

public java.lang.Class<? extends Plugin> getPluginType()
Description copied from interface: Plugin
Return the type of plugin this plugin represents.

Specified by:
getPluginType in interface Plugin
Returns:
the plugin type

getUserBiz

public UserBiz getUserBiz()
Returns:
the userBiz

setUserBiz

public void setUserBiz(UserBiz userBiz)
Parameters:
userBiz - the userBiz to set

getJdbcTemplate

public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
Returns:
the jdbcTemplate

setJdbcTemplate

public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Parameters:
jdbcTemplate - the jdbcTemplate to set

getDomainObjectFactory

public DomainObjectFactory getDomainObjectFactory()
Returns:
the domainObjectFactory

setDomainObjectFactory

public void setDomainObjectFactory(DomainObjectFactory domainObjectFactory)
Parameters:
domainObjectFactory - the domainObjectFactory to set