StructuredRecord class needs to be implemented by adapters
when the data exchanged with backend application can be well-defined.
Extend foundation class com.ibm.j2ca.base.WBIStructuredRecord and
implement the associated methods.
Initialize input method
This method resolves the type of the metadata if it is
a JavaBeans or SDO type
and initializes the metadata interfaces appropriately. public
void initializeInput(DataExchangeFactory dataBinding, Object metadata)
throws DESPIException .
Initialize output method
public void initializeOutput(DataExchangeFactory dataBinding,Object
metadata)throws DESPIException.
Set managed connection method
This method passes the ManagedConnection handle
to the record implementation, allowing the record to get access to
the physical connection to the backend application to perform processing.public
void setManagedConnection( ManagedConnection managedConnection) throws
ResourceException
Get next method
The client application invokes this method to retrieve
data through the adapter. For outbound processing, this method is
used to get the response data back from the adapter. For inbound
processing, this method is called to get the inbound data from
the adapter.public boolean getNext(boolean copyValues) throws
DESPIException
Clone method
Use this method to copy property values from the record
instance to a newly created instance.public Object clone ()
Close method
This method provides cleanup for the getNext method.public
void close().
Extract method
Use the public void extract(String xpath) throws
DESPIException to retrieve individual field values from backend
object representation.