|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tynamo.jpa.internal.JPATransactionManagerImpl
public class JPATransactionManagerImpl
Constructor Summary | |
---|---|
JPATransactionManagerImpl(JPAEntityManagerSource source)
|
Method Summary | |
---|---|
void |
abort()
Aborts the current transaction, and starts a new transaction to replace it. |
void |
commit()
Commits the current transaction (which will cause a flush of data to the database), then starts a new transaction to replace it. |
javax.persistence.EntityManager |
getEntityManager()
Gets the active session for this request, creating it as necessary. |
void |
threadDidCleanup()
Rollsback the transaction at the end of the request, then closes the session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JPATransactionManagerImpl(JPAEntityManagerSource source)
Method Detail |
---|
public void abort()
JPATransactionManager
abort
in interface JPATransactionManager
public void commit()
JPATransactionManager
commit
in interface JPATransactionManager
public javax.persistence.EntityManager getEntityManager()
JPATransactionManager
getEntityManager
in interface JPATransactionManager
JPAEntityManagerSource
public void threadDidCleanup()
commit()
after making any changes, if they should persist.
threadDidCleanup
in interface org.apache.tapestry5.ioc.services.ThreadCleanupListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |