com.db4o.events
Class CancellableObjectEventArgs
java.lang.Object
com.db4o.events.EventArgs
com.db4o.events.TransactionalEventArgs
com.db4o.events.ObjectEventArgs
com.db4o.events.ObjectInfoEventArgs
com.db4o.events.CancellableObjectEventArgs
- All Implemented Interfaces:
- CancellableEventArgs
public class CancellableObjectEventArgs
- extends ObjectInfoEventArgs
- implements CancellableEventArgs
Argument for object related events which can be cancelled.
- See Also:
EventRegistry
,
CancellableEventArgs
Constructor Summary |
CancellableObjectEventArgs(com.db4o.internal.Transaction transaction,
ObjectInfo objectInfo,
java.lang.Object obj)
Creates a new instance for the specified object. |
Method Summary |
void |
cancel()
Cancels the action related to this event. |
ObjectInfo |
info()
|
boolean |
isCancelled()
Queries if the action was already cancelled by some event listener. |
java.lang.Object |
object()
The object that triggered this event. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CancellableObjectEventArgs
public CancellableObjectEventArgs(com.db4o.internal.Transaction transaction,
ObjectInfo objectInfo,
java.lang.Object obj)
- Creates a new instance for the specified object.
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()
object
public java.lang.Object object()
- Description copied from class:
ObjectEventArgs
- The object that triggered this event.
- Overrides:
object
in class ObjectInfoEventArgs
info
public ObjectInfo info()
- Overrides:
info
in class ObjectInfoEventArgs
Copyright 2009 Versant Corporation. All rights reserved.