Package org.duracloud.snapshot.db.model
Class SnapshotContentItem
- java.lang.Object
-
- org.duracloud.snapshot.db.model.BaseEntity
-
- org.duracloud.snapshot.db.model.SnapshotContentItem
-
- All Implemented Interfaces:
Comparator<SnapshotContentItem>,Identifiable
@Entity public class SnapshotContentItem extends BaseEntity implements Comparator<SnapshotContentItem>
- Author:
- Daniel Bernstein Date: Jul 21, 2014
-
-
Field Summary
-
Fields inherited from class org.duracloud.snapshot.db.model.BaseEntity
id
-
-
Constructor Summary
Constructors Constructor Description SnapshotContentItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(SnapshotContentItem o1, SnapshotContentItem o2)StringgetContentId()StringgetContentIdHash()StringgetMetadata()SnapshotgetSnapshot()voidsetContentId(String contentId)voidsetContentIdHash(String contentIdHash)voidsetMetadata(String metadata)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
-
getContentId
public String getContentId()
- Returns:
- the contentId
-
setContentId
public void setContentId(String contentId)
- Parameters:
contentId- the contentId to set
-
getSnapshot
public Snapshot getSnapshot()
- Returns:
- the snapshot
-
setSnapshot
public void setSnapshot(Snapshot snapshot)
- Parameters:
snapshot- the snapshot to set
-
getMetadata
public String getMetadata()
- Returns:
- the metadata
-
setMetadata
public void setMetadata(String metadata)
- Parameters:
metadata- the metadata to set
-
compare
public int compare(SnapshotContentItem o1, SnapshotContentItem o2)
- Specified by:
comparein interfaceComparator<SnapshotContentItem>
-
getContentIdHash
public String getContentIdHash()
- Returns:
- the contentIdHash
-
setContentIdHash
public void setContentIdHash(String contentIdHash)
- Parameters:
contentIdHash- the contentIdHash to set
-
toString
public String toString()
- Overrides:
toStringin classBaseEntity
-
-