3.2.1: 2012-12-13

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

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

public class BioPlateLoader
extends BasicItemNodeLoader<BioPlate>

Node loader implementation for bioplates. Bioplates are loaded as root nodes, or as property nodes of a biomaterial. The forward-loading direction goes to the biomaterial that is located on the plate. The reverse direction is not loading anything.

Since:
3.2
Author:
nicklas

Field Summary
 
Fields inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
ALLOW_ROOT_NODE, allowAsRootNode, DENY_ROOT_NODE, factoryKey, nameGenerator
 
Constructor Summary
BioPlateLoader()
           
 
Method Summary
 Node createPropertyNode(DbControl dc, OverviewContext context, Node parentNode)
          Create a bioplate property node from a biomaterial that is located on a plate.
private  Node createPropertyNode(MeasuredBioMaterial bioMaterial, DbControl dc, OverviewContext context, Node parentNode)
          Create a propert node when the parent item is a biomaterial.
protected  void loadForwardChildNodes(DbControl dc, OverviewContext context, Node plateNode)
          Loads the non-empty biowells on the bioplate.
protected  void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node plateNode)
          Load the freezer node.
 
Methods inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
createItemNode, createRootNode, getNodeFactory, getNodeFactory, getNodeLoader, getNodeLoaderFactory, getNodeNameGenerator, getNodeValidator, getNodeValidatorFactory, postValidateFolder
 
Methods inherited from class net.sf.basedb.util.overview.loader.AbstractNodeLoader
createForwardNode, createReverseNode, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode, loadReverseChildNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BioPlateLoader

public BioPlateLoader()
Method Detail

createPropertyNode

public Node createPropertyNode(DbControl dc,
                               OverviewContext context,
                               Node parentNode)
Create a bioplate property node from a biomaterial that is located on a plate.

Specified by:
createPropertyNode in interface NodeLoader<BioPlate>
Overrides:
createPropertyNode in class AbstractNodeLoader<BioPlate>
Parameters:
dc - The DbControl to use for database access
context - The overview context
parentNode - The parent node
Returns:
A bioplate node, or null if the biomaterial is not located on a plate

loadForwardChildNodes

protected void loadForwardChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node plateNode)
Loads the non-empty biowells on the bioplate.

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

loadPropertyChildNodes

protected void loadPropertyChildNodes(DbControl dc,
                                      OverviewContext context,
                                      Node plateNode)
Load the freezer node.

Overrides:
loadPropertyChildNodes in class AbstractNodeLoader<BioPlate>
See Also:
HardwareLoader.createPropertyNode(DbControl, OverviewContext, Node)}

createPropertyNode

private Node createPropertyNode(MeasuredBioMaterial bioMaterial,
                                DbControl dc,
                                OverviewContext context,
                                Node parentNode)
Create a propert node when the parent item is a biomaterial.


3.2.1: 2012-12-13