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
  • Constructor Details

    • SnapshotContentItem

      public SnapshotContentItem()
  • Method Details

    • 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:
      compare in interface Comparator<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:
      toString in class BaseEntity