org.drools.persistence.jpa
Class JpaPersistenceContextManager

java.lang.Object
  extended by org.drools.persistence.jpa.JpaPersistenceContextManager
All Implemented Interfaces:
PersistenceContextManager

public class JpaPersistenceContextManager
extends Object
implements PersistenceContextManager


Field Summary
protected  javax.persistence.EntityManager cmdScopedEntityManager
           
 
Constructor Summary
JpaPersistenceContextManager(org.drools.runtime.Environment env)
           
 
Method Summary
 void beginCommandScopedEntityManager()
           
 void dispose()
           
 void endCommandScopedEntityManager()
           
 PersistenceContext getApplicationScopedPersistenceContext()
           
 PersistenceContext getCommandScopedPersistenceContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cmdScopedEntityManager

protected javax.persistence.EntityManager cmdScopedEntityManager
Constructor Detail

JpaPersistenceContextManager

public JpaPersistenceContextManager(org.drools.runtime.Environment env)
Method Detail

getApplicationScopedPersistenceContext

public PersistenceContext getApplicationScopedPersistenceContext()
Specified by:
getApplicationScopedPersistenceContext in interface PersistenceContextManager

getCommandScopedPersistenceContext

public PersistenceContext getCommandScopedPersistenceContext()
Specified by:
getCommandScopedPersistenceContext in interface PersistenceContextManager

beginCommandScopedEntityManager

public void beginCommandScopedEntityManager()
Specified by:
beginCommandScopedEntityManager in interface PersistenceContextManager

endCommandScopedEntityManager

public void endCommandScopedEntityManager()
Specified by:
endCommandScopedEntityManager in interface PersistenceContextManager

dispose

public void dispose()
Specified by:
dispose in interface PersistenceContextManager


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.