2.17.2: 2011-06-17

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

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

public class BioSourceLoader
extends BasicItemNodeLoader<BioSource>

Node loader implementation for biosources. Biosources are an endpoint node with the forward-loading direction going to BioSource:s -> Sample:s.

Version:
2.10
Author:
Nicklas
Last modified
$Date: 2010-11-18 08:26:30 +0100 (Thu, 18 Nov 2010) $

Field Summary
 
Fields inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
ALLOW_ROOT_NODE, allowAsRootNode, DENY_ROOT_NODE, factoryKey, nameGenerator
 
Constructor Summary
BioSourceLoader()
           
 
Method Summary
 Node createReverseNode(DbControl dc, OverviewContext context, Node sampleNode)
          Create a reverse-loading biosource node from a sample node.
protected  void loadForwardChildNodes(DbControl dc, OverviewContext context, Node bioSourceNode)
          Loads the sample nodes that has been created from the given biosource node.
protected  void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node bioSourceNode)
          Loads property nodes of an array design.
 
Methods inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
createItemNode, createRootNode, getNodeFactory, getNodeFactory, getNodeLoader, getNodeLoaderFactory, getNodeValidator, getNodeValidatorFactory, postValidateFolder
 
Methods inherited from class net.sf.basedb.util.overview.loader.AbstractNodeLoader
createForwardNode, createPropertyNode, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode, loadReverseChildNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BioSourceLoader

public BioSourceLoader()
Method Detail

createReverseNode

public Node createReverseNode(DbControl dc,
                              OverviewContext context,
                              Node sampleNode)
Create a reverse-loading biosource node from a sample node.

Specified by:
createReverseNode in interface NodeLoader<BioSource>
Overrides:
createReverseNode in class AbstractNodeLoader<BioSource>
Parameters:
dc - The DbControl to use for database access
context - The overview context
sampleNode - The child node
Returns:
A biosource node, which can be null if validation fails

loadPropertyChildNodes

protected void loadPropertyChildNodes(DbControl dc,
                                      OverviewContext context,
                                      Node bioSourceNode)
Loads property nodes of an array design.

Overrides:
loadPropertyChildNodes in class AbstractNodeLoader<BioSource>

loadForwardChildNodes

protected void loadForwardChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node bioSourceNode)
Loads the sample nodes that has been created from the given biosource node.

Overrides:
loadForwardChildNodes in class AbstractNodeLoader<BioSource>
See Also:
ArrayBatchLoader.createForwardNode(DbControl, OverviewContext, Node)

2.17.2: 2011-06-17