|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.util.jpa.dao.JpaDAOSupport
public class JpaDAOSupport
A base class for DAO object, which consume an EntityManager opened
by an EntityManagerInterceptor
.
Constructor Summary | |
---|---|
JpaDAOSupport()
|
Method Summary | |
---|---|
protected javax.persistence.EntityManager |
getEntityManager()
|
java.lang.String |
getThreadLocalKey()
|
void |
setThreadLocalKey(java.lang.String threadLocalKey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JpaDAOSupport()
Method Detail |
---|
protected javax.persistence.EntityManager getEntityManager()
ThreadLocalManager.bindResource(String, Object)
.
org.clazzes.util.aop.DAOException
- If no EntityManager has been bound to the current thread.public java.lang.String getThreadLocalKey()
ThreadLocalManager.bindResource(String, Object)
.public void setThreadLocalKey(java.lang.String threadLocalKey)
threadLocalKey
- the threadLocalKey under which the EntityManager is bound to
the current thread using ThreadLocalManager.bindResource(String, Object)
to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |