org.lexevs.dao.database.service.listener
Class CodingSchemeRegisteringListener

java.lang.Object
  extended by org.lexevs.dao.database.service.listener.DefaultServiceEventListener
      extended by org.lexevs.dao.database.service.listener.CodingSchemeRegisteringListener
All Implemented Interfaces:
DatabaseServiceEventListener

public class CodingSchemeRegisteringListener
extends DefaultServiceEventListener

The listener interface for receiving codingSchemeRegistering events. The class that is interested in processing a codingSchemeRegistering event implements this interface, and the object created with that class is registered with a component using the component's addCodingSchemeRegisteringListener method. When the codingSchemeRegistering event occurs, that object's appropriate method is invoked.

See Also:
CodingSchemeRegisteringEvent

Constructor Summary
CodingSchemeRegisteringListener()
           
 
Method Summary
<T extends java.lang.Exception>
void
onCodingSchemeInsertError(CodingSchemeInsertErrorEvent<T> codingSchemeInsertErrorEvent)
           
 boolean onPreCodingSchemeInsert(PreCodingSchemeInsertEvent event)
          On coding scheme insert.
 
Methods inherited from class org.lexevs.dao.database.service.listener.DefaultServiceEventListener
isActive, onCodingSchemeUpdate, onEntityReviseEvent, onEntityUpdate, onPostBatchEntityInsert, onPostCodingSchemeInsert, onPostEntityInsert, onPostEntityRemove, onPostPropertyInsert, onPostPropertyRemove, onPreAssociationInsert, onPreBatchAssociationInsert, onPreBatchEntityInsert, onPreEntityInsert, onPreEntityRemove, onPropertyUpdate, setActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodingSchemeRegisteringListener

public CodingSchemeRegisteringListener()
Method Detail

onPreCodingSchemeInsert

public boolean onPreCodingSchemeInsert(PreCodingSchemeInsertEvent event)
                                throws CodingSchemeAlreadyLoadedException
Description copied from interface: DatabaseServiceEventListener
On coding scheme insert.

Specified by:
onPreCodingSchemeInsert in interface DatabaseServiceEventListener
Overrides:
onPreCodingSchemeInsert in class DefaultServiceEventListener
Parameters:
event - the event
Returns:
true, if successful
Throws:
CodingSchemeAlreadyLoadedException - the coding scheme already loaded exception

onCodingSchemeInsertError

public <T extends java.lang.Exception> void onCodingSchemeInsertError(CodingSchemeInsertErrorEvent<T> codingSchemeInsertErrorEvent)
Specified by:
onCodingSchemeInsertError in interface DatabaseServiceEventListener
Overrides:
onCodingSchemeInsertError in class DefaultServiceEventListener

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.