Name
JDOUserException
Synopsis
This is the base class for user errors that can be retried. It
is derived from JDOCanRetryException. Reasons for this
exception include:
- Instance is not of a persistent class
This exception is thrown when a method requires an instance of a persistent class and the instance passed to the method does not implement
PersistenceCapable. This occurs if the class of the instance is not persistent and has not been enhanced.getFailedObject( )returns the instance causing the exception.- Extent is not managed
This exception is thrown when you call
getExtent( )with a class that does not have a managed extent.- Object exists
For a class using application identity, the combined value of the primary key fields must be unique. This exception is thrown if the primary key fields are not unique. This can occur when a new instance, or an existing persistent instance that has had a primary key field changed, is flushed to the datastore. It might also be thrown during
makePersistent( )if an instance with the same primary key is already in thePersistenceManagercache. The failedObjecthas the failed instance.- Object is owned by another
PersistenceManager This exception is thrown if you call
makePersistent( ),makeTransactional( ),makeTransient( ),evict( ),refresh( ), orgetObjectId( )when the instance is already persistent or transactional in a differentPersistenceManager. The failedObjecthas the failed instance.- Nonunique identity is not valid after transaction completion ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access