Class ArrayBatchLoader
java.lang.Object
net.sf.basedb.util.overview.loader.AbstractNodeLoader<I>
net.sf.basedb.util.overview.loader.BasicItemNodeLoader<ArrayBatch>
net.sf.basedb.util.overview.loader.ArrayBatchLoader
- All Implemented Interfaces:
NodeLoader<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 (to, 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
-
Method Summary
Modifier and TypeMethodDescriptioncreateForwardNode
(DbControl dc, OverviewContext context, Node designNode) Create forward-loading array batch nodes from a given array design 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, getNodeNameGenerator, getNodeValidator, getNodeValidatorFactory, postValidateFolder
Methods inherited from class net.sf.basedb.util.overview.loader.AbstractNodeLoader
createPropertyNode, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode
-
Constructor Details
-
ArrayBatchLoader
public ArrayBatchLoader()
-
-
Method Details
-
createForwardNode
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 interfaceNodeLoader<ArrayBatch>
- Overrides:
createForwardNode
in classAbstractNodeLoader<ArrayBatch>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextdesignNode
- The parent node- Returns:
- The folder node for the array batches
-
createReverseNode
Create a reverse-loading array batch node from an array slide node.- Specified by:
createReverseNode
in interfaceNodeLoader<ArrayBatch>
- Overrides:
createReverseNode
in classAbstractNodeLoader<ArrayBatch>
- Parameters:
dc
- The DbControl to use for database accesscontext
- The overview contextslideNode
- The child node- Returns:
- An array batch node, or null if the slide doesn't belong to a batch
-
loadPropertyChildNodes
Loads property nodes of an array batch.- Overrides:
loadPropertyChildNodes
in classAbstractNodeLoader<ArrayBatch>
-
loadForwardChildNodes
Loads the array slide nodes that is related to the given batch node.- Overrides:
loadForwardChildNodes
in classAbstractNodeLoader<ArrayBatch>
- See Also:
-
loadReverseChildNodes
Loads the array design node that is the parent of this array batch.- Overrides:
loadReverseChildNodes
in classAbstractNodeLoader<ArrayBatch>
- See Also:
-