Class Sample

    • Constructor Detail

      • Sample

        public Sample()
      • Sample

        public Sample​(java.lang.String sampleName)
        Create a new Sample with the given name
        Parameters:
        sampleName - The name of the sample
    • Method Detail

      • compareTo

        public int compareTo​(Sample other)
        Specified by:
        compareTo in interface java.lang.Comparable<Sample>
      • getId

        public java.lang.Long getId()
        Description copied from interface: IridaThing
        Get the numerical identifier for this object
        Specified by:
        getId in interface IridaThing
        Specified by:
        getId in interface Timestamped<java.lang.Long>
        Returns:
        the numerical identifier for the object
      • setId

        public void setId​(java.lang.Long id)
        Description copied from interface: MutableIridaThing
        Set the numerical identifier for this object
        Specified by:
        setId in interface MutableIridaThing
        Parameters:
        id - The ID to set
      • getSampleName

        public java.lang.String getSampleName()
      • setSampleName

        public void setSampleName​(java.lang.String sampleName)
      • getDescription

        public java.lang.String getDescription()
      • setDescription

        public void setDescription​(java.lang.String description)
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: IridaThing
        Get a human readable label for this object.
        Specified by:
        getLabel in interface IridaThing
        Returns:
        a human-readable label for the object.
      • getModifiedDate

        public java.util.Date getModifiedDate()
        Description copied from interface: MutableIridaThing
        Get the date that this object was last modified
        Specified by:
        getModifiedDate in interface MutableIridaThing
        Returns:
        Date object of the modified date
      • setModifiedDate

        public void setModifiedDate​(java.util.Date modifiedDate)
        Description copied from interface: MutableIridaThing
        Set the modification time of this object
        Specified by:
        setModifiedDate in interface MutableIridaThing
        Parameters:
        modifiedDate - The date where this object was modified
      • setCreatedDate

        public void setCreatedDate​(java.util.Date createdDate)
      • getCreatedDate

        public java.util.Date getCreatedDate()
        Description copied from interface: Timestamped
        Get the created date of the object
        Specified by:
        getCreatedDate in interface Timestamped<java.lang.Long>
        Returns:
        A Date object of the created date
      • getStrain

        public java.lang.String getStrain()
      • setStrain

        public void setStrain​(java.lang.String strain)
      • getCollectionDate

        public java.util.Date getCollectionDate()
      • setCollectionDate

        public void setCollectionDate​(java.util.Date collectionDate)
      • getCollectedBy

        public java.lang.String getCollectedBy()
      • setCollectedBy

        public void setCollectedBy​(java.lang.String collectedBy)
      • getLatitude

        public java.lang.String getLatitude()
      • setLatitude

        public void setLatitude​(java.lang.String latitude)
      • getLongitude

        public java.lang.String getLongitude()
      • setLongitude

        public void setLongitude​(java.lang.String longitude)
      • getOrganism

        public java.lang.String getOrganism()
      • setOrganism

        public void setOrganism​(java.lang.String organism)
      • getIsolate

        public java.lang.String getIsolate()
      • setIsolate

        public void setIsolate​(java.lang.String isolate)
      • getGeographicLocationName

        public java.lang.String getGeographicLocationName()
      • setGeographicLocationName

        public void setGeographicLocationName​(java.lang.String geographicLocationName)
      • getIsolationSource

        public java.lang.String getIsolationSource()
      • setIsolationSource

        public void setIsolationSource​(java.lang.String isolationSource)
      • getDefaultSequencingObject

        public SequencingObject getDefaultSequencingObject()
      • setDefaultSequencingObject

        public void setDefaultSequencingObject​(SequencingObject sequencingObject)
      • getDefaultGenomeAssembly

        public GenomeAssembly getDefaultGenomeAssembly()
      • setDefaultGenomeAssembly

        public void setDefaultGenomeAssembly​(GenomeAssembly genomeAssembly)