public class EventRegistryImpl extends java.lang.Object implements Callbacks, EventRegistry
| Modifier and Type | Class and Description |
|---|---|
protected class |
EventRegistryImpl.CommittedEvent |
| Modifier and Type | Field and Description |
|---|---|
protected Event4Impl |
_activated |
protected Event4Impl |
_activating |
protected Event4Impl |
_classRegistered |
protected Event4Impl |
_closing |
protected Event4Impl |
_committed |
protected Event4Impl |
_committing |
protected Event4Impl |
_created |
protected Event4Impl |
_creating |
protected Event4Impl |
_deactivated |
protected Event4Impl |
_deactivating |
protected Event4Impl |
_deleted |
protected Event4Impl |
_deleting |
protected Event4Impl |
_instantiated |
protected Event4Impl |
_opened |
protected Event4Impl |
_queryFinished |
protected Event4Impl |
_queryStarted |
protected Event4Impl |
_updated |
protected Event4Impl |
_updating |
| Constructor and Description |
|---|
EventRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
Event4 |
activated()
This event is fired after an object is activated.
|
Event4 |
activating()
This event is fired before an object is activated.
|
boolean |
caresAboutCommitted() |
boolean |
caresAboutCommitting() |
boolean |
caresAboutDeleted() |
boolean |
caresAboutDeleting() |
void |
classOnRegistered(ClassMetadata clazz) |
Event4 |
classRegistered()
This event is fired when a new class is registered with metadata.
|
void |
closeOnStarted(ObjectContainer container) |
Event4 |
closing()
This event is fired when the
ObjectContainer.close() is
called. |
void |
commitOnCompleted(Transaction transaction,
CallbackObjectInfoCollections objectInfoCollections,
boolean isOwnCommit) |
void |
commitOnStarted(Transaction transaction,
CallbackObjectInfoCollections objectInfoCollections) |
Event4 |
committed()
This event is fired after a transaction has been committed.
|
Event4 |
committing()
This event is fired just before a transaction is committed.
|
Event4 |
created()
This event is fired after an object is created (saved for the first time).
|
Event4 |
creating()
This event is fired before an object is saved for the first time.
|
Event4 |
deactivated()
This event is fired after an object is deactivated.
|
Event4 |
deactivating()
This event is fired before an object is deactivated.
|
Event4 |
deleted()
This event is fired after an object is deleted.
|
Event4 |
deleting()
This event is fired before an object is deleted.
|
Event4 |
instantiated()
This event is fired when a persistent object is instantiated.
|
boolean |
objectCanActivate(Transaction transaction,
java.lang.Object obj) |
boolean |
objectCanDeactivate(Transaction transaction,
ObjectInfo objectInfo) |
boolean |
objectCanDelete(Transaction transaction,
ObjectInfo objectInfo) |
boolean |
objectCanNew(Transaction transaction,
java.lang.Object obj) |
boolean |
objectCanUpdate(Transaction transaction,
ObjectInfo objectInfo) |
void |
objectOnActivate(Transaction transaction,
ObjectInfo obj) |
void |
objectOnDeactivate(Transaction transaction,
ObjectInfo obj) |
void |
objectOnDelete(Transaction transaction,
ObjectInfo obj) |
void |
objectOnInstantiate(Transaction transaction,
ObjectInfo obj) |
void |
objectOnNew(Transaction transaction,
ObjectInfo obj) |
void |
objectOnUpdate(Transaction transaction,
ObjectInfo obj) |
protected void |
onCommittedListenerAdded() |
Event4<ObjectContainerEventArgs> |
opened()
This event is fired when the
ObjectContainer has
finished its startup procedure. |
void |
openOnFinished(ObjectContainer container) |
Event4 |
queryFinished()
This event is fired upon a query end and can be used to gather
query statistics.
|
void |
queryOnFinished(Transaction transaction,
Query query) |
void |
queryOnStarted(Transaction transaction,
Query query) |
Event4 |
queryStarted()
This event is fired upon a query start and can be used to gather
query statistics.
|
Event4 |
updated()
This event is fired after an object is updated.
|
Event4 |
updating()
This event is fired before an object is updated.
|
protected final Event4Impl _queryStarted
protected final Event4Impl _queryFinished
protected final Event4Impl _creating
protected final Event4Impl _activating
protected final Event4Impl _updating
protected final Event4Impl _deleting
protected final Event4Impl _deactivating
protected final Event4Impl _created
protected final Event4Impl _activated
protected final Event4Impl _updated
protected final Event4Impl _deleted
protected final Event4Impl _deactivated
protected final Event4Impl _committing
protected final Event4Impl _committed
protected final Event4Impl _instantiated
protected final Event4Impl _classRegistered
protected final Event4Impl _closing
protected final Event4Impl _opened
public void queryOnFinished(Transaction transaction, Query query)
queryOnFinished in interface Callbackspublic void queryOnStarted(Transaction transaction, Query query)
queryOnStarted in interface Callbackspublic boolean objectCanNew(Transaction transaction, java.lang.Object obj)
objectCanNew in interface Callbackspublic boolean objectCanActivate(Transaction transaction, java.lang.Object obj)
objectCanActivate in interface Callbackspublic boolean objectCanUpdate(Transaction transaction, ObjectInfo objectInfo)
objectCanUpdate in interface Callbackspublic boolean objectCanDelete(Transaction transaction, ObjectInfo objectInfo)
objectCanDelete in interface Callbackspublic boolean objectCanDeactivate(Transaction transaction, ObjectInfo objectInfo)
objectCanDeactivate in interface Callbackspublic void objectOnActivate(Transaction transaction, ObjectInfo obj)
objectOnActivate in interface Callbackspublic void objectOnNew(Transaction transaction, ObjectInfo obj)
objectOnNew in interface Callbackspublic void objectOnUpdate(Transaction transaction, ObjectInfo obj)
objectOnUpdate in interface Callbackspublic void objectOnDelete(Transaction transaction, ObjectInfo obj)
objectOnDelete in interface Callbackspublic void classOnRegistered(ClassMetadata clazz)
classOnRegistered in interface Callbackspublic void objectOnDeactivate(Transaction transaction, ObjectInfo obj)
objectOnDeactivate in interface Callbackspublic void objectOnInstantiate(Transaction transaction, ObjectInfo obj)
objectOnInstantiate in interface Callbackspublic void commitOnStarted(Transaction transaction, CallbackObjectInfoCollections objectInfoCollections)
commitOnStarted in interface Callbackspublic void commitOnCompleted(Transaction transaction, CallbackObjectInfoCollections objectInfoCollections, boolean isOwnCommit)
commitOnCompleted in interface Callbackspublic void closeOnStarted(ObjectContainer container)
closeOnStarted in interface Callbackspublic void openOnFinished(ObjectContainer container)
openOnFinished in interface Callbackspublic Event4 queryFinished()
EventRegistryQueryEventArgs
event parameter.queryFinished in interface EventRegistryQueryEventArgspublic Event4 queryStarted()
EventRegistryQueryEventArgs
event parameter.queryStarted in interface EventRegistryQueryEventArgspublic Event4 creating()
EventRegistryCancellableObjectEventArgs
event parameter. The action can be cancelled using
CancellableObjectEventArgs.cancel()creating in interface EventRegistryCancellableObjectEventArgs,
ObjectContainer.store(Object)public Event4 activating()
EventRegistryCancellableObjectEventArgs
event parameter. The action can be cancelled using
CancellableObjectEventArgs.cancel()activating in interface EventRegistryCancellableObjectEventArgs,
ObjectContainer.activate(Object, int)public Event4 updating()
EventRegistryCancellableObjectEventArgs
event parameter. The action can be cancelled using
CancellableObjectEventArgs.cancel()updating in interface EventRegistryCancellableObjectEventArgs,
ObjectContainer.store(Object)public Event4 deleting()
EventRegistryCancellableObjectEventArgs
event parameter. The action can be cancelled using
CancellableObjectEventArgs.cancel()deleting in interface EventRegistryCancellableObjectEventArgs,
ObjectContainer.delete(Object)public Event4 deactivating()
EventRegistryCancellableObjectEventArgs
event parameter. The action can be cancelled using
CancellableObjectEventArgs.cancel()deactivating in interface EventRegistryCancellableObjectEventArgs,
ObjectContainer.deactivate(Object, int)public Event4 created()
EventRegistryObjectInfoEventArgs
event parameter.created in interface EventRegistryObjectEventArgs,
ObjectContainer.store(Object)public Event4 activated()
EventRegistryObjectInfoEventArgs
event parameter. activated in interface EventRegistryObjectInfoEventArgs,
ObjectContainer.activate(Object, int)public Event4 updated()
EventRegistryObjectInfoEventArgs
event parameter.updated in interface EventRegistryObjectInfoEventArgs,
ObjectContainer.store(Object)public Event4 deleted()
EventRegistryObjectInfoEventArgs
event parameter.deleted in interface EventRegistryObjectEventArgs,
ObjectContainer.delete(Object)public Event4 deactivated()
EventRegistryObjectInfoEventArgs
event parameter.deactivated in interface EventRegistryObjectEventArgs,
ObjectContainer.delete(Object)public Event4 committing()
EventRegistryCommitEventArgs
event parameter.committing in interface EventRegistryCommitEventArgs,
ObjectContainer.commit()public Event4 committed()
EventRegistryCommitEventArgs
event parameter.committed in interface EventRegistryCommitEventArgs,
ObjectContainer.commit()public Event4 classRegistered()
EventRegistryClassEventArgs
event parameter.classRegistered in interface EventRegistryClassEventArgspublic Event4 instantiated()
EventRegistryObjectInfoEventArgs
event parameter.instantiated in interface EventRegistryObjectInfoEventArgspublic Event4 closing()
EventRegistryObjectContainer.close() is
called.closing in interface EventRegistryprotected void onCommittedListenerAdded()
public boolean caresAboutCommitting()
caresAboutCommitting in interface Callbackspublic boolean caresAboutCommitted()
caresAboutCommitted in interface Callbackspublic boolean caresAboutDeleting()
caresAboutDeleting in interface Callbackspublic boolean caresAboutDeleted()
caresAboutDeleted in interface Callbackspublic Event4<ObjectContainerEventArgs> opened()
EventRegistryObjectContainer has
finished its startup procedure.opened in interface EventRegistry