Class PhysicalBioAssayLoader
java.lang.Object
net.sf.basedb.util.overview.loader.AbstractNodeLoader<I>
net.sf.basedb.util.overview.loader.BasicItemNodeLoader<PhysicalBioAssay>
net.sf.basedb.util.overview.loader.PhysicalBioAssayLoader
- All Implemented Interfaces:
NodeLoader<PhysicalBioAssay>
Node loader implementation for physical bioassays. There are two forward-loading
directions:
Extract
:s ->PhysicalBioAssay
:s ->DerivedBioAssay
:s.ArraySlide
:s ->PhysicalBioAssay
:s ->DerivedBioAssay
:s
- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2015-11-09 08:33:52 +0100 (må, 09 nov 2015) $
-
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
createForwardNode
(ArraySlide slide, DbControl dc, OverviewContext context, Node parentNode) Create a forward-loading bioassay node from an array slide.createForwardNode
(DbControl dc, OverviewContext context, Node parentNode) Create forward-loading physical bioassay nodes from either an extract or an array slide node.private Node
createForwardNode
(Extract extract, DbControl dc, OverviewContext context, Node parentNode, boolean onlyPushAnnotationTypes) Create forward-loading bioassay nodes for the bioassays that has a given extract as a source.createPropertyNode
(DbControl dc, OverviewContext context, Node parentNode) A property node is created when moving in the reverse direction so that we can load child physical bioassays with theItemSubtype.getPushAnnotations()
flag set.createReverseNode
(DbControl dc, OverviewContext context, Node derivedBioAssayNode) Create a reverse-loading bioassay node from the derived bioassay node.protected void
loadForwardChildNodes
(DbControl dc, OverviewContext context, Node bioAssayNode) Load forward-loading child nodes: Derived bioassay sets (root):DerivedBioAssayLoader.createForwardNode(DbControl, OverviewContext, Node)
Array slide in reverse direction (if the parent node is an extract):ArraySlideLoader.createReverseNode(DbControl, OverviewContext, Node)
Extracts in reverse direction (if the parent node is the array slide):ExtractLoader.createReverseNode(DbControl, OverviewContext, Node)
protected void
loadPropertyChildNodes
(DbControl dc, OverviewContext context, Node bioAssayNode) Loads property nodes of a physical bioassay.protected void
loadReverseChildNodes
(DbControl dc, OverviewContext context, Node bioAssayNode) Load reverse child nodes: Extracts:ExtractLoader.createReverseNode(DbControl, OverviewContext, Node)
Array slide:ArraySlideLoader.createReverseNode(DbControl, OverviewContext, 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
loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode
-
Constructor Details
-
PhysicalBioAssayLoader
public PhysicalBioAssayLoader()
-
-
Method Details
-
createForwardNode
Create forward-loading physical bioassay nodes from either an extract or an array slide node. The returned node is either folder-type node containing nodes for each bioassay that has been created from the extract or an item node with the bioassay on the array slide.- Specified by:
createForwardNode
in interfaceNodeLoader<PhysicalBioAssay>
- Overrides:
createForwardNode
in classAbstractNodeLoader<PhysicalBioAssay>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The parent node- Returns:
- The folder node with the bioassays, or the item node (can be null)
-
createReverseNode
Create a reverse-loading bioassay node from the derived bioassay node.- Specified by:
createReverseNode
in interfaceNodeLoader<PhysicalBioAssay>
- Overrides:
createReverseNode
in classAbstractNodeLoader<PhysicalBioAssay>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextderivedBioAssayNode
- The child node- Returns:
- A bioassay node
-
createPropertyNode
A property node is created when moving in the reverse direction so that we can load child physical bioassays with theItemSubtype.getPushAnnotations()
flag set. The parent node should be an extract node.- Specified by:
createPropertyNode
in interfaceNodeLoader<PhysicalBioAssay>
- Overrides:
createPropertyNode
in classAbstractNodeLoader<PhysicalBioAssay>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The parent node- Returns:
- A node (may be a folder-type node with many subnodes), or null
- Since:
- 3.1
-
loadPropertyChildNodes
Loads property nodes of a physical bioassay.- Annotations:
AnnotationLoader.createPropertyNode(DbControl, OverviewContext, Node)
- Protocol:
ProtocolLoader.createPropertyNode(DbControl, OverviewContext, Node)
- Kit:
KitLoader.createPropertyNode(DbControl, OverviewContext, Node)
- Hardware:
HardwareLoader.createPropertyNode(DbControl, OverviewContext, Node)
- Overrides:
loadPropertyChildNodes
in classAbstractNodeLoader<PhysicalBioAssay>
- Annotations:
-
loadForwardChildNodes
Load forward-loading child nodes:- Derived bioassay sets (root):
DerivedBioAssayLoader.createForwardNode(DbControl, OverviewContext, Node)
- Array slide in reverse direction (if the parent node is an extract):
ArraySlideLoader.createReverseNode(DbControl, OverviewContext, Node)
- Extracts in reverse direction (if the parent node is the array slide):
ExtractLoader.createReverseNode(DbControl, OverviewContext, Node)
- Overrides:
loadForwardChildNodes
in classAbstractNodeLoader<PhysicalBioAssay>
- Derived bioassay sets (root):
-
loadReverseChildNodes
Load reverse child nodes:- Overrides:
loadReverseChildNodes
in classAbstractNodeLoader<PhysicalBioAssay>
-
createForwardNode
private Node createForwardNode(Extract extract, DbControl dc, OverviewContext context, Node parentNode, boolean onlyPushAnnotationTypes) Create forward-loading bioassay nodes for the bioassays that has a given extract as a source. -
createForwardNode
private Node createForwardNode(ArraySlide slide, DbControl dc, OverviewContext context, Node parentNode) Create a forward-loading bioassay node from an array slide.
-