org.granite.tide.data
Class AbstractTidePersistenceManager
java.lang.Object
org.granite.tide.data.AbstractTidePersistenceManager
- All Implemented Interfaces:
- TidePersistenceManager
- Direct Known Subclasses:
- JDOPersistenceManager, JPAPersistenceManager
public abstract class AbstractTidePersistenceManager
- extends Object
- implements TidePersistenceManager
Responsible for attaching a entity with the entity mangager
- Author:
- cingram
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tm
protected TideTransactionManager tm
AbstractTidePersistenceManager
public AbstractTidePersistenceManager(TideTransactionManager tm)
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 loadpropertyNames - array of property names to fetch
- Returns:
- the entity with the persistence context.
attachEntity
public Object attachEntity(TidePersistenceManager pm,
Object entity,
String[] propertyNames)
- Attach the passed in entity with the EntityManager.
- Parameters:
entity -
- Returns:
- the attached entity object
fetchEntity
public abstract Object fetchEntity(Object entity,
String[] fetch)
- Fetch the entity with its lazy properties from the persistence context.
- Parameters:
entity - entity to loadfetch - array of property names to fetch
- Returns:
- the entity with the persistence context.