|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.binarystorage.persistence.jpa.BinaryStorageDao
public class BinaryStorageDao
A JPA Entity to store Records.
| Constructor Summary | |
|---|---|
protected |
BinaryStorageDao()
Default Constructor, used by JPA. |
|
BinaryStorageDao(java.lang.String id,
byte[] data)
Conversion Constructor. |
|
BinaryStorageDao(java.lang.String id,
java.io.InputStream input)
Conversion Constructor. |
| Method Summary | |
|---|---|
byte[] |
getBytes()
Get the bytes of the binary object. |
java.io.ByteArrayInputStream |
getBytesAsStream()
Get the bytes of the binary object as an input stream. |
java.lang.String |
getId()
Get the id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BinaryStorageDao()
public BinaryStorageDao(java.lang.String id,
byte[] data)
id - the id of the binary datadata - the binary data
public BinaryStorageDao(java.lang.String id,
java.io.InputStream input)
throws java.io.IOException
id - the id of the datainput - InputStream of the binary data
java.io.IOException - if any error occurs| Method Detail |
|---|
public java.lang.String getId()
public byte[] getBytes()
public java.io.ByteArrayInputStream getBytesAsStream()
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||