Package de.dlr.proseo.model
Class ProductFile
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.ProductFile
The data file and pertinent auxiliary files for a product at a given processing facility. Each product has at most one
data file representation at each of the processing facilities.
- Author:
- Dr. Thomas Bassler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest equality of persistent objects based on their unique ID.Gets the set of auxiliary file namesGets the MD5 checksum for the primary product fileGets the computation time for the product file checksumGets the file path for data file and auxiliary filesGets the size in bytes of the primary product fileGets the associated processing facilityGets the associated productGets the name of the data fileGets the type of storage used at the processing facilityGets the MD5 checksum of the ZIP archiveGets the computation time for the ZIP archive file checksumGets the name of the ZIP archiveGets the size of the ZIP archive in bytesinthashCode()voidsetAuxFileNames(Set<String> auxFileNames) Sets the set of auxiliary file namesvoidsetChecksum(String checksum) Sets the MD5 checksum for the primary product filevoidsetChecksumTime(Instant checksumTime) Sets the computation time for the product file checksumvoidsetFilePath(String filePath) Sets the file path for data file and auxiliary files (path name must be consistent with storage type)voidsetFileSize(Long fileSize) Sets the size in bytes of the primary product filevoidsetProcessingFacility(ProcessingFacility processingFacility) Sets the associated processing facilityvoidsetProduct(Product product) Sets the associated productvoidsetProductFileName(String productFileName) Sets the name of the data filevoidsetStorageType(StorageType storageType) Sets the type of storage used at the processing facilityvoidsetZipChecksum(String zipChecksum) Sets the MD5 checksum of the ZIP archivevoidsetZipChecksumTime(Instant zipChecksumTime) Sets the computation time for the ZIP archive file checksumvoidsetZipFileName(String zipFileName) Sets the name of the ZIP archivevoidsetZipFileSize(Long zipFileSize) Sets the size of the ZIP archive in bytestoString()Methods inherited from class de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Constructor Details
-
ProductFile
public ProductFile()
-
-
Method Details
-
getProduct
Gets the associated product- Returns:
- the product
-
setProduct
Sets the associated product- Parameters:
product- the product to set
-
getProcessingFacility
Gets the associated processing facility- Returns:
- the processingFacility
-
setProcessingFacility
Sets the associated processing facility- Parameters:
processingFacility- the processingFacility to set
-
getProductFileName
Gets the name of the data file- Returns:
- the productFileName
-
setProductFileName
Sets the name of the data file- Parameters:
productFileName- the productFileName to set
-
getAuxFileNames
Gets the set of auxiliary file names- Returns:
- the auxFileNames
-
setAuxFileNames
Sets the set of auxiliary file names- Parameters:
auxFileNames- the auxFileNames to set
-
getFilePath
Gets the file path for data file and auxiliary files- Returns:
- the filePath
-
setFilePath
Sets the file path for data file and auxiliary files (path name must be consistent with storage type)- Parameters:
filePath- the filePath to set
-
getStorageType
Gets the type of storage used at the processing facility- Returns:
- the storageType
-
setStorageType
Sets the type of storage used at the processing facility- Parameters:
storageType- the storageType to set
-
getFileSize
Gets the size in bytes of the primary product file- Returns:
- the file size
-
setFileSize
Sets the size in bytes of the primary product file- Parameters:
fileSize- the file size to set
-
getChecksum
Gets the MD5 checksum for the primary product file- Returns:
- the checksum string
-
setChecksum
Sets the MD5 checksum for the primary product file- Parameters:
checksum- the checksum to set
-
getChecksumTime
Gets the computation time for the product file checksum- Returns:
- the checksum computation time
-
setChecksumTime
Sets the computation time for the product file checksum- Parameters:
checksumTime- the checksumTime to set
-
getZipFileName
Gets the name of the ZIP archive- Returns:
- the ZIP archive file name or null, if no ZIP archive exists
-
setZipFileName
Sets the name of the ZIP archive- Parameters:
zipFileName- the ZIP archive file name to set (may be null)
-
getZipFileSize
Gets the size of the ZIP archive in bytes- Returns:
- the ZIP archive file size or null, if no ZIP archive exists
-
setZipFileSize
Sets the size of the ZIP archive in bytes- Parameters:
zipFileSize- the ZIP archive file size to set
-
getZipChecksum
Gets the MD5 checksum of the ZIP archive- Returns:
- the ZIP archive checksum or null, if no ZIP archive exists
-
setZipChecksum
Sets the MD5 checksum of the ZIP archive- Parameters:
zipChecksum- the ZIP archive checksum to set (may be null)
-
getZipChecksumTime
Gets the computation time for the ZIP archive file checksum- Returns:
- the checksum computation time or null, if no ZIP archive exists
-
setZipChecksumTime
Sets the computation time for the ZIP archive file checksum- Parameters:
zipChecksumTime- the checksum computation time to set (may be null)
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
Description copied from class:PersistentObjectTest equality of persistent objects based on their unique ID.- Overrides:
equalsin classPersistentObject- Parameters:
obj- the object to compare this object to- Returns:
- true, if obj is a persistent object and has the same ID, false otherwise
- See Also:
-
toString
-