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 {
}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