public class ResultElementBLOBGeneric extends ResultElementBLOBBase
ResultSet payload parts| Modifier and Type | Field and Description |
|---|---|
static String |
RECORD_COLLECTION_NAME
The name of the collection attribute holding the collection value
|
static 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(String id,
String collection,
String payload,
InputStream content)
Creates a new
ResultElementBLOBGeneric |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes underlying structures, streams
|
void |
fromXML(String xml)
This method must be able to reconstruct the result elelement from a xml string as returned
by
ResultElementBase.toXML() |
InputStream |
getContentOfBLOB()
Retrieves the blob content
|
String |
getPayload()
Retrieves the payload
|
void |
setContentOfBLOB(InputStream content)
sets the blob content
|
String |
toXML()
This method must return a valid xml serialization of the result record payload.
|
getRecordAttributes, getRecordAttributes, isValid, RS_fromXML, RS_toXML, setRecordAttributespublic static final String RECORD_ID_NAME
public static final String RECORD_COLLECTION_NAME
public ResultElementBLOBGeneric()
public ResultElementBLOBGeneric(String id, String collection, String payload, InputStream content) throws Exception
ResultElementBLOBGenericid - 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 blobException - The ResultElementBLOBGeneric could not be createdpublic String getPayload()
public void close()
throws Exception
ResultElementBLOBBaseclose in class ResultElementBLOBBaseException - An unrecoverable for the operation error occuredResultElementBLOBBase.close()public void setContentOfBLOB(InputStream content) throws Exception
ResultElementBLOBBasesetContentOfBLOB in class ResultElementBLOBBasecontent - sets the content of the blobException - An unrecoverable for the operation error occuredResultElementBLOBBase.setContentOfBLOB(java.io.InputStream)public InputStream getContentOfBLOB() throws Exception
ResultElementBLOBBasegetContentOfBLOB in class ResultElementBLOBBaseException - An uinrecoverablee for the operation error occuredResultElementBLOBBase.getContentOfBLOB()public String toXML() throws Exception
ResultElementBasetoXML in class ResultElementBaseException - An unrecoverable for the operation error occuredResultElementBase.toXML()public void fromXML(String xml) throws Exception
ResultElementBaseResultElementBase.toXML()fromXML in class ResultElementBasexml - The serialized string to populate the insance fromException - An unrecoverable for the operation error occuredResultElementBase.fromXML(java.lang.String)Copyright © 2016. All Rights Reserved.