Package org.duracloud.snapshot.db.model
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
-
-
Field Summary
-
Fields inherited from class org.duracloud.snapshot.db.model.BaseEntity
id
-
-
Constructor Summary
Constructors Constructor Description SnapshotHistory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(SnapshotHistory o1, SnapshotHistory o2)StringgetHistory()DategetHistoryDate()SnapshotgetSnapshot()voidsetHistory(String history)voidsetHistoryDate(Date historyDate)voidsetSnapshot(Snapshot snapshot)StringtoString()-
Methods inherited from class org.duracloud.snapshot.db.model.BaseEntity
equals, getId, getModified, hashCode, setId, setModified
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
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:
comparein interfaceComparator<SnapshotHistory>
-
toString
public String toString()
- Overrides:
toStringin classBaseEntity
-
-