SAP2Java 1.0.3 API

com.sap.bapi.mapper
Class ReflectHelper

java.lang.Object
  |
  +--com.sap.bapi.mapper.ReflectHelper

public class ReflectHelper
extends java.lang.Object

This class is used for mapping the java classes and R3 tables/structures/ input/output values.


Constructor Summary
ReflectHelper()
           
 
Method Summary
 java.lang.String getAlias(java.lang.String name)
          Get the name of the table based on the alias value.
 void invokeMethod(java.lang.reflect.Method m, java.lang.String type, java.lang.String value, java.lang.Object obj)
          Method invokeMethod.
 java.lang.Object mapComplexType(com.sap.mw.jco.JCO.Structure structure)
          Method mapComplexType.
 void mapInterfaces(java.lang.String fname, com.sap.mw.jco.JCO.ParameterList input, com.sap.mw.jco.JCO.ParameterList output, com.sap.mw.jco.JCO.ParameterList tables, java.lang.Object[] inp, java.lang.Object[] vals)
          Maps the Java Objects to Function module Import/Table parameters.
 void mapInterfaces(java.lang.String fname, com.sap.mw.jco.JCO.ParameterList input, com.sap.mw.jco.JCO.ParameterList output, com.sap.mw.jco.JCO.ParameterList tables, java.lang.Object[] inp, java.lang.Object[] vals, java.lang.Object[] outp)
          Maps the Java Objects to Function module Import/Export/Table parameters.
 void setAlias(java.lang.String name, java.lang.String value)
          Sets an alias name for the tables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectHelper

public ReflectHelper()
Method Detail

mapInterfaces

public void mapInterfaces(java.lang.String fname,
                          com.sap.mw.jco.JCO.ParameterList input,
                          com.sap.mw.jco.JCO.ParameterList output,
                          com.sap.mw.jco.JCO.ParameterList tables,
                          java.lang.Object[] inp,
                          java.lang.Object[] vals,
                          java.lang.Object[] outp)
                   throws MappingException
Maps the Java Objects to Function module Import/Export/Table parameters. Method mapInterfaces.

Parameters:
fname - - Function Name
input - - Input ParameterList
output - - Output ParameterList
tables - - Table ParameterList
inp - - Array of Input objects
vals - - Array of Table objects
outp - - Array of Output Objects
Throws:
MappingException

mapInterfaces

public void mapInterfaces(java.lang.String fname,
                          com.sap.mw.jco.JCO.ParameterList input,
                          com.sap.mw.jco.JCO.ParameterList output,
                          com.sap.mw.jco.JCO.ParameterList tables,
                          java.lang.Object[] inp,
                          java.lang.Object[] vals)
                   throws MappingException
Maps the Java Objects to Function module Import/Table parameters. Method mapInterfaces.

Parameters:
fname - - Function Name
input - - Input ParameterList
output - - Output ParameterList
tables - - Table ParameterList
inp - - Array of Input objects
vals - - Array of Table objects
Throws:
MappingException

invokeMethod

public void invokeMethod(java.lang.reflect.Method m,
                         java.lang.String type,
                         java.lang.String value,
                         java.lang.Object obj)
                  throws MappingException
Method invokeMethod.

Parameters:
m - - Method name
type - - Type of the parameter
value - - Value of the parameter
obj - - Object on which the method is to be invoked
Throws:
MappingException

mapComplexType

public java.lang.Object mapComplexType(com.sap.mw.jco.JCO.Structure structure)
                                throws MappingException
Method mapComplexType.

Parameters:
structure - - JCO.Structure object
Returns:
Object
Throws:
MappingException

setAlias

public void setAlias(java.lang.String name,
                     java.lang.String value)
Sets an alias name for the tables. Method setAlias.

Parameters:
name - - Name of the alias
value - - Name of the table

getAlias

public java.lang.String getAlias(java.lang.String name)
Get the name of the table based on the alias value. Method getAlias.

Parameters:
name - - Name of the alias
Returns:
String

SAP2Java 1.0.3 API

This is a partial documentation. Send comments to-- sid_bhat@hotmail.com