|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.knowledgeplaza.util.jpa.JpaUtil
nl.knowledgeplaza.util.jpa.EclipselinkUtil
public class EclipselinkUtil
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class nl.knowledgeplaza.util.jpa.JpaUtil |
|---|
JpaUtil.JpaEntityInformation |
| Field Summary | |
|---|---|
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
EclipselinkUtil()
|
|
| Method Summary | |
|---|---|
static org.eclipse.persistence.jpa.JpaEntityManager |
castToJpaEntityManager(javax.persistence.EntityManager entityManager)
Cast to JpaEntityManager, but first see if this is the EntityManagerExtender proxy |
static java.lang.Number |
getNextSequenceNumberValue(javax.persistence.EntityManager entityManager,
java.lang.Class clazz)
Allocate a new PK |
static org.eclipse.persistence.sessions.Session |
getSession(javax.persistence.EntityManager entityManager)
get Eclipselink's session from a generic entityManager This actually is quite trivial once you got a hold of Eclipselink's JpaEntityManager, but just to be convenient we're doing here for you. |
static java.lang.Object |
getSingleResultOrDefault(javax.persistence.Query lQuery,
java.lang.Object d)
getSingleResult throws an exception if nothing is found. |
static java.lang.Object |
getSingleResultOrNull(javax.persistence.Query lQuery)
getSingleResult throws an exception if nothing is found. |
static org.eclipse.persistence.sessions.UnitOfWork |
getUnitOfWork(javax.persistence.EntityManager entityManager)
get Eclipselink's UnitOfWork from a generic entityManager This actually is quite trivial once you got a hold of Eclipselink's JpaEntityManager, but just to be convenient we're doing here for you. |
| Methods inherited from class nl.knowledgeplaza.util.jpa.JpaUtil |
|---|
clear, clear, clear2ndLevelCache, getJdbcConnection, mergeImmediately, mergeImmediately, persistImmediately, persistImmediately, persistImmediately, persistImmediately, removeImmediately, removeImmediately |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOURCECODE_VERSION
| Constructor Detail |
|---|
public EclipselinkUtil()
| Method Detail |
|---|
public static java.lang.Object getSingleResultOrNull(javax.persistence.Query lQuery)
lQuery -
public static java.lang.Object getSingleResultOrDefault(javax.persistence.Query lQuery,
java.lang.Object d)
lQuery -
public static org.eclipse.persistence.jpa.JpaEntityManager castToJpaEntityManager(javax.persistence.EntityManager entityManager)
entityManager -
public static org.eclipse.persistence.sessions.Session getSession(javax.persistence.EntityManager entityManager)
entityManager -
public static org.eclipse.persistence.sessions.UnitOfWork getUnitOfWork(javax.persistence.EntityManager entityManager)
entityManager -
public static java.lang.Number getNextSequenceNumberValue(javax.persistence.EntityManager entityManager,
java.lang.Class clazz)
entityManager - clazz -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||