Class ReferenceFile
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.project.ReferenceFile
-
- All Implemented Interfaces:
IridaThing,MutableIridaThing,Timestamped<java.lang.Long>,VersionedFileFields<java.lang.Long>
@Entity public class ReferenceFile extends java.lang.Object implements VersionedFileFields<java.lang.Long>, MutableIridaThing
A reference file to be associated with aProject.
-
-
Constructor Summary
Constructors Constructor Description ReferenceFile()ReferenceFile(java.nio.file.Path file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.DategetCreatedDate()Get the created date of the objectjava.nio.file.PathgetFile()java.lang.LonggetFileLength()java.lang.LonggetFileRevisionNumber()Get the version of the instance.java.lang.LonggetId()Get the numerical identifier for this objectjava.lang.StringgetLabel()Get a human readable label for this object.java.util.DategetModifiedDate()Get the date that this object was last modifiedinthashCode()voidincrementFileRevisionNumber()Internally modify the file revision number to something new.voidsetFile(java.nio.file.Path file)voidsetFileLength(java.lang.Long fileLength)voidsetId(java.lang.Long id)Set the numerical identifier for this objectvoidsetModifiedDate(java.util.Date modifiedDate)Set the modification time of this object-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.IridaThing
getIdentifier, setLabel
-
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getLabel
public java.lang.String getLabel()
Description copied from interface:IridaThingGet a human readable label for this object.- Specified by:
getLabelin interfaceIridaThing- Returns:
- a human-readable label for the object.
-
getId
public java.lang.Long getId()
Description copied from interface:IridaThingGet the numerical identifier for this object- Specified by:
getIdin interfaceIridaThing- Specified by:
getIdin interfaceTimestamped<java.lang.Long>- Returns:
- the numerical identifier for the object
-
setId
public void setId(java.lang.Long id)
Description copied from interface:MutableIridaThingSet the numerical identifier for this object- Specified by:
setIdin interfaceMutableIridaThing- Parameters:
id- The ID to set
-
getModifiedDate
public java.util.Date getModifiedDate()
Description copied from interface:MutableIridaThingGet the date that this object was last modified- Specified by:
getModifiedDatein interfaceMutableIridaThing- Returns:
Dateobject of the modified date
-
setModifiedDate
public void setModifiedDate(java.util.Date modifiedDate)
Description copied from interface:MutableIridaThingSet the modification time of this object- Specified by:
setModifiedDatein interfaceMutableIridaThing- Parameters:
modifiedDate- The date where this object was modified
-
getFile
public java.nio.file.Path getFile()
-
setFile
public void setFile(java.nio.file.Path file)
-
getCreatedDate
public java.util.Date getCreatedDate()
Description copied from interface:TimestampedGet the created date of the object- Specified by:
getCreatedDatein interfaceTimestamped<java.lang.Long>- Returns:
- A
Dateobject of the created date
-
incrementFileRevisionNumber
public void incrementFileRevisionNumber()
Description copied from interface:VersionedFileFieldsInternally modify the file revision number to something new.- Specified by:
incrementFileRevisionNumberin interfaceVersionedFileFields<java.lang.Long>
-
getFileRevisionNumber
public java.lang.Long getFileRevisionNumber()
Description copied from interface:VersionedFileFieldsGet the version of the instance.- Specified by:
getFileRevisionNumberin interfaceVersionedFileFields<java.lang.Long>- Returns:
- the version of the instance.
-
getFileLength
public java.lang.Long getFileLength()
-
setFileLength
public void setFileLength(java.lang.Long fileLength)
-
-