Class Metadata

java.lang.Object
org.deltava.service.navdata.Metadata
All Implemented Interfaces:
Serializable, Cacheable

class Metadata extends Object implements Cacheable
A bean to store Gate/Terminal Route archive metadata.
Since:
10.0
Version:
11.1
Author:
Luke
  • Constructor Details

    • Metadata

      Metadata(String fileName, String hash, String hashType)
      Creates the metadata for a file.
      Parameters:
      fileName - the file name
      hash - the archive hash
      hashType - the hash algorithm
  • Method Details

    • getFileName

      public String getFileName()
      Returns the file name.
      Returns:
      the file name
    • getHash

      public String getHash()
      Returns the archive hash.
      Returns:
      the hash value
    • getHashType

      public String getHashType()
      Returns the archive hash algorithm.
      Returns:
      the algorithm ame
    • getAirportCount

      public int getAirportCount()
      Returns the number of Airports in the archive.
      Returns:
      the number of Airports
    • getCreatedOn

      public Instant getCreatedOn()
      Returns the archive creation date.
      Returns:
      the creation date/time
    • setAirportCount

      public void setAirportCount(int cnt)
      Updates the number of Airports in the archive.
      Parameters:
      cnt - the number of Airports
    • cacheKey

      public Object cacheKey()
      Description copied from interface: Cacheable
      Returns the cache key for this object. Caches call this method when adding the object.
      Specified by:
      cacheKey in interface Cacheable
      Returns:
      the cache key for the object