Interface Join<SubjectType extends IridaThing,ObjectType extends IridaThing>
-
- Type Parameters:
SubjectType- the type of the owning objectObjectType- the type of the owned object
- All Superinterfaces:
IridaThing,Timestamped<java.lang.Long>
- All Known Implementing Classes:
AnnouncementUserJoin,ProjectAnalysisSubmissionJoin,ProjectReferenceFileJoin,ProjectSampleJoin,ProjectUserJoin,RelatedProjectJoin,SampleGenomeAssemblyJoin,SampleSequencingObjectJoin,UserGroupJoin,UserGroupProjectJoin
public interface Join<SubjectType extends IridaThing,ObjectType extends IridaThing> extends IridaThing
Interface that the join classes should extend. Classes that extend this can add additional fields that can be persisted in the database. Implementations will have a "subject" and "object" that are the 2 fields being joined, then a creation timestamp.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetLabel()By default, we will return the label of the subject of the join.ObjectTypegetObject()Get the owned object in the relationship.SubjectTypegetSubject()Get the owning object in the relationship.java.util.DategetTimestamp()Get the timestamp for this object-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.IridaThing
getId, getIdentifier, setLabel
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.Timestamped
getCreatedDate
-
-
-
-
Method Detail
-
getSubject
SubjectType getSubject()
Get the owning object in the relationship.- Returns:
- the owning object of the relationship.
-
getObject
ObjectType getObject()
Get the owned object in the relationship.- Returns:
- the owned object of the relationship.
-
getTimestamp
java.util.Date getTimestamp()
Get the timestamp for this object- Returns:
- A
Dateobject of the timestamp
-
getLabel
default java.lang.String getLabel()
By default, we will return the label of the subject of the join.- Specified by:
getLabelin interfaceIridaThing- Returns:
- The label of the object
-
-