|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jpa.NucleusJPAHelper
public class NucleusJPAHelper
Helper for persistence operations with JPA1.
| Field Summary | |
|---|---|
protected static org.datanucleus.util.Localiser |
LOCALISER
Localisation utility for output messages |
| Constructor Summary | |
|---|---|
NucleusJPAHelper()
|
|
| Method Summary | |
|---|---|
static javax.jdo.spi.JDOImplHelper |
getJDOImplHelper()
Get the JDOImplHelper instance. |
static javax.persistence.PersistenceException |
getJPAExceptionForJDOException(javax.jdo.JDOException jdoe)
Convenience method to convert a JDO exception into a JPA exception. |
static javax.persistence.PersistenceException |
getJPAExceptionForNucleusException(org.datanucleus.exceptions.NucleusException ne)
Convenience method to convert a Nucleus exception into a JPA exception. |
static java.lang.String |
getObjectState(java.lang.Object obj)
Convenience method to return a string of the state of an object. |
static boolean |
isDeleted(java.lang.Object obj)
Convenience accessor for whether the object is deleted. |
static boolean |
isDetached(java.lang.Object obj)
Convenience accessor for whether the object is detached. |
static boolean |
isPersistent(java.lang.Object obj)
Convenience accessor for whether the object is persistent. |
static boolean |
isTransactional(java.lang.Object obj)
Convenience accessor for whether the object is transactional. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER
| Constructor Detail |
|---|
public NucleusJPAHelper()
| Method Detail |
|---|
public static boolean isPersistent(java.lang.Object obj)
obj - The object
public static boolean isDeleted(java.lang.Object obj)
obj - The object
public static boolean isDetached(java.lang.Object obj)
obj - The object
public static boolean isTransactional(java.lang.Object obj)
obj - The object
public static java.lang.String getObjectState(java.lang.Object obj)
obj - The object
public static javax.persistence.PersistenceException getJPAExceptionForJDOException(javax.jdo.JDOException jdoe)
jdoe - JDOException
public static javax.persistence.PersistenceException getJPAExceptionForNucleusException(org.datanucleus.exceptions.NucleusException ne)
ne - NucleusException
public static javax.jdo.spi.JDOImplHelper getJDOImplHelper()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||