3.2.1: 2012-12-13

net.sf.basedb.util.overview.loader
Class BioMaterialListLoader

java.lang.Object
  extended by net.sf.basedb.util.overview.loader.AbstractNodeLoader<I>
      extended by net.sf.basedb.util.overview.loader.BasicItemNodeLoader<BioMaterialList>
          extended by net.sf.basedb.util.overview.loader.BioMaterialListLoader
All Implemented Interfaces:
NodeLoader<BioMaterialList>

public class BioMaterialListLoader
extends BasicItemNodeLoader<BioMaterialList>

Node loader implementation for biomaterial lists. Biomaterial lists can only be loaded as root nodes. The forward-loading direction goes to the biomaterial that is member of the list.

Since:
3.2
Author:
nicklas

Field Summary
 
Fields inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
ALLOW_ROOT_NODE, allowAsRootNode, DENY_ROOT_NODE, factoryKey, nameGenerator
 
Constructor Summary
BioMaterialListLoader()
           
 
Method Summary
protected  void loadForwardChildNodes(DbControl dc, OverviewContext context, Node listNode)
          Loads the list members.
static
<T extends BioMaterial>
void
loadMemberNodes(BasicItemNodeLoader<T> loader, DbControl dc, OverviewContext context, Node listNode)
          Utiltity method to be used by biomaterial loaders to load members of a biomaterial list.
 
Methods inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
createItemNode, createRootNode, getNodeFactory, getNodeFactory, getNodeLoader, getNodeLoaderFactory, getNodeNameGenerator, getNodeValidator, getNodeValidatorFactory, postValidateFolder
 
Methods inherited from class net.sf.basedb.util.overview.loader.AbstractNodeLoader
createForwardNode, createPropertyNode, createReverseNode, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode, loadPropertyChildNodes, loadReverseChildNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BioMaterialListLoader

public BioMaterialListLoader()
Method Detail

loadForwardChildNodes

protected void loadForwardChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node listNode)
Loads the list members.

Overrides:
loadForwardChildNodes in class AbstractNodeLoader<BioMaterialList>

loadMemberNodes

public static <T extends BioMaterial> void loadMemberNodes(BasicItemNodeLoader<T> loader,
                                                           DbControl dc,
                                                           OverviewContext context,
                                                           Node listNode)
Utiltity method to be used by biomaterial loaders to load members of a biomaterial list. The loader should be one of SampleLoader, ExtractLoader or BioSourceLoader. The member nodes are created as child nodes to the list node without any intermediate folder node.

Parameters:
loader - The load implementation
listNode - The parent biomaterial list node

3.2.1: 2012-12-13