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

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

public class EntityManagerProvider
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
EntityManagerProvider(javax.persistence.EntityManagerFactory entityManagerFactory)
           
 
Method Summary
 void bindEntityManager()
           
 void closeFactory()
           
 void commitTransaction()
           
 void ensureTransaction()
           
 javax.persistence.EntityManager getCurrentEntityManager()
           
 void markAsReadOnly()
           
 void rollbackTransaction()
           
 void unbindEntityManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityManagerProvider

public EntityManagerProvider(javax.persistence.EntityManagerFactory entityManagerFactory)
Method Detail

bindEntityManager

public void bindEntityManager()

unbindEntityManager

public void unbindEntityManager()

getCurrentEntityManager

public javax.persistence.EntityManager getCurrentEntityManager()

ensureTransaction

public void ensureTransaction()

commitTransaction

public void commitTransaction()

rollbackTransaction

public void rollbackTransaction()

closeFactory

public void closeFactory()

markAsReadOnly

public void markAsReadOnly()


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