Class SnapshotHistory

java.lang.Object
org.duracloud.snapshot.db.model.BaseEntity
org.duracloud.snapshot.db.model.SnapshotHistory
All Implemented Interfaces:
Comparator<SnapshotHistory>, Identifiable

@Entity public class SnapshotHistory extends BaseEntity implements Comparator<SnapshotHistory>
Author:
Gad Krumholz Date: May 19, 2015
  • Constructor Details

    • SnapshotHistory

      public SnapshotHistory()
  • Method Details

    • getHistoryDate

      public Date getHistoryDate()
      Returns:
      the historyDate
    • setHistoryDate

      public void setHistoryDate(Date historyDate)
      Parameters:
      historyDate - - the historyDate to set
    • getSnapshot

      public Snapshot getSnapshot()
      Returns:
      the snapshot
    • setSnapshot

      public void setSnapshot(Snapshot snapshot)
      Parameters:
      snapshot - the snapshot to set
    • getHistory

      public String getHistory()
      Returns:
      the history
    • setHistory

      public void setHistory(String history)
      Parameters:
      history - the history to set
    • compare

      public int compare(SnapshotHistory o1, SnapshotHistory o2)
      Specified by:
      compare in interface Comparator<SnapshotHistory>
    • toString

      public String toString()
      Overrides:
      toString in class BaseEntity