|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Converter<J,S>
Implementation of a data type converter. Converts on-the-fly from SAP data type to any Java type. The corresponding field in the BAPI class can thus be independent of the SAP type. E .g., a SAP character type which represents a boolean (since ABAP does not have a boolean data type) can be converted to a Java boolean. To utilize a Converter, annotate the BAPI class field using the @Convert annotation.
Method Summary | |
---|---|
J |
convertToJava(S sapValue)
Convert the SAP value, as it is returned by the underlying interfacing technology (e.g. the SAP Java Connector, JCo) to the Java data type of the corresponding BAPI class field. |
S |
convertToSap(J javaValue)
Convert the Java value of the corresponding BAPI class field to the data type as it is expected by the underlying interfacing technology (e.g. the SAP Java Connector, JCo). |
Method Detail |
---|
J convertToJava(S sapValue) throws ConversionException
sapValue
- The object which is returned by the SAP interface
ConversionException
- if the value can not be convertedS convertToSap(J javaValue) throws ConversionException
javaValue
- The value of the BAPI class field
ConversionException
- if the value can not be converted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |