eu.etaxonomy.cdm.persistence.dao
Class AutoPropertyInitializer<T extends CdmBase>

java.lang.Object
  extended by eu.etaxonomy.cdm.persistence.dao.AutoPropertyInitializer<T>
Direct Known Subclasses:
AnnotationTypeAutoInitializer, GatheringEventLocationAutoInitializer, MarkerTypeAutoInitializer, MediaAutoInitializer, TermBaseAutoInitializer, TitleCacheAutoInitializer, TypeDesignationAutoInitializer

public abstract class AutoPropertyInitializer<T extends CdmBase>
extends Object

Author:
a.kohlbecker

Field Summary
protected  IBeanInitializer beanInitializer
           
 
Constructor Summary
AutoPropertyInitializer()
           
 
Method Summary
abstract  void initialize(T bean)
          Implement this method to initialize associated entities of the supplied beans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanInitializer

@Autowired
protected IBeanInitializer beanInitializer
Constructor Detail

AutoPropertyInitializer

public AutoPropertyInitializer()
Method Detail

initialize

public abstract void initialize(T bean)
Implement this method to initialize associated entities of the supplied beans.

For initializing collections of cdm entity bean it is recommended to use IBeanInitializer.initializeInstance(Object).
WARNING: You must NOT use IBeanInitializer.initialize(Object, java.util.List) or IBeanInitializer#initializeAll(java.util.List, java.util.List) otherwise you risk to get StackOverflowExceptions.

Parameters:
bean - the cdm entity bean to process


Copyright © 2007-2013 EDIT. All Rights Reserved.