Class QCEntry
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.sample.QCEntry
-
- Direct Known Subclasses:
CoverageQCEntry
,FileProcessorErrorQCEntry
@Entity public abstract class QCEntry extends java.lang.Object
Abstract class describing quality control entries for aSequencingObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QCEntry.QCEntryStatus
Status of aQCEntry
, whether checks are positive, negative, or can't be calculated.static class
QCEntry.QCEntryType
The type ofQCEntry
-
Constructor Summary
Constructors Constructor Description QCEntry()
QCEntry(SequencingObject sequencingObject)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addProjectSettings(Project project)
boolean
equals(java.lang.Object obj)
java.util.Date
getCreatedDate()
java.lang.Long
getId()
abstract java.lang.String
getMessage()
Get the message for the qc entrySequencingObject
getSequencingObject()
abstract QCEntry.QCEntryStatus
getStatus()
Get theQCEntry
status.abstract QCEntry.QCEntryType
getType()
Return the type of qc entry.int
hashCode()
-
-
-
Constructor Detail
-
QCEntry
public QCEntry()
-
QCEntry
public QCEntry(SequencingObject sequencingObject)
-
-
Method Detail
-
getId
public java.lang.Long getId()
-
getCreatedDate
public java.util.Date getCreatedDate()
-
getSequencingObject
public SequencingObject getSequencingObject()
-
getMessage
public abstract java.lang.String getMessage()
Get the message for the qc entry- Returns:
- the qc entry message to display
-
getType
public abstract QCEntry.QCEntryType getType()
Return the type of qc entry. This will be used for display and grouping in the UI.- Returns:
- the type of qc entry
-
addProjectSettings
public abstract void addProjectSettings(Project project)
Enhance theQCEntry
with aProject
if required. This way aQCEntry
can read project's settings to decide whether it's positive or negative.- Parameters:
project
- theProject
to read from
-
getStatus
public abstract QCEntry.QCEntryStatus getStatus()
Get theQCEntry
status.- Returns:
- a
QCEntry.QCEntryStatus
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-