Package com.db4o.cs.internal.events
Class ClientEventRegistryImpl
- java.lang.Object
-
- com.db4o.internal.events.EventRegistryImpl
-
- com.db4o.cs.internal.events.ClientEventRegistryImpl
-
- All Implemented Interfaces:
EventRegistry
,Callbacks
public class ClientEventRegistryImpl extends EventRegistryImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.db4o.internal.events.EventRegistryImpl
EventRegistryImpl.CommittedEvent
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.events.EventRegistryImpl
_activated, _activating, _classRegistered, _closing, _committed, _committing, _created, _creating, _deactivated, _deactivating, _deleted, _deleting, _instantiated, _opened, _queryFinished, _queryStarted, _updated, _updating
-
-
Constructor Summary
Constructors Constructor Description ClientEventRegistryImpl(ClientObjectContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event4
deleted()
This event is fired after an object is deleted.Event4
deleting()
This event is fired before an object is deleted.protected void
onCommittedListenerAdded()
-
Methods inherited from class com.db4o.internal.events.EventRegistryImpl
activated, activating, caresAboutCommitted, caresAboutCommitting, caresAboutDeleted, caresAboutDeleting, classOnRegistered, classRegistered, closeOnStarted, closing, commitOnCompleted, commitOnStarted, committed, committing, created, creating, deactivated, deactivating, inCallback, instantiated, objectCanActivate, objectCanDeactivate, objectCanDelete, objectCanNew, objectCanUpdate, objectOnActivate, objectOnDeactivate, objectOnDelete, objectOnInstantiate, objectOnNew, objectOnUpdate, opened, openOnFinished, queryFinished, queryOnFinished, queryOnStarted, queryStarted, updated, updating
-
-
-
-
Constructor Detail
-
ClientEventRegistryImpl
public ClientEventRegistryImpl(ClientObjectContainer container)
-
-
Method Detail
-
onCommittedListenerAdded
protected void onCommittedListenerAdded()
- Overrides:
onCommittedListenerAdded
in classEventRegistryImpl
-
deleted
public Event4 deleted()
Description copied from interface:EventRegistry
This event is fired after an object is deleted. The object can be obtained from theObjectInfoEventArgs
event parameter.
The event can be used to trigger some post-deletion functionality.
Note, that this event is not available in networked client/server mode and will throw an exception when attached to a client ObjectContainer.- Specified by:
deleted
in interfaceEventRegistry
- Overrides:
deleted
in classEventRegistryImpl
- Returns:
- event
- See Also:
ObjectEventArgs
,ObjectContainer.delete(Object)
-
deleting
public Event4 deleting()
Description copied from interface:EventRegistry
This event is fired before an object is deleted. The object can be obtained fromCancellableObjectEventArgs
event parameter. The action can be cancelled usingCancellableObjectEventArgs.cancel()
Note, that this event is not available in networked client/server mode and will throw an exception when attached to a client ObjectContainer.- Specified by:
deleting
in interfaceEventRegistry
- Overrides:
deleting
in classEventRegistryImpl
- Returns:
- event
- See Also:
CancellableObjectEventArgs
,ObjectContainer.delete(Object)
-
-