public final class BitstreamInfo extends Object
Value Object that holds bitstream information that will be used for checksum processing.
| Constructor and Description |
|---|
BitstreamInfo(boolean del,
int storeNo,
long sz,
String bitstrmFmt,
int bitstrmId,
String usrFmtDesc,
String intrnlId,
String src,
String chksumAlgorthm,
String chksum,
String nm,
Date procEndDate,
boolean toBeProc,
Date procStartDate)
Complete constructor.
|
BitstreamInfo(int bid)
Minimal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Identity entirely dependent upon
bitstreamId. |
String |
getBitstreamFormatId()
Get the Bitstream Format id.
|
boolean |
getBitstreamFound()
bitstreamFound accessor.
|
int |
getBitstreamId()
Get the Bitstream id.
|
String |
getCalculatedChecksum()
calculatedChecksum accessor.
|
String |
getChecksumAlgorithm()
Get the checksum algorithm.
|
String |
getChecksumCheckResult()
Gets checksumCheckResult.
|
boolean |
getDeleted()
Get the deleted flag.
|
boolean |
getInfoFound()
infoFound accessor.
|
String |
getInternalId()
Get the Internal Id.
|
String |
getName()
Get the name of the bitstream.
|
Date |
getProcessEndDate()
The date and time this bitstream is finished being processed.
|
Date |
getProcessStartDate()
The start date and time this bitstream is being processed.
|
long |
getSize()
Get the size.
|
String |
getSource()
Get the source.
|
String |
getStoredChecksum()
Get the checksum.
|
int |
getStoreNumber()
Get the bitstream store number.
|
boolean |
getToBeProcessed()
Gets toBeProcessed.
|
String |
getUserFormatDescription()
Get the user format description.
|
int |
hashCode()
HashCode method uses
bitstreamId as hashing function. |
void |
setBitstreamFormatId(String bitstrmFmt)
Set the Bitstream Format id.
|
void |
setBitstreamFound(boolean found)
sets bitstreamFound.
|
void |
setCalculatedChecksum(String calculatedChecksum)
calculatedChecksum accessor.
|
void |
setChecksumAlgorithm(String checksumAlgorithm)
Set the checksum algorithm.
|
void |
setChecksumCheckResult(String resultCode)
Sets checksumCheckResult.
|
void |
setDeleted(boolean deleted)
Set the deleted flag.
|
void |
setInfoFound(boolean found)
infoFound accessor.
|
void |
setInternalId(String internalId)
Set the Internal Id.
|
void |
setName(String nm)
Set the name of the bitstream.
|
void |
setProcessEndDate(Date endDate)
The date and time this bitstream is finished being processed.
|
void |
setProcessStartDate(Date startDate)
The date and time the processing started for this bitstream.
|
void |
setSize(int size)
Set the size.
|
void |
setSource(String source)
Set the source.
|
void |
setStoredChecksum(String checksum)
Set the checksum.
|
void |
setStoreNumber(int storeNumber)
Set the store number.
|
void |
setToBeProcessed(boolean toBeProcessed)
Sets toBeProcessed.
|
void |
setUserFormatDescription(String userFormatDescription)
Set the user format description.
|
String |
toString()
Describes this BitstreamInfo.
|
public BitstreamInfo(int bid)
bid - Bitstream identifierpublic BitstreamInfo(boolean del,
int storeNo,
long sz,
String bitstrmFmt,
int bitstrmId,
String usrFmtDesc,
String intrnlId,
String src,
String chksumAlgorthm,
String chksum,
String nm,
Date procEndDate,
boolean toBeProc,
Date procStartDate)
del - DeletedstoreNo - Bitstream storeNumbersz - Bitstream sizebitstrmFmt - Bitstream formatbitstrmId - Bitstream idusrFmtDesc - Bitstream format descriptionintrnlId - Bitstream DSpace internal idsrc - Bitstream sourcechksumAlgorthm - Algorithm used to check bitstreamchksum - Hash digest obtainednm - Name of bitstreamprocEndDate - When the last bitstream check finished.toBeProc - Whether the bitstream will be checked or skippedprocStartDate - When the last bitstream check started.public boolean getDeleted()
public void setDeleted(boolean deleted)
deleted - deleted flagpublic int getStoreNumber()
public void setStoreNumber(int storeNumber)
storeNumber - the store numberpublic long getSize()
public void setSize(int size)
size - the bitstream sizepublic String getBitstreamFormatId()
public void setBitstreamFormatId(String bitstrmFmt)
bitstrmFmt - id of the bitstream formatpublic int getBitstreamId()
public String getUserFormatDescription()
public void setUserFormatDescription(String userFormatDescription)
userFormatDescription - the userFormatDescriptionpublic String getInternalId()
public void setInternalId(String internalId)
internalId - the DSpace internal sequence id for the bitstream.public String getSource()
public void setSource(String source)
source - The bitstream source.public String getChecksumAlgorithm()
public void setChecksumAlgorithm(String checksumAlgorithm)
checksumAlgorithm - the algorithm used for checking this bitstreampublic String getStoredChecksum()
public void setStoredChecksum(String checksum)
checksum - The last stored checksum for this bitstream.public String getName()
public void setName(String nm)
nm - The name of this bitstream.public String getCalculatedChecksum()
public void setCalculatedChecksum(String calculatedChecksum)
calculatedChecksum - The calculatedChecksum to set.public boolean getInfoFound()
public void setInfoFound(boolean found)
found - sets infoFound.public boolean getBitstreamFound()
public void setBitstreamFound(boolean found)
found - value of bitstreamFound to set.public boolean equals(Object o)
bitstreamId.equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
bitstreamId as hashing function.hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()public void setToBeProcessed(boolean toBeProcessed)
toBeProcessed - flag from most_recent_checksum tablepublic boolean getToBeProcessed()
public String getChecksumCheckResult()
public void setChecksumCheckResult(String resultCode)
resultCode - for comparison of previous and current checksumspublic Date getProcessStartDate()
public void setProcessStartDate(Date startDate)
startDate - date to set.public Date getProcessEndDate()
public void setProcessEndDate(Date endDate)
endDate - the date to set.Copyright © 2014 DuraSpace. All Rights Reserved.