2.17.2: 2011-06-17

net.sf.basedb.util.overview.loader
Class ArrayBatchLoader

java.lang.Object
  extended by net.sf.basedb.util.overview.loader.AbstractNodeLoader<I>
      extended by net.sf.basedb.util.overview.loader.BasicItemNodeLoader<ArrayBatch>
          extended by net.sf.basedb.util.overview.loader.ArrayBatchLoader
All Implemented Interfaces:
NodeLoader<ArrayBatch>

public class ArrayBatchLoader
extends BasicItemNodeLoader<ArrayBatch>

Node loader implementation for array batches. The forward-loading direction goes from ArrayDesign:s -> ArrayBatch:s -> ArraySlide:s. The reverse-loading direction is the opposite direction.

Version:
2.10
Author:
Nicklas
Last modified
$Date: 2010-11-18 08:26:30 +0100 (Thu, 18 Nov 2010) $

Field Summary
 
Fields inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
ALLOW_ROOT_NODE, allowAsRootNode, DENY_ROOT_NODE, factoryKey, nameGenerator
 
Constructor Summary
ArrayBatchLoader()
           
 
Method Summary
 Node createForwardNode(DbControl dc, OverviewContext context, Node designNode)
          Create forward-loading array batch nodes from a given array design node.
 Node createReverseNode(DbControl dc, OverviewContext context, Node slideNode)
          Create a reverse-loading array batch node from an array slide node.
protected  void loadForwardChildNodes(DbControl dc, OverviewContext context, Node batchNode)
          Loads the array slide nodes that is related to the given batch node.
protected  void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node batchNode)
          Loads property nodes of an array batch.
protected  void loadReverseChildNodes(DbControl dc, OverviewContext context, Node batchNode)
          Loads the array design node that is the parent of this array batch.
 
Methods inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
createItemNode, createRootNode, getNodeFactory, getNodeFactory, getNodeLoader, getNodeLoaderFactory, getNodeValidator, getNodeValidatorFactory, postValidateFolder
 
Methods inherited from class net.sf.basedb.util.overview.loader.AbstractNodeLoader
createPropertyNode, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayBatchLoader

public ArrayBatchLoader()
Method Detail

createForwardNode

public Node createForwardNode(DbControl dc,
                              OverviewContext context,
                              Node designNode)
Create forward-loading array batch nodes from a given array design node. The returned node is a folder-type node containing item nodes for each batch that has been created from the array design.

Specified by:
createForwardNode in interface NodeLoader<ArrayBatch>
Overrides:
createForwardNode in class AbstractNodeLoader<ArrayBatch>
Parameters:
dc - The DbControl to use for database access
context - The overview context
designNode - The parent node
Returns:
The folder node for the array batches

createReverseNode

public Node createReverseNode(DbControl dc,
                              OverviewContext context,
                              Node slideNode)
Create a reverse-loading array batch node from an array slide node.

Specified by:
createReverseNode in interface NodeLoader<ArrayBatch>
Overrides:
createReverseNode in class AbstractNodeLoader<ArrayBatch>
Parameters:
dc - The DbControl to use for database access
context - The overview context
slideNode - The child node
Returns:
An array batch node, or null if the slide doesn't belong to a batch

loadPropertyChildNodes

protected void loadPropertyChildNodes(DbControl dc,
                                      OverviewContext context,
                                      Node batchNode)
Loads property nodes of an array batch.

Overrides:
loadPropertyChildNodes in class AbstractNodeLoader<ArrayBatch>

loadForwardChildNodes

protected void loadForwardChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node batchNode)
Loads the array slide nodes that is related to the given batch node.

Overrides:
loadForwardChildNodes in class AbstractNodeLoader<ArrayBatch>
See Also:
ArraySlideLoader.createForwardNode(DbControl, OverviewContext, Node)

loadReverseChildNodes

protected void loadReverseChildNodes(DbControl dc,
                                     OverviewContext context,
                                     Node batchNode)
Loads the array design node that is the parent of this array batch.

Overrides:
loadReverseChildNodes in class AbstractNodeLoader<ArrayBatch>
See Also:
ArrayDesignLoader.createReverseNode(DbControl, OverviewContext, Node)

2.17.2: 2011-06-17