Class ReplicaFileInfo


  • public class ReplicaFileInfo
    extends java.lang.Object
    This is a container for the ReplicaFileInfo table in the bitpreservation database.
    • Constructor Detail

      • ReplicaFileInfo

        public ReplicaFileInfo​(long gId,
                               java.lang.String rId,
                               long fId,
                               long sId,
                               java.lang.String cs,
                               int us,
                               int fs,
                               int css,
                               java.sql.Date fDate,
                               java.sql.Date cDate)
                        throws ArgumentNotValid
        Constructor.
        Parameters:
        gId - The guid.
        rId - The replicaId.
        fId - The fileId.
        sId - the segmentId.
        cs - The checksum.
        us - The uploadstatus.
        fs - The fileliststatus.
        css - The checksumstatus.
        fDate - The date for the last filelist update.
        cDate - The date for the last checksum update.
        Throws:
        ArgumentNotValid - If gId or fId is negative, the rId is either null or the empty string. The other variables are not validated, since they are allowed to be null (e.g. the dates before they are updated).
      • ReplicaFileInfo

        public ReplicaFileInfo​(java.sql.ResultSet res)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • toString

        public java.lang.String toString()
        Retrieves this object as as a string. Contains all the variables.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representing this object.
      • getGuid

        public long getGuid()
        Retrieves the guid.
        Returns:
        The guid.
      • getReplicaId

        public java.lang.String getReplicaId()
        Retrieves the replicaId.
        Returns:
        The replicaId.
      • getFileId

        public long getFileId()
        Retrieves the fileId.
        Returns:
        The fileId.
      • getSegmentId

        public long getSegmentId()
        Retrieves the segmentId.
        Returns:
        The segmentId.
      • getChecksum

        public java.lang.String getChecksum()
        Retrieves the checksum.
        Returns:
        The checksum.
      • getFileListCheckDateTime

        public java.sql.Date getFileListCheckDateTime()
        Retrieves the filelistCheckdatetime.
        Returns:
        The filelistCheckdatetime.
      • getChecksumCheckdatetime

        public java.sql.Date getChecksumCheckdatetime()
        Retrieves the checksumCheckDatetime.
        Returns:
        The checksumCheckDateTime.