Name
JDOObjectNotFoundException
Synopsis
This exception notifies the application that an object does
not exist in the datastore. This exception is thrown when a hollow
instance is used to fetch an object that does not exist in the
datastore. This exception might result from a call to getObjectById( )
with the validate
parameter set to true
, or from navigating to an object that
no longer exists in the datastore. You will never get this exception
as a result of executing a query.
Throwing this exception does not change the status of any
transaction in progress. The getFailedObject( )
method returns a
reference to the failed instance. The failed instance is in the
hollow state and has an identity that can be obtained by calling
getObjectId( )
with the instance
as a parameter. This can be used to determine the identity of the
instance that could not be found.
public class JDOObjectNotFoundException extends javax.jdo.JDODataStoreException { }
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.