Interface InfoRecord

All Superinterfaces:
Serializable
All Known Subinterfaces:
DownloadInfoRecord, ParsingInfoRecord, ValidationInfoRecord
All Known Implementing Classes:
AbstractCacheDTO, DownloadCacheDTO, ParsingCacheDTO, ValidationCacheDTO

public interface InfoRecord extends Serializable
Describes a state of a record
  • Method Details

    • isRefreshNeeded

      boolean isRefreshNeeded()
      Gets if the refresh is needed for an entry
      Returns:
      TRUE if the refresh is needed, FALSE otherwise
    • isDesynchronized

      boolean isDesynchronized()
      Gets if the record is desynchronized
      Returns:
      TRUE if the record is desynchronized, FALSE otherwise
    • isSynchronized

      boolean isSynchronized()
      Gets if the record is synchronized
      Returns:
      TRUE if the record is synchronized, FALSE otherwise
    • isError

      boolean isError()
      Gets if the error is present for the record
      Returns:
      TRUE if the record defines an error, FALSE otherwise
    • isToBeDeleted

      boolean isToBeDeleted()
      Gets if the record shall be deleted
      Returns:
      TRUE if the record shall be deleted, FALSE otherwise
    • getStatusName

      String getStatusName()
      Gets the record's status name
      Returns:
      String
    • getLastStateTransitionTime

      Date getLastStateTransitionTime()
      Gets the last time when the state of record has been changed
      Returns:
      Date
    • getLastSuccessSynchronizationTime

      Date getLastSuccessSynchronizationTime()
      Gets the last time when the record has been synchronized
      Returns:
      Date
    • getExceptionMessage

      String getExceptionMessage()
      Gets the exception message for an error state
      Returns:
      String
    • getExceptionStackTrace

      String getExceptionStackTrace()
      Gets the exception stack trace for an error state
      Returns:
      String
    • getExceptionFirstOccurrenceTime

      Date getExceptionFirstOccurrenceTime()
      Gets the first time when the error is occurred
      Returns:
      Date
    • getExceptionLastOccurrenceTime

      Date getExceptionLastOccurrenceTime()
      Gets the last time when the error is occurred
      Returns:
      Date
    • isResultExist

      boolean isResultExist()
      Gets if a result exist under the record
      Returns:
      TRUE if the result exists, FALSE otherwise