org.perfectjpattern.jee.integration.dao
Class JpaManagedTransactionStrategy

java.lang.Object
  extended by org.perfectjpattern.jee.integration.dao.JpaManagedTransactionStrategy
All Implemented Interfaces:
IStrategy, ITransactionStrategy

public final class JpaManagedTransactionStrategy
extends Object
implements ITransactionStrategy

Concrete implementation of ITransactionStrategy targeting the Ejb managed environment

Version:
$Revision: 1.0 $Date: Feb 8, 2009 5:24:51 PM $
Author:
Giovanni Azua
 

Constructor Summary
JpaManagedTransactionStrategy()
           
 
Method Summary
 ITransaction getTransaction()
          Returns the adapted JPA implementation-specific Transaction
 void setSessionStrategy(ISessionStrategy aSessionStrategy)
          Sets the sessionStrategy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaManagedTransactionStrategy

public JpaManagedTransactionStrategy()
Method Detail

setSessionStrategy

public final void setSessionStrategy(ISessionStrategy aSessionStrategy)
Sets the sessionStrategy

Parameters:
anSessionStrategy - the sessionStrategy to set

getTransaction

public ITransaction getTransaction()
Returns the adapted JPA implementation-specific Transaction

Specified by:
getTransaction in interface ITransactionStrategy
Returns:
adapted JPA implementation-specific Transaction


Copyright © 2007-2009. All Rights Reserved.