2.17.2: 2011-06-17

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

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

public class ArrayDesignLoader
extends BasicItemNodeLoader<ArrayDesign>

Node loader implementation for array designs. Array designs are an endpoint node with the forward-loading direction going to ArrayDesign:s -> ArrayBatch:s. An array design can also be loaded as a property node from a raw bioassay.

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
ArrayDesignLoader()
           
 
Method Summary
 Node createPropertyNode(DbControl dc, OverviewContext context, Node rawBioAssayNode)
          Create an array design property node from a raw bioassay node.
 Node createReverseNode(DbControl dc, OverviewContext context, Node batchNode)
          Create a reverse-loading array design node from an array batch node.
protected  void loadForwardChildNodes(DbControl dc, OverviewContext context, Node designNode)
          Loads the array batch nodes that has been created with the given design node.
protected  void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node designNode)
          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, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode, loadReverseChildNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayDesignLoader

public ArrayDesignLoader()
Method Detail

createReverseNode

public Node createReverseNode(DbControl dc,
                              OverviewContext context,
                              Node batchNode)
Create a reverse-loading array design node from an array batch node.

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

createPropertyNode

public Node createPropertyNode(DbControl dc,
                               OverviewContext context,
                               Node rawBioAssayNode)
Create an array design property node from a raw bioassay node.

Specified by:
createPropertyNode in interface NodeLoader<ArrayDesign>
Overrides:
createPropertyNode in class AbstractNodeLoader<ArrayDesign>
Parameters:
dc - The DbControl to use for database access
context - The overview context
rawBioAssayNode - The parent node
Returns:
An array design node, or null if the batch doesn't have a design

loadPropertyChildNodes

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

Overrides:
loadPropertyChildNodes in class AbstractNodeLoader<ArrayDesign>

loadForwardChildNodes

protected void loadForwardChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node designNode)
Loads the array batch nodes that has been created with the given design node.

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

2.17.2: 2011-06-17