2.17.2: 2011-06-17

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

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

public class ArraySlideLoader
extends BasicItemNodeLoader<ArraySlide>

Node loader implementation for array slides. The forward-loading direction goes from ArrayBatch:s -> ArraySlide:s -> Hybridization: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
ArraySlideLoader()
           
 
Method Summary
 Node createForwardNode(DbControl dc, OverviewContext context, Node batchNode)
          Create forward-loading array slide nodes from a given array batch node.
 Node createReverseNode(DbControl dc, OverviewContext context, Node hybNode)
          Create a reverse-loading array slide node from the hyrbidization node.
protected  void loadForwardChildNodes(DbControl dc, OverviewContext context, Node slideNode)
          Loads the hybridization node that is related to the given array slide node.
protected  void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node slideNode)
          Loads property nodes of an array slide.
protected  void loadReverseChildNodes(DbControl dc, OverviewContext context, Node slideNode)
          Loads the array batch node that is the parent of this array slide.
 
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

ArraySlideLoader

public ArraySlideLoader()
Method Detail

createForwardNode

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

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

createReverseNode

public Node createReverseNode(DbControl dc,
                              OverviewContext context,
                              Node hybNode)
Create a reverse-loading array slide node from the hyrbidization node.

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

loadPropertyChildNodes

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

Overrides:
loadPropertyChildNodes in class AbstractNodeLoader<ArraySlide>

loadForwardChildNodes

protected void loadForwardChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node slideNode)
Loads the hybridization node that is related to the given array slide node.

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

loadReverseChildNodes

protected void loadReverseChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node slideNode)
Loads the array batch node that is the parent of this array slide.

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

2.17.2: 2011-06-17