net.sf.easyweb4j.repository.orm.hibernate
Class HibernatePersistenceContextManager

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

public class HibernatePersistenceContextManager
extends Object
implements PersistenceContextManager


Constructor Summary
HibernatePersistenceContextManager()
           
 
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

HibernatePersistenceContextManager

public HibernatePersistenceContextManager()
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.