3.1.2: 2012-07-31

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: 2012-02-24 11:01:01 +0100 (Fri, 24 Feb 2012) $

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.
protected  void loadReverseChildNodes(DbControl dc, OverviewContext context, Node bioSourceNode)
          A biosource usually don't have any reverse child nodes.
 
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
 
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)

loadReverseChildNodes

protected void loadReverseChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node bioSourceNode)
A biosource usually don't have any reverse child nodes. The exception is child samples that have a subtype with the ItemSubtype.getPushAnnotations() flag set.

Overrides:
loadReverseChildNodes in class AbstractNodeLoader<BioSource>
Since:
3.1

3.1.2: 2012-07-31