|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.archive.arcrepositoryadmin.ReplicaFileInfo
public class ReplicaFileInfo
This is a container for the ReplicaFileInfo table in the bitpreservation database.
Constructor Summary | |
---|---|
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)
Constructor. |
|
ReplicaFileInfo(java.sql.ResultSet res)
|
Method Summary | |
---|---|
java.lang.String |
getChecksum()
Retrieves the checksum. |
java.sql.Date |
getChecksumCheckdatetime()
Retrieves the checksumCheckDatetime. |
ChecksumStatus |
getChecksumStatus()
Retrieves the checksumStatus. |
long |
getFileId()
Retrieves the fileId. |
java.sql.Date |
getFileListCheckDateTime()
Retrieves the filelistCheckdatetime. |
FileListStatus |
getFileListState()
Retrieves the filelistStatus. |
long |
getGuid()
Retrieves the guid. |
java.lang.String |
getReplicaId()
Retrieves the replicaId. |
long |
getSegmentId()
Retrieves the segmentId. |
ReplicaStoreState |
getUploadState()
Retrieves the uploadState. |
java.lang.String |
toString()
Retrieves this object as as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
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.
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).public ReplicaFileInfo(java.sql.ResultSet res) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public long getGuid()
public java.lang.String getReplicaId()
public long getFileId()
public long getSegmentId()
public java.lang.String getChecksum()
public ReplicaStoreState getUploadState()
public FileListStatus getFileListState()
public ChecksumStatus getChecksumStatus()
public java.sql.Date getFileListCheckDateTime()
public java.sql.Date getChecksumCheckdatetime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |