2.17.2: 2011-06-17

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

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

public class ScanLoader
extends BasicItemNodeLoader<Scan>

Node loader implementation for scans. The forward-loading direction goes from Hybridization:s -> Scan:s -> RawBioAssay:s. The reverse-loading direction is the opposite direction.

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
ScanLoader()
           
 
Method Summary
 Node createForwardNode(DbControl dc, OverviewContext context, Node hybridizationNode)
          Create forward-loading scan nodes from a given hybridization node.
 Node createReverseNode(DbControl dc, OverviewContext context, Node rawBioAssayNode)
          Create a reverse-loading scan node from the raw bioassay node.
protected  void loadForwardChildNodes(DbControl dc, OverviewContext context, Node scanNode)
          Loads all raw bioassay nodes that are children of the given scan node.
protected  void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node scanNode)
          Loads property nodes of a scan.
protected  void loadReverseChildNodes(DbControl dc, OverviewContext context, Node scanNode)
          Loads the hybridization node that is the parent of this scan.
 
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
createPropertyNode, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScanLoader

public ScanLoader()
Method Detail

createForwardNode

public Node createForwardNode(DbControl dc,
                              OverviewContext context,
                              Node hybridizationNode)
Create forward-loading scan nodes from a given hybridization node. The returned node is a folder-type node containing item nodes for each scan that has been created from the hybridization.

Specified by:
createForwardNode in interface NodeLoader<Scan>
Overrides:
createForwardNode in class AbstractNodeLoader<Scan>
Parameters:
dc - The DbControl to use for database access
context - The overview context
hybridizationNode - The parent node
Returns:
The folder node for the scans

createReverseNode

public Node createReverseNode(DbControl dc,
                              OverviewContext context,
                              Node rawBioAssayNode)
Create a reverse-loading scan node from the raw bioassay node.

Specified by:
createReverseNode in interface NodeLoader<Scan>
Overrides:
createReverseNode in class AbstractNodeLoader<Scan>
Parameters:
dc - The DbControl to use for database access
context - The overview context
rawBioAssayNode - The child node
Returns:
A scan node, or null if the raw bioassay doesn't have a scan

loadPropertyChildNodes

protected void loadPropertyChildNodes(DbControl dc,
                                      OverviewContext context,
                                      Node scanNode)
Loads property nodes of a scan.

Overrides:
loadPropertyChildNodes in class AbstractNodeLoader<Scan>

loadForwardChildNodes

protected void loadForwardChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node scanNode)
Loads all raw bioassay nodes that are children of the given scan node.

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

loadReverseChildNodes

protected void loadReverseChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node scanNode)
Loads the hybridization node that is the parent of this scan.

Overrides:
loadReverseChildNodes in class AbstractNodeLoader<Scan>
See Also:
HybridizationLoader.createReverseNode(DbControl, OverviewContext, Node)

2.17.2: 2011-06-17