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 thePersistenceManager
cache. The failedObject
has 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 failedObject
has the failed instance.- Nonunique identity is not valid after transaction completion ...
Get Java Data Objects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.