Class COM.odi.UpdateReadOnlyException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.lang.RuntimeException
                           |
                           +----COM.odi.ObjectStoreException
                                   |
                                   +----COM.odi.odmg.ODMGException
                                           |
                                           +----COM.odi.DatabaseException
                                                   |
                                                   +----COM.odi.odmg.DatabaseIsReadOnlyException
                                                           |
                                                           +----COM.odi.UpdateReadOnlyException

public final class UpdateReadOnlyException
extends DatabaseIsReadOnlyException
Thrown when an attempt is made to call an entry point to modify a database either during a read-only transaction or for a database that has been opened for read-only.

Note that the exception might not be thrown right away. For example, in the interests of efficiency, this exception might not be signaled when an attempt is made to modify an object. It might be delayed until the object is evicted.

You can invoke Database.getOpenMode() to determine whether the database was opened for update or readonly. You can invoke Transaction.getType() to determine whether the transaction is for read-only or update. Extends COM.odi.odmg.DatabaseIsReadOnlyException to fit into the ODMG exception heirachy.



Copyright © 1996, 1997, 1998 Object Design, Inc. All rights reserved.