net.sf.easyweb4j.repository.orm.jpa
Class JPAPersistenceContextManager

java.lang.Object
  extended by net.sf.easyweb4j.repository.orm.jpa.JPAPersistenceContextManager
All Implemented Interfaces:
PersistenceContextManager

public class JPAPersistenceContextManager
extends Object
implements PersistenceContextManager


Constructor Summary
JPAPersistenceContextManager()
           
 
Method Summary
 void bindRepositoryToThread(Repository<?> repository)
           
 void closePersistenceContext()
           
 void commitTransaction()
           
 void ensureTransaction()
           
 void ensureTransaction(Repository<?> repository)
           
 void markAsReadOnly()
           
 void rollbackTransaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAPersistenceContextManager

public JPAPersistenceContextManager()
Method Detail

bindRepositoryToThread

public void bindRepositoryToThread(Repository<?> repository)
Specified by:
bindRepositoryToThread in interface PersistenceContextManager

ensureTransaction

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

ensureTransaction

public void ensureTransaction(Repository<?> repository)
Specified by:
ensureTransaction in interface PersistenceContextManager

commitTransaction

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

rollbackTransaction

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

closePersistenceContext

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

markAsReadOnly

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


Copyright © 2009-2010 Chandra Sekar S. All Rights Reserved.