org.granite.tide.seam.lazy
Class SeamHibernateManager

java.lang.Object
  extended by org.granite.tide.seam.lazy.HibernateContextManager
      extended by org.granite.tide.seam.lazy.SeamHibernateManager
All Implemented Interfaces:
org.granite.tide.TidePersistenceManager

public class SeamHibernateManager
extends HibernateContextManager

Manager responsible for looking up the Hibernate Session for the passed in SessionManagerName

Author:
CIngram

Constructor Summary
SeamHibernateManager(String sessionManagerName)
           
 
Method Summary
protected  void disconnectSession()
          Disconnects from the current hibernate session.
 Object fetchEntity(Object entity, String[] fetch)
          Attach the passed in entity with the HibernateManager stored in Seam.
 
Methods inherited from class org.granite.tide.seam.lazy.HibernateContextManager
attachEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeamHibernateManager

public SeamHibernateManager(String sessionManagerName)
Method Detail

fetchEntity

public Object fetchEntity(Object entity,
                          String[] fetch)
Attach the passed in entity with the HibernateManager stored in Seam.

Overrides:
fetchEntity in class HibernateContextManager
Parameters:
entity -
Returns:
the attached hibernate object

disconnectSession

protected void disconnectSession()
Disconnects from the current hibernate session.

Overrides:
disconnectSession in class HibernateContextManager