148 JDO exceptions 9.2.1 JDOException This is the

Base exception classes 149 9.2.2 JDOFatalException JDOFatalException is the base class for exceptions that cannot be retried. Occurrence of this exception (or a subclass thereof) generally implies that the transaction has been rolled back and should be abandoned by the application. 9.2.3 JDOCanRetryException JDOCanRetryException is the base class for exceptions that can be retried after the application has attempted to address the cause of the exception. 9.2.4 JDOUserOptionException This is the base class for all retriable exceptions that are caused by the user. The application must typically correct the problem causing the exception before attempting the operation again. Potential causes would include: . attempts to make an instance with application identity persistent, with primary key fields that are identical to an already persistent instance. Correct the primary key field values and try again. . attempts to fetch an instance by Object ID when no such persistent instance exists. Correct the Object ID and try again. . attempts to get the extent of a class or interface for which the extent is not managed by JDO. Get the extent of a different class, or alter the persistence descriptor and enhance the chosen class so that its extent is managed by JDO. 9.2.5 JDOUnsupportedOptionException A JDOUnsupportedOptionException is thrown when an application attempts to enable a particular optional feature that is not supported by the implementation. It is a subclass of JDOUserException. Potential causes would include: . use of optimistic transaction management when not supported; . the changing of an instance s primary key field values when not supported; . use of Persistent-Nontransactional instances when not supported. 9.2.6 JDOFatalUserException This is the base class for all fatal (cannot be retried) exceptions caused by the application. After a persistence manager has been closed, only its isClosed() method may be invoked. A JDOFatalUserException is thrown if any other method is invoked on the PersistenceManager, or on any Transaction, Query, Extent, or Iteratorinstances obtained from it.
Note: If you are looking for good and high quality web space to host and run your java application check Vision java hosting services

Comments are closed.