org.perfectjpattern.jee.integration.dao
Class JpaSessionStrategy
java.lang.Object
org.perfectjpattern.jee.integration.dao.JpaSessionStrategy
- All Implemented Interfaces:
- IStrategy, ISessionStrategy
public class JpaSessionStrategy
- extends Object
- implements ISessionStrategy
Concrete simple implementation of ISessionStrategy
targeting
JPA on JSE environment
- Version:
- $Revision: 1.0 $Date: Feb 18, 2009 1:27:19 PM $
- Author:
- Giovanni Azua
-
-
Method Summary |
ISession |
getSession()
Returns the adapted JPA implementation-specific ISession |
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 |
JpaSessionStrategy
public JpaSessionStrategy()
JpaSessionStrategy
public JpaSessionStrategy(String aName,
Properties aProperties)
getSession
public ISession getSession()
- Returns the adapted JPA implementation-specific
ISession
- Specified by:
getSession
in interface ISessionStrategy
- Returns:
- adapted JPA implementation-specific
ISession
shutdown
public void shutdown()
- Shutdown the underlying provider of
Session
instances
- Specified by:
shutdown
in interface ISessionStrategy
Copyright © 2007-2009. All Rights Reserved.