public class ResultElementBean extends ResultElementGeneric
ResultSet payload parts treating the
payload as a java bean object.| Modifier and Type | Field and Description |
|---|---|
static java.lang.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(java.lang.String id,
java.lang.String collection,
java.lang.Object bean)
Constructs a new instance of this class
|
| Modifier and Type | Method and Description |
|---|---|
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.lang.Object |
getBean()
Retrieves the payload
|
java.lang.String |
getBeanClassName()
Retrieves the name of the bean class
|
void |
setBean(java.lang.Object bean)
Sets the bean to serialize
|
java.lang.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 java.lang.String RECORD_BEAN_NAME
public ResultElementBean()
public ResultElementBean(java.lang.String id,
java.lang.String collection,
java.lang.Object bean)
throws java.lang.Exception
id - The id of the recordcollection - Teh collection this record belongs tobean - The bean to serializejava.lang.Exception - An unrecoverable for the operaton error occuredpublic void setBean(java.lang.Object bean)
bean - The beanpublic java.lang.Object getBean()
public java.lang.String getBeanClassName()
throws java.lang.Exception
java.lang.Exception - An unrecoverable for the operaton error occuredpublic java.lang.String toXML()
throws java.lang.Exception
ResultElementBasetoXML in class ResultElementGenericjava.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 ResultElementGenericxml - The serialized string to populate the insance fromjava.lang.Exception - An unrecoverable for the operation error occuredResultElementBase.fromXML(java.lang.String)