gov.nih.nci.caarray.domain.sample
Class Source

java.lang.Object
  extended by gov.nih.nci.caarray.domain.AbstractCaArrayObject
      extended by gov.nih.nci.caarray.domain.AbstractCaArrayEntity
          extended by gov.nih.nci.caarray.domain.project.AbstractExperimentDesignNode
              extended by gov.nih.nci.caarray.domain.sample.AbstractBioMaterial
                  extended by gov.nih.nci.caarray.domain.sample.Source
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, ProtocolApplicable, java.io.Serializable

public class Source
extends AbstractBioMaterial

See Also:
Serialized Form

Field Summary
static java.lang.String DISCRIMINATOR
          the Hibernate discriminator for this biomaterial subclass.
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
CAARRAY_LSID_AUTHORITY, CAARRAY_LSID_NAMESPACE
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH
 
Constructor Summary
Source()
           
 
Method Summary
protected  void doAddDirectPredecessor(AbstractExperimentDesignNode predecessor)
          Actually add the new node as a direct predecessor of this node.
protected  void doAddDirectSuccessor(AbstractExperimentDesignNode successor)
          Actually add the new node as a direct successor of this node.
 java.util.Set<? extends AbstractExperimentDesignNode> getDirectPredecessors()
          
 java.util.Set<? extends AbstractExperimentDesignNode> getDirectSuccessors()
          
 ExperimentDesignNodeType getNodeType()
          
 java.util.Set<AbstractContact> getProviders()
          Gets the providers.
 java.util.Set<Hybridization> getRelatedHybridizations()
          
 java.util.Set<Sample> getSamples()
          Gets the samples.
 void merge(AbstractExperimentDesignNode node)
          Merges another AbstractExperimentDesignNode into this one.
 
Methods inherited from class gov.nih.nci.caarray.domain.sample.AbstractBioMaterial
addProtocolApplication, clearProtocolApplications, getAllDataFiles, getCellType, getCharacteristic, getCharacteristics, getCharacteristics, getDescription, getDiseaseState, getExperiment, getExternalId, getLastModifiedDataTime, getMaterialType, getName, getOrganism, getProtocolApplications, getSpecialCharacteristics, getTissueSite, propagateLastModifiedDataTime, setCellType, setDescription, setDiseaseState, setExperiment, setExternalId, setLastModifiedDataTime, setMaterialType, setName, setOrganism, setTissueSite, toString
 
Methods inherited from class gov.nih.nci.caarray.domain.project.AbstractExperimentDesignNode
addDirectPredecessor, addDirectSuccessor, getCharacteristicsRecursively, getPredecessorsOfType, getSuccessorsOfType
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
getLsid, getLsidAuthority, getLsidNamespace, getLsidObjectId, setLsid, setLsid, setLsidForEntity
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
equals, getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, hashCode, setCaBigId, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DISCRIMINATOR

public static final java.lang.String DISCRIMINATOR
the Hibernate discriminator for this biomaterial subclass.

See Also:
Constant Field Values
Constructor Detail

Source

public Source()
Method Detail

getSamples

public java.util.Set<Sample> getSamples()
Gets the samples.

Returns:
the samples

getProviders

public java.util.Set<AbstractContact> getProviders()
Gets the providers.

Returns:
the providers

getRelatedHybridizations

public java.util.Set<Hybridization> getRelatedHybridizations()

Overrides:
getRelatedHybridizations in class AbstractBioMaterial
Returns:
the set of hybridizations related to this biomaterial (via the biomaterial chain)

getNodeType

public ExperimentDesignNodeType getNodeType()

Specified by:
getNodeType in class AbstractExperimentDesignNode
Returns:
the type of this node

getDirectPredecessors

public java.util.Set<? extends AbstractExperimentDesignNode> getDirectPredecessors()

Specified by:
getDirectPredecessors in class AbstractExperimentDesignNode
Returns:
the set of all nodes that are immediately to the left of this node in the experment design or hybridization channel

getDirectSuccessors

public java.util.Set<? extends AbstractExperimentDesignNode> getDirectSuccessors()

Specified by:
getDirectSuccessors in class AbstractExperimentDesignNode
Returns:
the set of all nodes that are immediately to the right of this node in the experment design or hybridization channel

doAddDirectPredecessor

protected void doAddDirectPredecessor(AbstractExperimentDesignNode predecessor)
Actually add the new node as a direct predecessor of this node. subclasses must implement this method to actually perform the addition.

Specified by:
doAddDirectPredecessor in class AbstractExperimentDesignNode
Parameters:
predecessor - the new node. it is assumed this node is of the correct type

doAddDirectSuccessor

protected void doAddDirectSuccessor(AbstractExperimentDesignNode successor)
Actually add the new node as a direct successor of this node. subclasses must implement this method to actually perform the addition.

Specified by:
doAddDirectSuccessor in class AbstractExperimentDesignNode
Parameters:
successor - the new node. it is assumed this node is of the correct type

merge

public void merge(AbstractExperimentDesignNode node)
Merges another AbstractExperimentDesignNode into this one. For simple properties, the other node's value will only be used if the corresponding value in this is null. For unordered Collections, the collections will be merged. For ordered Lists, the specific behavior will be determined by the subclass. The behavior for other types of properties is dependent on subclasses but should be consistent with the behavior of simple properties.

Most of the information will actually be moved from node to this in preparation for deleting node.

Overrides:
merge in class AbstractBioMaterial
Parameters:
node - node to merge into this