public class ResultElementBLOBGeneric extends ResultElementBLOBBase
ResultSet payload parts| Modifier 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, setRecordAttributespublic 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
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 blobjava.lang.Exception - The ResultElementBLOBGeneric could not be createdpublic java.lang.String getPayload()
public void close()
throws java.lang.Exception
ResultElementBLOBBaseclose in class ResultElementBLOBBasejava.lang.Exception - An unrecoverable for the operation error occuredResultElementBLOBBase.close()public void setContentOfBLOB(java.io.InputStream content)
throws java.lang.Exception
ResultElementBLOBBasesetContentOfBLOB in class ResultElementBLOBBasecontent - 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
ResultElementBLOBBasegetContentOfBLOB in class ResultElementBLOBBasejava.lang.Exception - An uinrecoverablee for the operation error occuredResultElementBLOBBase.getContentOfBLOB()public java.lang.String toXML()
throws java.lang.Exception
ResultElementBasetoXML in class ResultElementBasejava.lang.Exception - An unrecoverable for the operation error occuredResultElementBase.toXML()public void fromXML(java.lang.String xml)
throws java.lang.Exception
ResultElementBaseResultElementBase.toXML()fromXML in class ResultElementBasexml - The serialized string to populate the insance fromjava.lang.Exception - An unrecoverable for the operation error occuredResultElementBase.fromXML(java.lang.String)