|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.overview.loader.AbstractNodeLoader<I> net.sf.basedb.util.overview.loader.BasicItemNodeLoader<Sample> net.sf.basedb.util.overview.loader.SampleLoader
public class SampleLoader
Node loader implementation for samples. The forward-loading
direction goes from BioSource
:s -> Sample
:s ->
Extract
:s. The reverse-loading direction is the opposite
direction. In both cases we also need to consider pooled samples.
Field Summary |
---|
Fields inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader |
---|
ALLOW_ROOT_NODE, allowAsRootNode, DENY_ROOT_NODE, factoryKey, nameGenerator |
Constructor Summary | |
---|---|
SampleLoader()
|
Method Summary | |
---|---|
private Node |
createForwardNode(BioSource bioSource,
DbControl dc,
OverviewContext context,
Node parentNode)
Create forward-loading sample nodes for the samples that has a given biosource as their parent. |
Node |
createForwardNode(DbControl dc,
OverviewContext context,
Node parentNode)
Create forward-loading sample nodes from a given parent biosource or sample. |
private Node |
createForwardNode(Sample parentSample,
DbControl dc,
OverviewContext context,
Node parentNode)
Create forward-loading sample nodes for the (pooled) samples that has a given sample as their parent. |
Node |
createReverseNode(DbControl dc,
OverviewContext context,
Node parentNode)
Create reverse-loading sample nodes from an extract node or from a pooled sample. |
private Node |
createReverseNode(Extract extract,
DbControl dc,
OverviewContext context,
Node parentNode)
Create a reverse-loading sample node from an extract. |
private Node |
createReverseNode(Sample product,
DbControl dc,
OverviewContext context,
Node parentNode)
Create reverse-loading samples nodes of a pooled sample. |
protected void |
loadForwardChildNodes(DbControl dc,
OverviewContext context,
Node sampleNode)
Loads the pooled samples and extracts that has been created from this sample. |
protected void |
loadPropertyChildNodes(DbControl dc,
OverviewContext context,
Node sampleNode)
Loads property nodes of a sample. |
protected void |
loadReverseChildNodes(DbControl dc,
OverviewContext context,
Node sampleNode)
If the sample is a pooled sample, loads the parent samples that it was pooled from. |
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 |
---|
public SampleLoader()
Method Detail |
---|
public Node createForwardNode(DbControl dc, OverviewContext context, Node parentNode)
createForwardNode
in interface NodeLoader<Sample>
createForwardNode
in class AbstractNodeLoader<Sample>
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The parent node
public Node createReverseNode(DbControl dc, OverviewContext context, Node parentNode)
createReverseNode
in interface NodeLoader<Sample>
createReverseNode
in class AbstractNodeLoader<Sample>
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The child node
protected void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node sampleNode)
AnnotationLoader.createPropertyNode(DbControl, OverviewContext, Node)
ProtocolLoader.createPropertyNode(DbControl, OverviewContext, Node)
loadPropertyChildNodes
in class AbstractNodeLoader<Sample>
protected void loadForwardChildNodes(DbControl dc, OverviewContext context, Node sampleNode)
loadForwardChildNodes
in class AbstractNodeLoader<Sample>
ExtractLoader.createForwardNode(DbControl, OverviewContext, Node)
,
createForwardNode(DbControl, OverviewContext, Node)
protected void loadReverseChildNodes(DbControl dc, OverviewContext context, Node sampleNode)
loadReverseChildNodes
in class AbstractNodeLoader<Sample>
createReverseNode(DbControl, OverviewContext, Node)
,
BioSourceLoader.createReverseNode(DbControl, OverviewContext, Node)
private Node createReverseNode(Sample product, DbControl dc, OverviewContext context, Node parentNode)
private Node createReverseNode(Extract extract, DbControl dc, OverviewContext context, Node parentNode)
private Node createForwardNode(BioSource bioSource, DbControl dc, OverviewContext context, Node parentNode)
private Node createForwardNode(Sample parentSample, DbControl dc, OverviewContext context, Node parentNode)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |