org.granite.tide.seam.lazy
Class HibernateContextManager

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

public class HibernateContextManager
extends Object
implements org.granite.tide.TidePersistenceManager

Manager responsible for the maintaining a reference for the HibernateContext.

Author:
CIngram

Constructor Summary
HibernateContextManager()
           
HibernateContextManager(org.hibernate.Session session)
           
 
Method Summary
 Object attachEntity(Object entity, String[] propertyNames)
          Attach the passed in entity with the HibernateSession.
protected  void disconnectSession()
          disconnects from the Hibernate Session.
 Object fetchEntity(Object entity, String[] fetch)
          attaches the entity to the HibernateSession.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateContextManager

public HibernateContextManager()

HibernateContextManager

public HibernateContextManager(org.hibernate.Session session)
Method Detail

attachEntity

public Object attachEntity(Object entity,
                           String[] propertyNames)
Attach the passed in entity with the HibernateSession.

Specified by:
attachEntity in interface org.granite.tide.TidePersistenceManager
Parameters:
entity -
Returns:
the attached entity object

fetchEntity

public Object fetchEntity(Object entity,
                          String[] fetch)
attaches the entity to the HibernateSession.

Returns:
the attached entity

disconnectSession

protected void disconnectSession()
disconnects from the Hibernate Session.