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:
java.util.Comparator<SnapshotHistory>,Identifiable
@Entity public class SnapshotHistory extends BaseEntity implements java.util.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)java.lang.StringgetHistory()java.util.DategetHistoryDate()SnapshotgetSnapshot()voidsetHistory(java.lang.String history)voidsetHistoryDate(java.util.Date historyDate)voidsetSnapshot(Snapshot snapshot)java.lang.StringtoString()-
Methods inherited from class org.duracloud.snapshot.db.model.BaseEntity
equals, getId, getModified, hashCode, setId, setModified
-
-
-
-
Method Detail
-
getHistoryDate
public java.util.Date getHistoryDate()
- Returns:
- the historyDate
-
setHistoryDate
public void setHistoryDate(java.util.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 java.lang.String getHistory()
- Returns:
- the history
-
setHistory
public void setHistory(java.lang.String history)
- Parameters:
history- the history to set
-
compare
public int compare(SnapshotHistory o1, SnapshotHistory o2)
- Specified by:
comparein interfacejava.util.Comparator<SnapshotHistory>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBaseEntity
-
-