edu.georgetown.pir
Class Organism

java.lang.Object
  extended by edu.georgetown.pir.Organism
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable

@UniqueConstraint(fields={@UniqueConstraintField(name="scientificName"),@UniqueConstraintField(name="termSource")},
                  message="{organism.uniqueConstraint}")
public class Organism
extends java.lang.Object
implements com.fiveamsolutions.nci.commons.data.persistent.PersistentObject

Organism that the sample or data comes from.

See Also:
Serialized Form

Constructor Summary
Organism()
           
 
Method Summary
 java.util.Set<AdditionalOrganismName> getAdditionalOrganismNameCollection()
           
 java.lang.String getCommonName()
           
 java.lang.String getEthnicityStrain()
           
 java.lang.Long getId()
           
 java.lang.String getNameAndSource()
           
 java.lang.Long getNcbiTaxonomyId()
           
 java.lang.String getScientificName()
           
 java.lang.String getTaxonomyRank()
           
 TermSource getTermSource()
           
 void setAdditionalOrganismNameCollection(java.util.Set<AdditionalOrganismName> additionalOrganismNameCollection)
           
 void setCommonName(java.lang.String commonName)
           
 void setEthnicityStrain(java.lang.String ethnicityStrain)
           
 void setId(java.lang.Long id)
           
 void setNcbiTaxonomyId(java.lang.Long ncbiTaxonomyId)
           
 void setScientificName(java.lang.String scientificName)
           
 void setTaxonomyRank(java.lang.String taxonomyRank)
           
 void setTermSource(TermSource termSource)
          Set the termSource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Organism

public Organism()
Method Detail

getAdditionalOrganismNameCollection

public java.util.Set<AdditionalOrganismName> getAdditionalOrganismNameCollection()
Returns:
the additionalOrganismNameCollection

setAdditionalOrganismNameCollection

public void setAdditionalOrganismNameCollection(java.util.Set<AdditionalOrganismName> additionalOrganismNameCollection)
Parameters:
additionalOrganismNameCollection - the additionalOrganismNameCollection to set

getCommonName

public java.lang.String getCommonName()
Returns:
the commonName

setCommonName

public void setCommonName(java.lang.String commonName)
Parameters:
commonName - the commonName to set

getEthnicityStrain

public java.lang.String getEthnicityStrain()
Returns:
the ethnicityStrain

setEthnicityStrain

public void setEthnicityStrain(java.lang.String ethnicityStrain)
Parameters:
ethnicityStrain - the ethnicityStrain to set

getId

public java.lang.Long getId()
Specified by:
getId in interface com.fiveamsolutions.nci.commons.data.persistent.PersistentObject
Returns:
the id

setId

public void setId(java.lang.Long id)
Parameters:
id - the id to set

getNcbiTaxonomyId

public java.lang.Long getNcbiTaxonomyId()
Returns:
the ncbiTaxonomyId

setNcbiTaxonomyId

public void setNcbiTaxonomyId(java.lang.Long ncbiTaxonomyId)
Parameters:
ncbiTaxonomyId - the ncbiTaxonomyId to set

getScientificName

@NotNull
@Length(min=1,
        max=254)
public java.lang.String getScientificName()
Returns:
the scientificName

setScientificName

public void setScientificName(java.lang.String scientificName)
Parameters:
scientificName - the scientificName to set

getTaxonomyRank

public java.lang.String getTaxonomyRank()
Returns:
the taxonomyRank

setTaxonomyRank

public void setTaxonomyRank(java.lang.String taxonomyRank)
Parameters:
taxonomyRank - the taxonomyRank to set

getTermSource

@NotNull
public TermSource getTermSource()
Returns:
the term source to which this organism belongs

setTermSource

public void setTermSource(TermSource termSource)
Set the termSource.

Parameters:
termSource - The termSource to set

getNameAndSource

public java.lang.String getNameAndSource()
Returns:
the value and the term source of this term, which identify the term unambiguously