public class ResultElementBean extends ResultElementGeneric
ResultSet payload parts treating the
payload as a java bean object.| Modifier and Type | Field and Description |
|---|---|
static String |
RECORD_BEAN_NAME
The name of the searialized bean
|
RECORD_COLLECTION_NAME, RECORD_ID_NAME, RECORD_RANK_NAME| Constructor and Description |
|---|
ResultElementBean()
Default contructor nessecary for the framework
|
ResultElementBean(String id,
String collection,
Object bean)
Constructs a new instance of this class
|
| Modifier and Type | Method and Description |
|---|---|
void |
fromXML(String xml)
This method must be able to reconstruct the result elelement from a xml string as returned
by
ResultElementBase.toXML() |
Object |
getBean()
Retrieves the payload
|
String |
getBeanClassName()
Retrieves the name of the bean class
|
void |
setBean(Object bean)
Sets the bean to serialize
|
String |
toXML()
This method must return a valid xml serialization of the result record payload.
|
extractValue, getPayload, mergegetRecordAttributes, getRecordAttributes, isValid, RS_fromXML, RS_toXML, setRecordAttributespublic static String RECORD_BEAN_NAME
public ResultElementBean()
public ResultElementBean(String id, String collection, Object bean) throws Exception
id - The id of the recordcollection - Teh collection this record belongs tobean - The bean to serializeException - An unrecoverable for the operaton error occuredpublic void setBean(Object bean)
bean - The beanpublic Object getBean()
public String getBeanClassName() throws Exception
Exception - An unrecoverable for the operaton error occuredpublic String toXML() throws Exception
ResultElementBasetoXML in class ResultElementGenericException - An unrecoverable for the operation error occuredResultElementBase.toXML()public void fromXML(String xml) throws Exception
ResultElementBaseResultElementBase.toXML()fromXML in class ResultElementGenericxml - The serialized string to populate the insance fromException - An unrecoverable for the operation error occuredResultElementBase.fromXML(java.lang.String)Copyright © 2017. All Rights Reserved.