3.2.1: 2012-12-13

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

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

public class BioWellLoader
extends BasicItemNodeLoader<MeasuredBioMaterial>

Node loader implementation that load biomaterial on a bioplate. This loader is only user in the forward-loading direction from a bioplate to the biomaterial. Note that the loader returns biomaterial nodes, NOT biowell nodes. It can be used as a root node or in the reverse direction.

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
BioWellLoader()
           
 
Method Summary
private  Node createForwardNode(BioPlate plate, DbControl dc, OverviewContext context, Node plateNode)
          Create all-loading biomaterial nodes for each non-empty well on the bioplate.
 Node createForwardNode(DbControl dc, OverviewContext context, Node parentNode)
          Create forward-loading biomaterial nodes from a given bioplate The biomaterial nodes are created directly as child nodes to the bioplate.
 boolean loadChildNodes(DbControl dc, OverviewContext context, Node node)
          Delegate loading of child nodes to the actual item loader that this node is representing.
 
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
createPropertyNode, createReverseNode, loadChildNodesOfFolderNode, loadChildNodesOfItemNode, loadForwardChildNodes, loadPropertyChildNodes, loadReverseChildNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BioWellLoader

public BioWellLoader()
Method Detail

createForwardNode

public Node createForwardNode(DbControl dc,
                              OverviewContext context,
                              Node parentNode)
Create forward-loading biomaterial nodes from a given bioplate The biomaterial nodes are created directly as child nodes to the bioplate. No intermediate folder node is used so this method return null.

Specified by:
createForwardNode in interface NodeLoader<MeasuredBioMaterial>
Overrides:
createForwardNode in class AbstractNodeLoader<MeasuredBioMaterial>
Parameters:
dc - The DbControl to use for database access
context - The overview context
parentNode - The parent node
Returns:
Always null (but child nodes are added to the parent node)

loadChildNodes

public boolean loadChildNodes(DbControl dc,
                              OverviewContext context,
                              Node node)
Delegate loading of child nodes to the actual item loader that this node is representing.

Specified by:
loadChildNodes in interface NodeLoader<MeasuredBioMaterial>
Overrides:
loadChildNodes in class AbstractNodeLoader<MeasuredBioMaterial>
Parameters:
dc - The DbControl to use for database access
context - The overview context
node - The node
Returns:
TRUE if the call resulted in new nodes being loaded, FALSE otherwise

createForwardNode

private Node createForwardNode(BioPlate plate,
                               DbControl dc,
                               OverviewContext context,
                               Node plateNode)
Create all-loading biomaterial nodes for each non-empty well on the bioplate.


3.2.1: 2012-12-13