Class BioPlateLoader
java.lang.Object
net.sf.basedb.util.overview.loader.AbstractNodeLoader<I>
net.sf.basedb.util.overview.loader.BasicItemNodeLoader<BioPlate>
net.sf.basedb.util.overview.loader.BioPlateLoader
- All Implemented Interfaces:
NodeLoader<BioPlate>
Node loader implementation for bioplates. Bioplates are
loaded as root nodes, or as property nodes of a biomaterial
or bioplate event. 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
-
Method Summary
Modifier and TypeMethodDescriptionprivate Node
createPropertyNode
(BioPlateEvent event, DbControl dc, OverviewContext context, Node parentNode) Create a property node(s) when the parent item is a bioplate event.createPropertyNode
(DbControl dc, OverviewContext context, Node parentNode) Create a bioplate property node from a biomaterial that is located on a plate or property nodes for each bioplate that is part of a bioplate event.private Node
createPropertyNode
(MeasuredBioMaterial bioMaterial, DbControl dc, OverviewContext context, Node parentNode) Create a property 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
-
Constructor Details
-
BioPlateLoader
public BioPlateLoader()
-
-
Method Details
-
createPropertyNode
Create a bioplate property node from a biomaterial that is located on a plate or property nodes for each bioplate that is part of a bioplate event. If the parent node is a bioplate event the loader only create new nodes for bioplates that are different from the grandparent (which should be one of the bioplates in the event).- Specified by:
createPropertyNode
in interfaceNodeLoader<BioPlate>
- Overrides:
createPropertyNode
in classAbstractNodeLoader<BioPlate>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The parent node- Returns:
- A bioplate node, or null if the biomaterial is not located on a plate
-
loadForwardChildNodes
Loads the non-empty biowells on the bioplate.- Overrides:
loadForwardChildNodes
in classAbstractNodeLoader<BioPlate>
- See Also:
-
loadPropertyChildNodes
Load the freezer node.- Overrides:
loadPropertyChildNodes
in classAbstractNodeLoader<BioPlate>
- See Also:
-
createPropertyNode
private Node createPropertyNode(MeasuredBioMaterial bioMaterial, DbControl dc, OverviewContext context, Node parentNode) Create a property node when the parent item is a biomaterial. -
createPropertyNode
private Node createPropertyNode(BioPlateEvent event, DbControl dc, OverviewContext context, Node parentNode) Create a property node(s) when the parent item is a bioplate event. All participants in the events except the immediate parent (if any) are loaded as property nodes directly under that parent node (not using a folder node). Null is always returned.
-