Package 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
Constructors Constructor Description CancellableObjectEventArgs(Transaction transaction, ObjectInfo objectInfo, java.lang.Object obj)
Creates a new instance for the specified object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 com.db4o.events.TransactionalEventArgs
objectContainer, transaction
-
-
-
-
Constructor Detail
-
CancellableObjectEventArgs
public CancellableObjectEventArgs(Transaction transaction, ObjectInfo objectInfo, 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 interfaceCancellableEventArgs
- 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 interfaceCancellableEventArgs
- See Also:
CancellableEventArgs.isCancelled()
-
object
public java.lang.Object object()
Description copied from class:ObjectEventArgs
The object that triggered this event.- Overrides:
object
in classObjectInfoEventArgs
-
info
public ObjectInfo info()
- Overrides:
info
in classObjectInfoEventArgs
-
-