Class ObjectShelfEntry
java.lang.Object
uk.ac.diamond.daq.persistence.jythonshelf.entity.ObjectShelfEntry
* Java persistence API entity used by LocalJythonShelf.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()intgetId()getShelf()voidsetData(byte[] toStore) voidsetId(int id) Will be generated automatically, no need to use this method explicitely.voidsetKeyName(String key) voidsetShelf(ObjectShelf shelf)
-
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
- Returns:
- Returns the shelf.
-
setShelf
- Parameters:
shelf- The shelf this entry is to join.
-
getKeyName
- Returns:
- Returns the key name.
-
setKeyName
- 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.
-