2.17.2: 2011-06-17

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

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

public class LabeledExtractLoader
extends BasicItemNodeLoader<LabeledExtract>

Node loader implementation for labeled extracts. The forward-loading direction goes from Extract:s -> LabeledExtract:s -> Hybridization:s. The reverse-loading direction is the opposite direction. In both cases we also need to consider pooled labeled extracts.

Version:
2.10
Author:
Nicklas
Last modified
$Date: 2010-11-22 09:02:13 +0100 (Mon, 22 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
LabeledExtractLoader()
           
 
Method Summary
 Node createForwardNode(DbControl dc, OverviewContext context, Node parentNode)
          Create forward-loading labeled extract nodes from a given parent extract or labeled extract node.
private  Node createForwardNode(Extract extract, DbControl dc, OverviewContext context, Node parentNode)
          Create forward-loading labeled extract nodes for the labeled extracts that has a given extract as their parent.
private  Node createForwardNode(LabeledExtract parentExtract, DbControl dc, OverviewContext context, Node parentNode)
          Create forward-loading labeled extract nodes for the (pooled) labeled extract that has a given labeled extract among their parents.
 Node createReverseNode(DbControl dc, OverviewContext context, Node parentNode)
          Create reverse-loading labeled extract nodes from a hybridization node or from a pooled labeled extract.
private  Node createReverseNode(Hybridization hyb, DbControl dc, OverviewContext context, Node parentNode)
          Create reverse-loading labeled extract nodes from a hybridization.
private  Node createReverseNode(LabeledExtract product, DbControl dc, OverviewContext context, Node parentNode)
          Create reverse-loading labeled extract nodes of a pooled labeled extract.
protected  void loadForwardChildNodes(DbControl dc, OverviewContext context, Node extractNode)
          Loads the hybridizations and labeled extracts that has been created from this labeled extract.
protected  void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node extractNode)
          Loads property nodes of a labeled extract.
protected  void loadReverseChildNodes(DbControl dc, OverviewContext context, Node extractNode)
          If the labeled extract is a pooled labeled extract, loads the labeled extracts it was pooled from.
 
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

LabeledExtractLoader

public LabeledExtractLoader()
Method Detail

createForwardNode

public Node createForwardNode(DbControl dc,
                              OverviewContext context,
                              Node parentNode)
Create forward-loading labeled extract nodes from a given parent extract or labeled extract node. In both cases the returned node is a folder-type node that contains the child labeled extracts.

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

createReverseNode

public Node createReverseNode(DbControl dc,
                              OverviewContext context,
                              Node parentNode)
Create reverse-loading labeled extract nodes from a hybridization node or from a pooled labeled extract.

Specified by:
createReverseNode in interface NodeLoader<LabeledExtract>
Overrides:
createReverseNode in class AbstractNodeLoader<LabeledExtract>
Parameters:
dc - The DbControl to use for database access
context - The overview context
parentNode - The child node
Returns:
A folder node with the labeled extracts

loadPropertyChildNodes

protected void loadPropertyChildNodes(DbControl dc,
                                      OverviewContext context,
                                      Node extractNode)
Loads property nodes of a labeled extract.

Overrides:
loadPropertyChildNodes in class AbstractNodeLoader<LabeledExtract>

loadForwardChildNodes

protected void loadForwardChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node extractNode)
Loads the hybridizations and labeled extracts that has been created from this labeled extract.

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

loadReverseChildNodes

protected void loadReverseChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node extractNode)
If the labeled extract is a pooled labeled extract, loads the labeled extracts it was pooled from. Otherwise load the parent extract.

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

createReverseNode

private Node createReverseNode(LabeledExtract product,
                               DbControl dc,
                               OverviewContext context,
                               Node parentNode)
Create reverse-loading labeled extract nodes of a pooled labeled extract. Eg. the child nodes are the source labeled extracts that was pooled to create the given product.


createReverseNode

private Node createReverseNode(Hybridization hyb,
                               DbControl dc,
                               OverviewContext context,
                               Node parentNode)
Create reverse-loading labeled extract nodes from a hybridization. Eg. the child nodes are the labeled extracts that has been used on a hybridization.


createForwardNode

private Node createForwardNode(Extract extract,
                               DbControl dc,
                               OverviewContext context,
                               Node parentNode)
Create forward-loading labeled extract nodes for the labeled extracts that has a given extract as their parent.


createForwardNode

private Node createForwardNode(LabeledExtract parentExtract,
                               DbControl dc,
                               OverviewContext context,
                               Node parentNode)
Create forward-loading labeled extract nodes for the (pooled) labeled extract that has a given labeled extract among their parents.


2.17.2: 2011-06-17