org.perfectjpattern.jee.integration.dao
Class JpaManagedSessionStrategy

java.lang.Object
  extended by 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
 

Constructor Summary
JpaManagedSessionStrategy()
           
 
Method Summary
 ISession getSession()
          Returns the adapted JPA implementation-specific ISession
 void setEntityManager(javax.persistence.EntityManager anEntityManager)
           
 void shutdown()
          Shutdown the underlying provider of Session instances
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaManagedSessionStrategy

public JpaManagedSessionStrategy()
Method Detail

shutdown

public void shutdown()
Shutdown the underlying provider of Session instances

Specified by:
shutdown in interface ISessionStrategy

getSession

public ISession getSession()
Returns the adapted JPA implementation-specific ISession

Specified by:
getSession in interface ISessionStrategy
Returns:
adapted JPA implementation-specific ISession

setEntityManager

public void setEntityManager(javax.persistence.EntityManager anEntityManager)


Copyright © 2007-2009. All Rights Reserved.