org.davesag.generica.controller
Class AbstractHibernateController

java.lang.Object
  extended byorg.davesag.generica.controller.AbstractController
      extended byorg.davesag.generica.controller.AbstractActionController
          extended byorg.davesag.generica.controller.AbstractHibernateController
All Implemented Interfaces:
ActionController, Controller
Direct Known Subclasses:
AbstractUserProfileController, GenericContentSelector

public abstract class AbstractHibernateController
extends AbstractActionController

The AbstractHibernateController adds a utility method to the AbstractActionController for obtaining the current hibernate session. Extend this and implement whichever specific ActionController you need.

Since:
Generica 1.0
Version:
CVS Revision $Id: AbstractHibernateController.java,v 1.3 2004/03/30 13:00:40 davesag Exp $
Author:
Dave Sag http://www.davesag.com

Field Summary
 
Fields inherited from class org.davesag.generica.controller.AbstractActionController
theAction
 
Fields inherited from class org.davesag.generica.controller.AbstractController
theForm, theRequest, theResponse, theSession
 
Constructor Summary
AbstractHibernateController()
           
 
Method Summary
 Session getHibernateSession()
          get the active hibernate session.
 
Methods inherited from class org.davesag.generica.controller.AbstractActionController
getAction, getMessages, setAction
 
Methods inherited from class org.davesag.generica.controller.AbstractController
getApplication, getForm, getLocale, getRequest, getResponse, getSession, setForm, setRequest, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.davesag.generica.controller.Controller
setForm, setRequest, setResponse
 

Constructor Detail

AbstractHibernateController

public AbstractHibernateController()
Method Detail

getHibernateSession

public Session getHibernateSession()
                            throws Exception
get the active hibernate session.

Returns:
The current active hibernate session.
Throws:
Exception - probably a hibernate exception.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.