Class DatabasePurgeReport

  • All Implemented Interfaces:
    PurgeReporting<java.lang.Long>

    public class DatabasePurgeReport
    extends java.lang.Object
    implements PurgeReporting<java.lang.Long>
    Author:
    Christopher Zell
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPurgeInformation​(java.lang.String key, java.lang.Long value)
      Adds the key value pair as report information to the current purge report.
      boolean containsReport​(java.lang.String key)
      Returns true if the key is present in the current report.
      java.util.Map<java.lang.String,​java.lang.Long> getPurgeReport()
      Returns the current purge report.
      java.lang.String getPurgeReportAsString()
      Transforms and returns the purge report to a string.
      java.lang.Long getReportValue​(java.lang.String key)
      Returns the value for the given key.
      boolean isDbContainsLicenseKey()  
      boolean isEmpty()
      Returns true if the report is empty.
      void setDbContainsLicenseKey​(boolean dbContainsLicenseKey)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DatabasePurgeReport

        public DatabasePurgeReport()
    • Method Detail

      • addPurgeInformation

        public void addPurgeInformation​(java.lang.String key,
                                        java.lang.Long value)
        Description copied from interface: PurgeReporting
        Adds the key value pair as report information to the current purge report.
        Specified by:
        addPurgeInformation in interface PurgeReporting<java.lang.Long>
        Parameters:
        key - the report key
        value - the report value
      • getPurgeReport

        public java.util.Map<java.lang.String,​java.lang.Long> getPurgeReport()
        Description copied from interface: PurgeReporting
        Returns the current purge report.
        Specified by:
        getPurgeReport in interface PurgeReporting<java.lang.Long>
        Returns:
        the purge report
      • getPurgeReportAsString

        public java.lang.String getPurgeReportAsString()
        Description copied from interface: PurgeReporting
        Transforms and returns the purge report to a string.
        Specified by:
        getPurgeReportAsString in interface PurgeReporting<java.lang.Long>
        Returns:
        the purge report as string
      • getReportValue

        public java.lang.Long getReportValue​(java.lang.String key)
        Description copied from interface: PurgeReporting
        Returns the value for the given key.
        Specified by:
        getReportValue in interface PurgeReporting<java.lang.Long>
        Parameters:
        key - the key which exist in the current report
        Returns:
        the corresponding value
      • containsReport

        public boolean containsReport​(java.lang.String key)
        Description copied from interface: PurgeReporting
        Returns true if the key is present in the current report.
        Specified by:
        containsReport in interface PurgeReporting<java.lang.Long>
        Parameters:
        key - the key
        Returns:
        true if the key is present
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: PurgeReporting
        Returns true if the report is empty.
        Specified by:
        isEmpty in interface PurgeReporting<java.lang.Long>
        Returns:
        true if the report is empty, false otherwise
      • isDbContainsLicenseKey

        public boolean isDbContainsLicenseKey()
      • setDbContainsLicenseKey

        public void setDbContainsLicenseKey​(boolean dbContainsLicenseKey)