org.compass.gps.device.jpa
Class JtaEntityManagerWrapper
java.lang.Object
org.compass.gps.device.jpa.AbstractEntityManagerWrapper
org.compass.gps.device.jpa.JtaEntityManagerWrapper
- All Implemented Interfaces:
- EntityManagerWrapper
public class JtaEntityManagerWrapper
- extends AbstractEntityManagerWrapper
A JTA only EntityManagerWrapper. Works only with JPA code that exists within
a JTA transaction.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JtaEntityManagerWrapper
public JtaEntityManagerWrapper()
beginTransaction
protected void beginTransaction()
throws javax.persistence.PersistenceException
- Specified by:
beginTransaction in class AbstractEntityManagerWrapper
- Throws:
javax.persistence.PersistenceException
commitTransaction
protected void commitTransaction()
throws javax.persistence.PersistenceException
- Specified by:
commitTransaction in class AbstractEntityManagerWrapper
- Throws:
javax.persistence.PersistenceException
rollbackTransaction
protected void rollbackTransaction()
throws javax.persistence.PersistenceException
- Specified by:
rollbackTransaction in class AbstractEntityManagerWrapper
- Throws:
javax.persistence.PersistenceException
shouldCloseEntityManager
protected boolean shouldCloseEntityManager()
- Specified by:
shouldCloseEntityManager in class AbstractEntityManagerWrapper
Copyright (c) 2004-2008 The Compass Project.