com.odi
Class UpdateReadOnlyException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.odi.ObjectStoreException
                  extended bycom.odi.odmg.ODMGException
                      extended bycom.odi.DatabaseException
                          extended bycom.odi.odmg.DatabaseIsReadOnlyException
                              extended bycom.odi.UpdateReadOnlyException
All Implemented Interfaces:
Serializable

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.

See Also:
Serialized Form



Copyright 2005 Progress Software Corporation. All rights reserved.