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 boolean
equals(java.lang.Object o)
java.util.Date
getCreatedDate()
Get the created date of the objectjava.nio.file.Path
getFile()
java.lang.Long
getFileLength()
java.lang.Long
getFileRevisionNumber()
Get the version of the instance.java.lang.Long
getId()
Get the numerical identifier for this objectjava.lang.String
getLabel()
Get a human readable label for this object.java.util.Date
getModifiedDate()
Get the date that this object was last modifiedint
hashCode()
void
incrementFileRevisionNumber()
Internally modify the file revision number to something new.void
setFile(java.nio.file.Path file)
void
setFileLength(java.lang.Long fileLength)
void
setId(java.lang.Long id)
Set the numerical identifier for this objectvoid
setModifiedDate(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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getLabel
public java.lang.String getLabel()
Description copied from interface:IridaThing
Get a human readable label for this object.- Specified by:
getLabel
in interfaceIridaThing
- Returns:
- a human-readable label for the 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
-
setId
public void setId(java.lang.Long id)
Description copied from interface:MutableIridaThing
Set the numerical identifier for this object- Specified by:
setId
in interfaceMutableIridaThing
- Parameters:
id
- The ID to set
-
getModifiedDate
public java.util.Date getModifiedDate()
Description copied from interface:MutableIridaThing
Get the date that this object was last modified- Specified by:
getModifiedDate
in interfaceMutableIridaThing
- Returns:
Date
object of the modified date
-
setModifiedDate
public void setModifiedDate(java.util.Date modifiedDate)
Description copied from interface:MutableIridaThing
Set the modification time of this object- Specified by:
setModifiedDate
in 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:Timestamped
Get the created date of the object- Specified by:
getCreatedDate
in interfaceTimestamped<java.lang.Long>
- Returns:
- A
Date
object of the created date
-
incrementFileRevisionNumber
public void incrementFileRevisionNumber()
Description copied from interface:VersionedFileFields
Internally modify the file revision number to something new.- Specified by:
incrementFileRevisionNumber
in interfaceVersionedFileFields<java.lang.Long>
-
getFileRevisionNumber
public java.lang.Long getFileRevisionNumber()
Description copied from interface:VersionedFileFields
Get the version of the instance.- Specified by:
getFileRevisionNumber
in interfaceVersionedFileFields<java.lang.Long>
- Returns:
- the version of the instance.
-
getFileLength
public java.lang.Long getFileLength()
-
setFileLength
public void setFileLength(java.lang.Long fileLength)
-
-