org.perfectjpattern.jee.integration.dao
Class JpaManagedSessionStrategy
java.lang.Object
   org.perfectjpattern.jee.integration.dao.JpaManagedSessionStrategy
org.perfectjpattern.jee.integration.dao.JpaManagedSessionStrategy
- All Implemented Interfaces: 
- IStrategy, ISessionStrategy
- public final class JpaManagedSessionStrategy 
- extends Object- implements ISessionStrategy
Concrete implementation of ISessionStrategy targeting 
 the Ejb managed environment
- Version:
- $Revision: 1.0 $Date: Feb 8, 2009 5:24:51 PM $
- Author:
- Giovanni Azua
-  
- 
 
| Method Summary | 
|  ISession | getSession()Returns the adapted JPA implementation-specific
 ISession | 
|  void | setEntityManager(javax.persistence.EntityManager anEntityManager)
 | 
|  void | shutdown()Shutdown the underlying provider of
 Sessioninstances | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
JpaManagedSessionStrategy
public JpaManagedSessionStrategy()
shutdown
public void shutdown()
- Shutdown the underlying provider of Sessioninstances
 
- 
- Specified by:
- shutdownin interface- ISessionStrategy
 
- 
 
getSession
public ISession getSession()
- Returns the adapted JPA implementation-specific ISession
 
- 
- Specified by:
- getSessionin interface- ISessionStrategy
 
- 
- Returns:
- adapted JPA implementation-specific ISession
 
setEntityManager
public void setEntityManager(javax.persistence.EntityManager anEntityManager)
- 
 
- 
 
Copyright © 2007-2009. All Rights Reserved.