public class AddFirstReturnToMetadata extends ReturnParserImpl
No parsing is done of the fields, they are added as is. The metadata key corresponds to the field name in the structure with the configured prefix
In the adapter configuration file this class is aliased as sapjco3-bapireturn-add-first-to-metadata which is the preferred alternative to the fully qualified classname when building your configuration.
BAPIRET2_FIELD, BAPIRET2_ID, BAPIRET2_LOG_MSG_NO, BAPIRET2_LOG_NO, BAPIRET2_MESSAGE, BAPIRET2_NUMBER, BAPIRET2_PARAMETER, BAPIRET2_ROW, BAPIRET2_TYPE, BAPIRETURN_CODE, BAPIRETURN_LOG_MSG_NO, BAPIRETURN_LOG_NO, BAPIRETURN_MESSAGE, BAPIRETURN_TYPE, BAPIRETURN1_ID, BAPIRETURN1_LOG_MSG_NO, BAPIRETURN1_LOG_NO, BAPIRETURN1_MESSAGE, BAPIRETURN1_NUMBER, BAPIRETURN1_TYPE
Constructor and Description |
---|
AddFirstReturnToMetadata() |
AddFirstReturnToMetadata(java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrefix() |
void |
handle(com.sap.conn.jco.JCoStructure returnStruct,
AdaptrisMessage msg)
Handle the return structure in some fashion.
|
void |
handle(com.sap.conn.jco.JCoTable returnTable,
AdaptrisMessage msg)
Handle the return structure in some fashion.
|
void |
setPrefix(java.lang.String prefix)
Set the prefix for each metadata element generated.
|
isFailure, parseType
public AddFirstReturnToMetadata()
public AddFirstReturnToMetadata(java.lang.String prefix)
public void handle(com.sap.conn.jco.JCoStructure returnStruct, AdaptrisMessage msg) throws ProduceException
BapiReturnParser
returnStruct
- the JCoStructure containing the BAPIRETURNmsg
- the AdaptrisMessage.ProduceException
- if it should be treated as a ProduceExceptionpublic void handle(com.sap.conn.jco.JCoTable returnTable, AdaptrisMessage msg) throws ProduceException
BapiReturnParser
returnTable
- the JCoTable containing the BAPIRETURNmsg
- the AdaptrisMessage.ProduceException
- if it should be treated as a ProduceExceptionpublic java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix
- the prefix, default is RETURN_
Copyright Adaptris