org.compass.gps.device.jpa
Class ResourceLocalEntityManagerWrapper
java.lang.Object
org.compass.gps.device.jpa.AbstractEntityManagerWrapper
org.compass.gps.device.jpa.ResourceLocalEntityManagerWrapper
- All Implemented Interfaces:
- EntityManagerWrapper
public class ResourceLocalEntityManagerWrapper
- extends AbstractEntityManagerWrapper
A JPA Resource Local only EntityManagerWrapper implementation. Creates the
EntityManager, and an EntityTransaction.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceLocalEntityManagerWrapper
public ResourceLocalEntityManagerWrapper()
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.