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 -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetContentId(String contentId) voidsetContentIdHash(String contentIdHash) voidsetMetadata(String metadata) voidsetSnapshot(Snapshot snapshot) toString()Methods inherited from class org.duracloud.snapshot.db.model.BaseEntity
equals, getId, getModified, hashCode, setId, setModifiedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SnapshotContentItem
public SnapshotContentItem()
-
-
Method Details
-
getContentId
- Returns:
- the contentId
-
setContentId
- Parameters:
contentId- the contentId to set
-
getSnapshot
- Returns:
- the snapshot
-
setSnapshot
- Parameters:
snapshot- the snapshot to set
-
getMetadata
- Returns:
- the metadata
-
setMetadata
- Parameters:
metadata- the metadata to set
-
compare
- Specified by:
comparein interfaceComparator<SnapshotContentItem>
-
getContentIdHash
- Returns:
- the contentIdHash
-
setContentIdHash
- Parameters:
contentIdHash- the contentIdHash to set
-
toString
- Overrides:
toStringin classBaseEntity
-