Class SoftwareLoader

All Implemented Interfaces:
NodeLoader<Software>

public class SoftwareLoader
extends BasicItemNodeLoader<Software>
Node loader implementation for software. Software is loaded as end-point property nodes with no children. It can't be a root node or a forward/reverse-loading node.
Version:
2.10
Author:
Nicklas
Last modified
$Date: 2015-10-01 11:37:58 +0200 (to, 01 okt 2015) $
  • Constructor Details

    • SoftwareLoader

      public SoftwareLoader()
  • Method Details

    • createPropertyNode

      public Node createPropertyNode​(DbControl dc, OverviewContext context, Node parentNode)
      Description copied from interface: NodeLoader
      Create a property node for the given parent node. A property node is a node that is not on the main parent-child path. It is typically a node that can't be used a root node (for example, a protocol or software). If the parent node can have many properties of this type the loader can decide if it should first create a folder-type node and put the children inside the folder, or if all child nodes should be created directly in the parent node. In the first case, the folder node should be returned. In the latter case, null should be returned.

      The direction of the node(s) should usually be ChildNodeDirection.NONE, but it may also be ChildNodeDirection.PROPERTY in case the property has sub-properties. One example is the ProtocolLoader which loads the protocol parameters as child nodes.

      In case there is an error (permission denied, etc.) ChildNodeDirection.NONE should be used. If there is no property item null should be returned (but this may also indicate that more than one node was created).

      Errors, missing items, etc. should be reported as failures to the OverviewContext.

      Specified by:
      createPropertyNode in interface NodeLoader<Software>
      Overrides:
      createPropertyNode in class AbstractNodeLoader<Software>
      Parameters:
      dc - The DbControl to use for database access
      context - The overview context
      parentNode - The parent node
      Returns:
      A node (may be a folder-type node with many subnodes), or null
    • loadPropertyChildNodes

      protected void loadPropertyChildNodes​(DbControl dc, OverviewContext context, Node softwareNode)
      Loads annotations and software parameters for the given software node.
      Overrides:
      loadPropertyChildNodes in class AbstractNodeLoader<Software>
      See Also:
      RawBioAssayLoader.createForwardNode(DbControl, OverviewContext, Node)