Klasse ProductFile


@Entity public class ProductFile extends PersistentObject
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.
Autor:
Dr. Thomas Bassler
  • Konstruktordetails

    • ProductFile

      public ProductFile()
  • Methodendetails

    • getProduct

      public Product getProduct()
      Gets the associated product
      Gibt zurück:
      the product
    • setProduct

      public void setProduct(Product product)
      Sets the associated product
      Parameter:
      product - the product to set
    • getProcessingFacility

      public ProcessingFacility getProcessingFacility()
      Gets the associated processing facility
      Gibt zurück:
      the processingFacility
    • setProcessingFacility

      public void setProcessingFacility(ProcessingFacility processingFacility)
      Sets the associated processing facility
      Parameter:
      processingFacility - the processingFacility to set
    • getProductFileName

      public String getProductFileName()
      Gets the name of the data file
      Gibt zurück:
      the productFileName
    • setProductFileName

      public void setProductFileName(String productFileName)
      Sets the name of the data file
      Parameter:
      productFileName - the productFileName to set
    • getAuxFileNames

      public Set<String> getAuxFileNames()
      Gets the set of auxiliary file names
      Gibt zurück:
      the auxFileNames
    • setAuxFileNames

      public void setAuxFileNames(Set<String> auxFileNames)
      Sets the set of auxiliary file names
      Parameter:
      auxFileNames - the auxFileNames to set
    • getFilePath

      public String getFilePath()
      Gets the file path for data file and auxiliary files
      Gibt zurück:
      the filePath
    • setFilePath

      public void setFilePath(String filePath)
      Sets the file path for data file and auxiliary files (path name must be consistent with storage type)
      Parameter:
      filePath - the filePath to set
    • getStorageType

      public StorageType getStorageType()
      Gets the type of storage used at the processing facility
      Gibt zurück:
      the storageType
    • setStorageType

      public void setStorageType(StorageType storageType)
      Sets the type of storage used at the processing facility
      Parameter:
      storageType - the storageType to set
    • getFileSize

      public Long getFileSize()
      Gets the size in bytes of the primary product file
      Gibt zurück:
      the file size
    • setFileSize

      public void setFileSize(Long fileSize)
      Sets the size in bytes of the primary product file
      Parameter:
      fileSize - the file size to set
    • getChecksum

      public String getChecksum()
      Gets the MD5 checksum for the primary product file
      Gibt zurück:
      the checksum string
    • setChecksum

      public void setChecksum(String checksum)
      Sets the MD5 checksum for the primary product file
      Parameter:
      checksum - the checksum to set
    • getChecksumTime

      public Instant getChecksumTime()
      Gets the computation time for the product file checksum
      Gibt zurück:
      the checksum computation time
    • setChecksumTime

      public void setChecksumTime(Instant checksumTime)
      Sets the computation time for the product file checksum
      Parameter:
      checksumTime - the checksumTime to set
    • getZipFileName

      public String getZipFileName()
      Gets the name of the ZIP archive
      Gibt zurück:
      the ZIP archive file name or null, if no ZIP archive exists
    • setZipFileName

      public void setZipFileName(String zipFileName)
      Sets the name of the ZIP archive
      Parameter:
      zipFileName - the ZIP archive file name to set (may be null)
    • getZipFileSize

      public Long getZipFileSize()
      Gets the size of the ZIP archive in bytes
      Gibt zurück:
      the ZIP archive file size or null, if no ZIP archive exists
    • setZipFileSize

      public void setZipFileSize(Long zipFileSize)
      Sets the size of the ZIP archive in bytes
      Parameter:
      zipFileSize - the ZIP archive file size to set
    • getZipChecksum

      public String getZipChecksum()
      Gets the MD5 checksum of the ZIP archive
      Gibt zurück:
      the ZIP archive checksum or null, if no ZIP archive exists
    • setZipChecksum

      public void setZipChecksum(String zipChecksum)
      Sets the MD5 checksum of the ZIP archive
      Parameter:
      zipChecksum - the ZIP archive checksum to set (may be null)
    • getZipChecksumTime

      public Instant getZipChecksumTime()
      Gets the computation time for the ZIP archive file checksum
      Gibt zurück:
      the checksum computation time or null, if no ZIP archive exists
    • setZipChecksumTime

      public void setZipChecksumTime(Instant zipChecksumTime)
      Sets the computation time for the ZIP archive file checksum
      Parameter:
      zipChecksumTime - the checksum computation time to set (may be null)
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse PersistentObject
    • equals

      public boolean equals(Object obj)
      Beschreibung aus Klasse kopiert: PersistentObject
      Test equality of persistent objects based on their unique ID.
      Setzt außer Kraft:
      equals in Klasse PersistentObject
      Parameter:
      obj - the object to compare this object to
      Gibt zurück:
      true, if obj is a persistent object and has the same ID, false otherwise
      Siehe auch:
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object