gov.nih.nci.caarray.services.util.ojb
Class PBLifeCycleListenerDescriptorModifier

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.ojb.PBLifeCycleAdapter
      extended by gov.nih.nci.caarray.services.util.ojb.PBLifeCycleListenerDescriptorModifier
All Implemented Interfaces:
org.apache.ojb.broker.PBLifeCycleListener, org.apache.ojb.broker.PBListener

public class PBLifeCycleListenerDescriptorModifier
extends PBLifeCycleAdapter

Author:
TranP

Constructor Summary
PBLifeCycleListenerDescriptorModifier()
           
 
Method Summary
 void afterInsert(org.apache.ojb.broker.PBLifeCycleEvent event)
           
 void beforeInsert(org.apache.ojb.broker.PBLifeCycleEvent event)
          Toggle the cascade store approriately for ReporterPosition before SeqFeatureLocation is inserted, so that the referenced Reporter object is stored when the referencing object is BioSequence (via SeqFeatureLocation), and only its primary key is stored otherwise.
 
Methods inherited from class gov.nih.nci.caarray.services.util.ojb.PBLifeCycleAdapter
afterDelete, afterLookup, afterUpdate, beforeDelete, beforeUpdate, getCascadingStore, setCascadingStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBLifeCycleListenerDescriptorModifier

public PBLifeCycleListenerDescriptorModifier()
Method Detail

beforeInsert

public void beforeInsert(org.apache.ojb.broker.PBLifeCycleEvent event)
                  throws org.apache.ojb.broker.PersistenceBrokerException
Toggle the cascade store approriately for ReporterPosition before SeqFeatureLocation is inserted, so that the referenced Reporter object is stored when the referencing object is BioSequence (via SeqFeatureLocation), and only its primary key is stored otherwise.

Specified by:
beforeInsert in interface org.apache.ojb.broker.PBLifeCycleListener
Overrides:
beforeInsert in class PBLifeCycleAdapter
Parameters:
event -
Throws:
org.apache.ojb.broker.PersistenceBrokerException

afterInsert

public void afterInsert(org.apache.ojb.broker.PBLifeCycleEvent event)
                 throws org.apache.ojb.broker.PersistenceBrokerException
Specified by:
afterInsert in interface org.apache.ojb.broker.PBLifeCycleListener
Overrides:
afterInsert in class PBLifeCycleAdapter
Throws:
org.apache.ojb.broker.PersistenceBrokerException