Class ObjectShelfEntry

java.lang.Object
uk.ac.diamond.daq.persistence.jythonshelf.entity.ObjectShelfEntry

public class ObjectShelfEntry extends Object
* Java persistence API entity used by LocalJythonShelf.
  • Constructor Details

    • ObjectShelfEntry

      public ObjectShelfEntry()
  • Method Details

    • getId

      public int getId()
      Returns:
      Returns the id.
    • setId

      public void setId(int id)
      Will be generated automatically, no need to use this method explicitely.
      Parameters:
      id - The id to set.
    • getShelf

      public ObjectShelf getShelf()
      Returns:
      Returns the shelf.
    • setShelf

      public void setShelf(ObjectShelf shelf)
      Parameters:
      shelf - The shelf this entry is to join.
    • getKeyName

      public String getKeyName()
      Returns:
      Returns the key name.
    • setKeyName

      public void setKeyName(String key)
      Parameters:
      key - The key name to set.
    • getData

      public byte[] getData()
      Returns:
      The data
    • setData

      public void setData(byte[] toStore)
      Parameters:
      toStore - a byte array to store. Most likely from a serialized stream.