Class ProjectSampleJoin
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.joins.impl.ProjectSampleJoin
-
- All Implemented Interfaces:
IridaThing
,Join<Project,Sample>
,Timestamped<java.lang.Long>
@Entity public class ProjectSampleJoin extends java.lang.Object implements Join<Project,Sample>
-
-
Constructor Summary
Constructors Constructor Description ProjectSampleJoin()
ProjectSampleJoin(Project subject, Sample object, boolean owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Date
getCreatedDate()
Get the created date of the objectjava.lang.Long
getId()
Get the numerical identifier for this objectSample
getObject()
Get the owned object in the relationship.Project
getSubject()
Get the owning object in the relationship.java.util.Date
getTimestamp()
Get the timestamp for this objectint
hashCode()
boolean
isOwner()
void
setOwner(boolean owner)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.IridaThing
getIdentifier, setLabel
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getId
public java.lang.Long getId()
Description copied from interface:IridaThing
Get the numerical identifier for this object- Specified by:
getId
in interfaceIridaThing
- Specified by:
getId
in interfaceTimestamped<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 interfaceJoin<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.
-
getTimestamp
public java.util.Date getTimestamp()
Description copied from interface:Join
Get the timestamp for this object- Specified by:
getTimestamp
in interfaceJoin<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 interfaceTimestamped<java.lang.Long>
- Returns:
- A
Date
object of the created date
-
setOwner
public void setOwner(boolean owner)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-