Class ProjectSampleJoin

    • Constructor Detail

      • ProjectSampleJoin

        public ProjectSampleJoin()
      • ProjectSampleJoin

        public ProjectSampleJoin​(Project subject,
                                 Sample object,
                                 boolean owner)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • 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
      • getSubject

        public Project getSubject()
        Description copied from interface: Join
        Get the owning object in the relationship.
        Specified by:
        getSubject in interface Join<Project,​Sample>
        Returns:
        the owning object of the relationship.
      • getObject

        public Sample getObject()
        Description copied from interface: Join
        Get the owned object in the relationship.
        Specified by:
        getObject in interface Join<Project,​Sample>
        Returns:
        the owned object of the relationship.
      • getTimestamp

        public java.util.Date getTimestamp()
        Description copied from interface: Join
        Get the timestamp for this object
        Specified by:
        getTimestamp in interface Join<Project,​Sample>
        Returns:
        A Date object of the timestamp
      • 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
      • isOwner

        public boolean isOwner()
        Whether the Project has modification rights to the Sample
        Returns:
        true if the Project owns the Sample
      • setOwner

        public void setOwner​(boolean owner)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object