public class ResultElementBLOBGeneric extends ResultElementBLOBBase
ResultSet
payload partsModifier and Type | Field and Description |
---|---|
static java.lang.String |
RECORD_COLLECTION_NAME
The name of the collection attribute holding the collection value
|
static java.lang.String |
RECORD_ID_NAME
The name of the id attribute holding the identifier value
|
Constructor and Description |
---|
ResultElementBLOBGeneric()
Default contructor nessecary for the framework
|
ResultElementBLOBGeneric(java.lang.String id,
java.lang.String collection,
java.lang.String payload,
java.io.InputStream content)
Creates a new
ResultElementBLOBGeneric |
Modifier and Type | Method and Description |
---|---|
void |
close()
closes underlying structures, streams
|
void |
fromXML(java.lang.String xml)
This method must be able to reconstruct the result elelement from a xml string as returned
by
ResultElementBase.toXML() |
java.io.InputStream |
getContentOfBLOB()
Retrieves the blob content
|
java.lang.String |
getPayload()
Retrieves the payload
|
void |
setContentOfBLOB(java.io.InputStream content)
sets the blob content
|
java.lang.String |
toXML()
This method must return a valid xml serialization of the result record payload.
|
getRecordAttributes, getRecordAttributes, isValid, RS_fromXML, RS_toXML, setRecordAttributes
public static final java.lang.String RECORD_ID_NAME
public static final java.lang.String RECORD_COLLECTION_NAME
public ResultElementBLOBGeneric()
public ResultElementBLOBGeneric(java.lang.String id, java.lang.String collection, java.lang.String payload, java.io.InputStream content) throws java.lang.Exception
ResultElementBLOBGeneric
id
- The value of the id. This cannot be null or an empty stringcollection
- The collection this id belongs to. This cannot be null or an empty stringpayload
- The payload of the recordcontent
- the content of the blobjava.lang.Exception
- The ResultElementBLOBGeneric
could not be createdpublic java.lang.String getPayload()
public void close() throws java.lang.Exception
ResultElementBLOBBase
close
in class ResultElementBLOBBase
java.lang.Exception
- An unrecoverable for the operation error occuredResultElementBLOBBase.close()
public void setContentOfBLOB(java.io.InputStream content) throws java.lang.Exception
ResultElementBLOBBase
setContentOfBLOB
in class ResultElementBLOBBase
content
- sets the content of the blobjava.lang.Exception
- An unrecoverable for the operation error occuredResultElementBLOBBase.setContentOfBLOB(java.io.InputStream)
public java.io.InputStream getContentOfBLOB() throws java.lang.Exception
ResultElementBLOBBase
getContentOfBLOB
in class ResultElementBLOBBase
java.lang.Exception
- An uinrecoverablee for the operation error occuredResultElementBLOBBase.getContentOfBLOB()
public java.lang.String toXML() throws java.lang.Exception
ResultElementBase
toXML
in class ResultElementBase
java.lang.Exception
- An unrecoverable for the operation error occuredResultElementBase.toXML()
public void fromXML(java.lang.String xml) throws java.lang.Exception
ResultElementBase
ResultElementBase.toXML()
fromXML
in class ResultElementBase
xml
- The serialized string to populate the insance fromjava.lang.Exception
- An unrecoverable for the operation error occuredResultElementBase.fromXML(java.lang.String)