Class ItemRecord

java.lang.Object
nl.knaw.dans.layerstore.ItemRecord

@Entity(name="listing_record") public class ItemRecord extends Object
A record in the database that represents a file or directory in a layer.
  • Constructor Details

    • ItemRecord

      public ItemRecord()
    • ItemRecord

      public ItemRecord(Long generatedId, Long layerId, String path, Item.Type type, byte[] content)
  • Method Details

    • toItem

      public Item toItem()
    • builder

      public static ItemRecord.ItemRecordBuilder builder()
    • getGeneratedId

      public Long getGeneratedId()
    • getLayerId

      public Long getLayerId()
    • getPath

      public String getPath()
    • getType

      public Item.Type getType()
    • getContent

      public byte[] getContent()
    • setGeneratedId

      public void setGeneratedId(Long generatedId)
    • setLayerId

      public void setLayerId(Long layerId)
    • setPath

      public void setPath(String path)
    • setType

      public void setType(Item.Type type)
    • setContent

      public void setContent(byte[] content)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object