db4o 7.4

com.db4o.events
Class CancellableObjectEventArgs

java.lang.Object
  extended by com.db4o.events.EventArgs
      extended by com.db4o.events.TransactionalEventArgs
          extended by com.db4o.events.ObjectEventArgs
              extended by com.db4o.events.CancellableObjectEventArgs
All Implemented Interfaces:
CancellableEventArgs

public class CancellableObjectEventArgs
extends ObjectEventArgs
implements CancellableEventArgs

Argument for object related events which can be cancelled.

See Also:
EventRegistry, CancellableEventArgs

Field Summary
 
Fields inherited from class com.db4o.events.EventArgs
EMPTY
 
Constructor Summary
CancellableObjectEventArgs(com.db4o.internal.Transaction transaction, java.lang.Object obj)
          Creates a new instance for the specified object.
 
Method Summary
 void cancel()
          Cancels the action related to this event.
 boolean isCancelled()
          Queries if the action was already cancelled by some event listener.
 
Methods inherited from class com.db4o.events.ObjectEventArgs
object
 
Methods inherited from class com.db4o.events.TransactionalEventArgs
transaction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancellableObjectEventArgs

public CancellableObjectEventArgs(com.db4o.internal.Transaction transaction,
                                  java.lang.Object obj)
Creates a new instance for the specified object.

Method Detail

cancel

public void cancel()
Description copied from interface: CancellableEventArgs
Cancels the action related to this event. Although the related action will be cancelled all the registered listeners will still receive the event.

Specified by:
cancel in interface CancellableEventArgs
See Also:
CancellableEventArgs.cancel()

isCancelled

public boolean isCancelled()
Description copied from interface: CancellableEventArgs
Queries if the action was already cancelled by some event listener.

Specified by:
isCancelled in interface CancellableEventArgs
See Also:
CancellableEventArgs.isCancelled()

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.