org.lexevs.dao.database.service.event
Class DatabaseServiceEventSupport

java.lang.Object
  extended by org.lexevs.dao.database.service.event.DatabaseServiceEventSupport
Direct Known Subclasses:
AbstractDatabaseService

public class DatabaseServiceEventSupport
extends java.lang.Object

The Class DatabaseServiceEventSupport.

Author:
Kevin Peterson

Constructor Summary
DatabaseServiceEventSupport()
           
 
Method Summary
protected
<T extends java.lang.Exception>
void
fireCodingSchemeInsertErrorEvent(CodingScheme scheme, T exception)
           
protected  void fireCodingSchemeUpdateEvent(java.lang.String revisionId, java.lang.String entryStateId, CodingScheme originalCodingScheme, CodingScheme updatedCodingScheme)
          Fire coding scheme update event.
protected  void fireEntityReviseEvent(EntityReviseEvent entityReviseEvent)
           
protected  void fireEntityUpdateEvent(EntityUpdateEvent entityUpdateEvent)
           
protected  void firePostBatchEntityInsertEvent(EntityBatchInsertEvent entityInsertEvent)
           
protected  void firePostCodingSchemeInsertEvent(CodingScheme codingScheme)
           
protected  void firePostEntityInsertEvent(EntityInsertOrRemoveEvent entityInsertEvent)
           
protected  void firePostEntityRemoveEvent(EntityInsertOrRemoveEvent entityRemoveEvent)
           
protected  void firePostPropertyInsertEvent(PropertyUpdateEvent propertyInsertEvent)
           
protected  void firePostPropertyRemoveEvent(PropertyUpdateEvent propertyRemoveEvent)
           
protected  void firePreBatchAssociationInsertEvent(AssociationBatchInsertEvent assocInsertEvent)
           
protected  void firePreBatchEntityInsertEvent(EntityBatchInsertEvent entityInsertEvent)
           
protected  void firePreCodingSchemeInsertEvent(CodingScheme codingScheme)
          Fire coding scheme insert event.
protected  void firePreEntityInsertEvent(EntityInsertOrRemoveEvent entityInsertEvent)
           
protected  void firePreEntityRemoveEvent(EntityInsertOrRemoveEvent entityRemoveEvent)
           
protected  void firePropertyUpdateEvent(PropertyUpdateEvent event)
           
 ListenerRegistry getListenerRegistry()
           
 void setListenerRegistry(ListenerRegistry listenerRegistry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseServiceEventSupport

public DatabaseServiceEventSupport()
Method Detail

fireCodingSchemeInsertErrorEvent

protected <T extends java.lang.Exception> void fireCodingSchemeInsertErrorEvent(CodingScheme scheme,
                                                                                T exception)
                                         throws T extends java.lang.Exception
Throws:
T extends java.lang.Exception

fireCodingSchemeUpdateEvent

protected void fireCodingSchemeUpdateEvent(java.lang.String revisionId,
                                           java.lang.String entryStateId,
                                           CodingScheme originalCodingScheme,
                                           CodingScheme updatedCodingScheme)
Fire coding scheme update event.

Parameters:
revisionId - the revision id
entryStateId - the entry state id
originalCodingScheme - the original coding scheme
updatedCodingScheme - the updated coding scheme

firePreCodingSchemeInsertEvent

protected void firePreCodingSchemeInsertEvent(CodingScheme codingScheme)
                                       throws CodingSchemeAlreadyLoadedException
Fire coding scheme insert event.

Parameters:
codingScheme - the coding scheme
Throws:
CodingSchemeAlreadyLoadedException - the coding scheme already loaded exception

firePostCodingSchemeInsertEvent

protected void firePostCodingSchemeInsertEvent(CodingScheme codingScheme)
                                        throws CodingSchemeAlreadyLoadedException
Throws:
CodingSchemeAlreadyLoadedException

firePreEntityInsertEvent

protected void firePreEntityInsertEvent(EntityInsertOrRemoveEvent entityInsertEvent)

firePostEntityInsertEvent

protected void firePostEntityInsertEvent(EntityInsertOrRemoveEvent entityInsertEvent)

firePreBatchEntityInsertEvent

protected void firePreBatchEntityInsertEvent(EntityBatchInsertEvent entityInsertEvent)

firePostBatchEntityInsertEvent

protected void firePostBatchEntityInsertEvent(EntityBatchInsertEvent entityInsertEvent)

firePreBatchAssociationInsertEvent

protected void firePreBatchAssociationInsertEvent(AssociationBatchInsertEvent assocInsertEvent)

firePostPropertyInsertEvent

protected void firePostPropertyInsertEvent(PropertyUpdateEvent propertyInsertEvent)

firePropertyUpdateEvent

protected void firePropertyUpdateEvent(PropertyUpdateEvent event)

firePostPropertyRemoveEvent

protected void firePostPropertyRemoveEvent(PropertyUpdateEvent propertyRemoveEvent)

fireEntityUpdateEvent

protected void fireEntityUpdateEvent(EntityUpdateEvent entityUpdateEvent)

firePreEntityRemoveEvent

protected void firePreEntityRemoveEvent(EntityInsertOrRemoveEvent entityRemoveEvent)

firePostEntityRemoveEvent

protected void firePostEntityRemoveEvent(EntityInsertOrRemoveEvent entityRemoveEvent)

fireEntityReviseEvent

protected void fireEntityReviseEvent(EntityReviseEvent entityReviseEvent)

setListenerRegistry

public void setListenerRegistry(ListenerRegistry listenerRegistry)

getListenerRegistry

public ListenerRegistry getListenerRegistry()

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.