2.17.2: 2011-06-17

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

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

public class HybridizationLoader
extends BasicItemNodeLoader<Hybridization>

Node loader implementation for hybridizations. There are two forward-loading directions:

  1. LabeledExtract:s -> Hybridization:s -> Scan:s.
  2. ArraySlide:s -> Hybridization:s -> Scan:s
The reverse-loading direction starts with a scan and moves to both labeled extracts and array slide.

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
HybridizationLoader()
           
 
Method Summary
private  Node createForwardNode(ArraySlide slide, DbControl dc, OverviewContext context, Node parentNode)
          Create a forward-loading hybridization node from an array slide.
 Node createForwardNode(DbControl dc, OverviewContext context, Node parentNode)
          Create forward-loading hybridization nodes from either a labeled extract or an array slide node.
private  Node createForwardNode(LabeledExtract extract, DbControl dc, OverviewContext context, Node parentNode)
          Create forward-loading hybridization nodes for the hybridizations that has a given labeled extract as a source.
 Node createReverseNode(DbControl dc, OverviewContext context, Node scanNode)
          Create a reverse-loading hybridization node from the scan node.
protected  void loadForwardChildNodes(DbControl dc, OverviewContext context, Node hybNode)
          Load forward-loading child nodes: Scans: ScanLoader.createForwardNode(DbControl, OverviewContext, Node) Array slide in reverse direction (if the parent node is a labeled extract): ArraySlideLoader.createReverseNode(DbControl, OverviewContext, Node) Labeled extracts in reverse direction (if the parent node is the array slide): LabeledExtractLoader.createReverseNode(DbControl, OverviewContext, Node)
protected  void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node hybNode)
          Loads property nodes of a hybridization.
protected  void loadReverseChildNodes(DbControl dc, OverviewContext context, Node hybNode)
          Load reverse child nodes: Labeled extracts: LabeledExtractLoader.createReverseNode(DbControl, OverviewContext, Node) Array slide: ArraySlideLoader.createReverseNode(DbControl, OverviewContext, Node)
 
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

HybridizationLoader

public HybridizationLoader()
Method Detail

createForwardNode

public Node createForwardNode(DbControl dc,
                              OverviewContext context,
                              Node parentNode)
Create forward-loading hybridization nodes from either a labeled extract or an array slide node. The returned node is either folder-type node containing nodes for each hybridization that has been created from the labeled extract or an item node with the hybridization on the array slide.

Specified by:
createForwardNode in interface NodeLoader<Hybridization>
Overrides:
createForwardNode in class AbstractNodeLoader<Hybridization>
Parameters:
dc - The DbControl to use for database access
context - The overview context
parentNode - The parent node
Returns:
The folder node with the hybridizations, or the item node (can be null)

createReverseNode

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

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

loadPropertyChildNodes

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

Overrides:
loadPropertyChildNodes in class AbstractNodeLoader<Hybridization>

loadForwardChildNodes

protected void loadForwardChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node hybNode)
Load forward-loading child nodes:

Overrides:
loadForwardChildNodes in class AbstractNodeLoader<Hybridization>

loadReverseChildNodes

protected void loadReverseChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node hybNode)
Load reverse child nodes:

Overrides:
loadReverseChildNodes in class AbstractNodeLoader<Hybridization>

createForwardNode

private Node createForwardNode(LabeledExtract extract,
                               DbControl dc,
                               OverviewContext context,
                               Node parentNode)
Create forward-loading hybridization nodes for the hybridizations that has a given labeled extract as a source.


createForwardNode

private Node createForwardNode(ArraySlide slide,
                               DbControl dc,
                               OverviewContext context,
                               Node parentNode)
Create a forward-loading hybridization node from an array slide.


2.17.2: 2011-06-17