net.sf.basedb.util.overview.loader
Class BioWellLoader
java.lang.Object
net.sf.basedb.util.overview.loader.AbstractNodeLoader<I>
net.sf.basedb.util.overview.loader.BasicItemNodeLoader<MeasuredBioMaterial>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BioWellLoader
public BioWellLoader()
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 accesscontext
- The overview contextparentNode
- 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 accesscontext
- The overview contextnode
- 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.