Class BioSourceLoader
java.lang.Object
net.sf.basedb.util.overview.loader.AbstractNodeLoader<I>
net.sf.basedb.util.overview.loader.BasicItemNodeLoader<BioSource>
net.sf.basedb.util.overview.loader.BioSourceLoader
- All Implemented Interfaces:
NodeLoader<BioSource>
Node loader implementation for biosources. Biosources are
an endpoint node with the forward-loading direction going to
BioSource
:s -> Sample
:s.- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2015-02-20 14:13:42 +0100 (fr, 20 feb 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 TypeMethodDescriptioncreateForwardNode
(DbControl dc, OverviewContext context, Node parentNode) Create forward-loading biosource nodes from a biomaterial list for the member biosources.createReverseNode
(DbControl dc, OverviewContext context, Node sampleNode) Create a reverse-loading biosource node from a sample node.protected void
loadForwardChildNodes
(DbControl dc, OverviewContext context, Node bioSourceNode) Loads the sample nodes that has been created from the given biosource node.protected void
loadPropertyChildNodes
(DbControl dc, OverviewContext context, Node bioSourceNode) Loads property nodes of an array design.protected void
loadReverseChildNodes
(DbControl dc, OverviewContext context, Node bioSourceNode) A biosource usually don't have any reverse child nodes.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, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode
-
Constructor Details
-
BioSourceLoader
public BioSourceLoader()
-
-
Method Details
-
createForwardNode
Create forward-loading biosource nodes from a biomaterial list for the member biosources.- Specified by:
createForwardNode
in interfaceNodeLoader<BioSource>
- Overrides:
createForwardNode
in classAbstractNodeLoader<BioSource>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The parent node- Returns:
- The folder node for the biosources (or null if used with a list)
-
createReverseNode
Create a reverse-loading biosource node from a sample node.- Specified by:
createReverseNode
in interfaceNodeLoader<BioSource>
- Overrides:
createReverseNode
in classAbstractNodeLoader<BioSource>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextsampleNode
- The child node- Returns:
- A biosource node, which can be null if validation fails
-
loadPropertyChildNodes
Loads property nodes of an array design.- Overrides:
loadPropertyChildNodes
in classAbstractNodeLoader<BioSource>
-
loadForwardChildNodes
Loads the sample nodes that has been created from the given biosource node.- Overrides:
loadForwardChildNodes
in classAbstractNodeLoader<BioSource>
- See Also:
-
loadReverseChildNodes
A biosource usually don't have any reverse child nodes. The exception is child samples that have a subtype with theItemSubtype.getPushAnnotations()
flag set.- Overrides:
loadReverseChildNodes
in classAbstractNodeLoader<BioSource>
- Since:
- 3.1
-