Class DerivedBioAssayLoader
java.lang.Object
net.sf.basedb.util.overview.loader.AbstractNodeLoader<I>
net.sf.basedb.util.overview.loader.BasicItemNodeLoader<DerivedBioAssay>
net.sf.basedb.util.overview.loader.DerivedBioAssayLoader
- All Implemented Interfaces:
NodeLoader<DerivedBioAssay>
- Since:
- 3.0
- Author:
- Nicklas
- Last modified
- $Date: 2018-06-04 08:42:46 +0200 (må, 04 jun 2018) $
-
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 TypeMethodDescriptioncreateForwardNode
(DbControl dc, OverviewContext context, Node parentNode) Create forward-loading bioassay nodes from a given physical bioassay node or a parent derived bioassay set node.private Node
createForwardNode
(DerivedBioAssay parent, DbControl dc, OverviewContext context, Node parentNode) Create forward-loading derived bioassay set nodes that have the given derived bioassay set as the parentprivate Node
createForwardNode
(Extract extract, DbControl dc, OverviewContext context, Node extractNode) private Node
createForwardNode
(PhysicalBioAssay bioAssay, DbControl dc, OverviewContext context, Node bioAssayNode) Create forward-loading derived bioassay nodes that have the given physical bioassay as the immediate parent (eg. root bioassays).createReverseNode
(DbControl dc, OverviewContext context, Node parentNode) Create a reverse-loading bioassay node from a cild bioassay node or a raw bioassay node.private Node
createReverseNode
(DerivedBioAssay child, DbControl dc, OverviewContext context, Node childNode) Create a reverse-loading bioassay node for the bioassay that is the parent to the given child bioassay.private Node
createReverseNode
(RawBioAssay raw, DbControl dc, OverviewContext context, Node rawNode) Create a reverse-loading bioassay node for the bioassay that is the parent to the given raw bioassay.createRootNode
(DbControl dc, OverviewContext context, DerivedBioAssay item) Create a root node for the given item.private Extract
getExtract
(DerivedBioAssay bioAssay) Get the extract that is associated with the current derived bioassaygetExtractChain
(DbControl dc, Node node) protected void
loadForwardChildNodes
(DbControl dc, OverviewContext context, Node parentNode) Loads all child derived bioassay and raw bioassay nodes.protected void
loadPropertyChildNodes
(DbControl dc, OverviewContext context, Node bioAssayNode) Loads property nodes of a derived bioassay set.protected void
loadReverseChildNodes
(DbControl dc, OverviewContext context, Node bioAssayNode) Loads the parent bioassay or the parent physical bioassay.Methods inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
createItemNode, getNodeFactory, getNodeFactory, getNodeLoader, getNodeLoaderFactory, getNodeNameGenerator, getNodeValidator, getNodeValidatorFactory, postValidateFolder
Methods inherited from class net.sf.basedb.util.overview.loader.AbstractNodeLoader
createPropertyNode, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode
-
Constructor Details
-
DerivedBioAssayLoader
public DerivedBioAssayLoader()
-
-
Method Details
-
createRootNode
Description copied from interface:NodeLoader
Create a root node for the given item. A root node is a node with no parent. Typically, the direction of the created node isChildNodeDirection.ALL
so that both forward and reverse child nodes are loaded.- Specified by:
createRootNode
in interfaceNodeLoader<DerivedBioAssay>
- Overrides:
createRootNode
in classBasicItemNodeLoader<DerivedBioAssay>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextitem
- The root item- Returns:
- A root node
-
createForwardNode
Create forward-loading bioassay nodes from a given physical bioassay node or a parent derived bioassay set node. The returned node is a folder-type node containing item nodes for each bioassay set.- Specified by:
createForwardNode
in interfaceNodeLoader<DerivedBioAssay>
- Overrides:
createForwardNode
in classAbstractNodeLoader<DerivedBioAssay>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The parent node- Returns:
- The folder node for the bioassay sets
-
createReverseNode
Create a reverse-loading bioassay node from a cild bioassay node or a raw bioassay node.- Specified by:
createReverseNode
in interfaceNodeLoader<DerivedBioAssay>
- Overrides:
createReverseNode
in classAbstractNodeLoader<DerivedBioAssay>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The child node- Returns:
- A bioassay node, or null if the raw bioassay doesn't have a parent bioassay
-
loadPropertyChildNodes
Loads property nodes of a derived bioassay set.- Annotations:
AnnotationLoader.createPropertyNode(DbControl, OverviewContext, Node)
- Data files:
DataFileLoader.createPropertyNode(DbControl, OverviewContext, Node)
- Protocol:
ProtocolLoader.createPropertyNode(DbControl, OverviewContext, Node)
- Kit:
KitLoader.createPropertyNode(DbControl, OverviewContext, Node)
- Hardware:
HardwareLoader.createPropertyNode(DbControl, OverviewContext, Node)
- Software:
SoftwareLoader.createPropertyNode(DbControl, OverviewContext, Node)
- Overrides:
loadPropertyChildNodes
in classAbstractNodeLoader<DerivedBioAssay>
- Annotations:
-
loadForwardChildNodes
Loads all child derived bioassay and raw bioassay nodes. -
loadReverseChildNodes
Loads the parent bioassay or the parent physical bioassay. -
createForwardNode
private Node createForwardNode(PhysicalBioAssay bioAssay, DbControl dc, OverviewContext context, Node bioAssayNode) Create forward-loading derived bioassay nodes that have the given physical bioassay as the immediate parent (eg. root bioassays). -
createForwardNode
private Node createForwardNode(DerivedBioAssay parent, DbControl dc, OverviewContext context, Node parentNode) Create forward-loading derived bioassay set nodes that have the given derived bioassay set as the parent -
createForwardNode
private Node createForwardNode(Extract extract, DbControl dc, OverviewContext context, Node extractNode) -
createReverseNode
private Node createReverseNode(RawBioAssay raw, DbControl dc, OverviewContext context, Node rawNode) Create a reverse-loading bioassay node for the bioassay that is the parent to the given raw bioassay. -
createReverseNode
private Node createReverseNode(DerivedBioAssay child, DbControl dc, OverviewContext context, Node childNode) Create a reverse-loading bioassay node for the bioassay that is the parent to the given child bioassay. -
getExtract
Get the extract that is associated with the current derived bioassay- Returns:
- The extract or null if none was found
-
getExtractChain
-