org.granite.tide.spring
Class SpringPersistenceManager

java.lang.Object
  extended by org.granite.tide.spring.SpringPersistenceManager
All Implemented Interfaces:
TidePersistenceManager

public class SpringPersistenceManager
extends Object
implements TidePersistenceManager

Responsible for attaching a session with the persistence mangager

Author:
Cameron Ingram, William Dra�

Constructor Summary
SpringPersistenceManager(PlatformTransactionManager transactionManager)
           
 
Method Summary
 Object attachEntity(Object entity, String[] propertyNames)
          Fetch the entity with its lazy properties from the persistence context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringPersistenceManager

public SpringPersistenceManager(PlatformTransactionManager transactionManager)
Method Detail

attachEntity

public Object attachEntity(Object entity,
                           String[] propertyNames)
Description copied from interface: TidePersistenceManager
Fetch the entity with its lazy properties from the persistence context.

Specified by:
attachEntity in interface TidePersistenceManager
Parameters:
entity - entity to load
propertyNames - array of property names to fetch
Returns:
the entity with the persistence context.