|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.DSENotifier | +--com.ibm.dse.base.Service | +--com.ibm.dse.services.sap.SAPService
The SAPService class is a service that allows a Java application to communicate with a SAP system and execute any SAP System RFC module. It uses the Java proxy beans for the RFC modules, which are generated by the SAP Access Builder.
Field Summary | |
protected boolean |
checkAuthorization
Keeps the checkAuthorization argument needed to set up the connection to the SAP R/3 System. |
protected java.lang.String |
client
Keeps the client argument needed to set up the connection to the SAP R/3 System. |
protected int |
codePage
Keeps the codePage argument needed to set up the connection to the SAP R/3 System. |
protected java.lang.String |
destination
Keeps the destination argument needed to set up the connection to the SAP R/3 System. |
protected java.lang.String |
gatewayHost
Keeps the gatewayHost argument needed to set up the connection to the SAP R/3 System. |
protected java.lang.String |
gatewayService
Keeps the gatewayService argument needed to set up the connection to the SAP R/3 System. |
protected java.lang.String |
groupName
Keeps the groupName argument needed to set up the connection to the SAP R/3 System. |
protected java.lang.String |
hostName
Keeps the hostName argument needed to set up the connection to the SAP R/3 System. |
protected java.lang.String |
jpbPackage
Keeps the package where the Java proxy beans generated by the SAP Access Builder have been added. |
protected java.lang.String |
language
Keeps the language argument needed to set up the connection to the SAP R/3 System. |
protected boolean |
loadBalancing
Keeps the loadBalancing argument needed to set up the connection to the SAP R/3 System. |
protected java.lang.String |
msgServer
Keeps the msgServer argument needed to set up the connection to the SAP R/3 System. |
protected int |
rfcMode
Keeps the rfcMode argument needed to set up the connection to the SAP R/3 System. |
protected java.lang.String |
systemName
Keeps the systemName argument needed to set up the connection to the SAP R/3 System. |
protected int |
systemNo
Keeps the systemNo argument needed to set up the connection to the SAP R/3 System. |
Fields inherited from class com.ibm.dse.base.Service |
externalizer |
Fields inherited from class com.ibm.dse.base.DSENotifier |
handlersList,
name |
Constructor Summary | |
SAPService()
This constructor creates a SAPService object. |
|
SAPService(java.lang.String aName)
This constructor creates a SAPService object. |
Method Summary | |
void |
callRFCModule(java.lang.String bapiClassName,
Hashtable importParams)
Calls the RFC module named bapiClassName. |
protected java.lang.String |
constructFieldName(java.lang.String fieldName)
Constructs the name of a RFC proxy bean attribute from the name that is externalized in the services SGML file. |
protected java.lang.String |
constructGetterName(java.lang.String exportParamName)
Constructs the getter name for the export parameter named exportParamName. |
protected java.lang.String |
constructGetterNameForField(java.lang.String newFieldName)
Constructs the getter name for a RFC proxy bean attribute identified by newFieldName. |
protected java.lang.String |
constructSetterName(java.lang.String exportParamName)
Constructs the setter name for the export parameter named exportParamName. |
void |
establishConnection(Hashtable connectionParams)
Creates a connection to the SAP R/3 System with the properties defined in the services SGML file. |
void |
execute(java.lang.String rfcModuleName,
Hashtable importParams,
Context aContext)
Sets the operationContext service variable, opens the connection to the SAP R/3 System, and starts the RFC module execution. |
boolean |
getCheckAuthorization()
Returns the checkAuthorization attribute value. |
java.lang.String |
getClient()
Returns the client attribute value. |
int |
getCodePage()
Returns the codePage attribute value. |
java.lang.String |
getDestination()
Returns the destination attribute value. |
protected void |
getExportParameterString(java.lang.Class myBapiClass,
java.lang.String exportParamName,
java.lang.Object exportParam,
java.lang.Object myFunction)
Gets the String export parameter identified as exportParamName that is in the SAP System response and puts it in the operation context. |
protected void |
getExportParameterStructure(java.lang.Class myBapiClass,
java.lang.String exportParamName,
java.lang.Object exportParam,
java.lang.Object myFunction)
Gets the Structure export parameter identified as exportParamName that is in the SAP System response and puts it in the operation context. |
protected void |
getExportParameterTable(java.lang.Class myBapiClass,
java.lang.String exportParamName,
java.lang.Object exportParam,
java.lang.Object myFunction)
Gets the Table export parameter identified as exportParamName that is in the SAP System response and puts it in the operation context. |
java.lang.String |
getGatewayHost()
Returns the gatewayHost attribute value. |
java.lang.String |
getGatewayService()
Returns the gatewayService attribute value. |
java.lang.String |
getGroupName()
Returns the groupName attribute value. |
java.lang.String |
getHostName()
Returns the hostName attribute value. |
java.lang.String |
getJpbPackage()
Returns the jpbPackage attribute value. |
java.lang.String |
getLanguage()
Returns the language attribute value. |
boolean |
getLoadBalancing()
Returns the loadBalancing attribute value. |
java.lang.String |
getMsgServer()
Returns the msgServer attribute value. |
Hashtable |
getParamsTable()
Returns the paramsTable attribute value. |
int |
getRfcMode()
Returns the rfcMode attribute value. |
java.lang.String |
getSystemName()
Returns the systemName attribute value. |
int |
getSystemNo()
Returns the systemNo attribute value. |
java.lang.Object |
initializeFrom(Tag aTag)
Used by the SAPService service externalizer to set the instance attributes as defined in the SGML file. |
java.lang.Object |
initializeMethodFrom(Tag aTag)
Used by the SAPService service externalizer to create the contents of the paramsTable instance attribute. |
void |
setCheckAuthorization(boolean b)
Sets the checkAuthorization attribute to the boolean provided as an argument. |
void |
setClient(java.lang.String s)
Sets the client attribute to the string provided as an argument. |
void |
setCodePage(int i)
Sets the codePage attribute to the integer provided as an argument. |
void |
setDestination(java.lang.String s)
Sets the destination attribute to the string provided as an argument. |
void |
setGatewayHost(java.lang.String s)
Sets the gatewayHost attribute to the string provided as an argument. |
void |
setGatewayService(java.lang.String s)
Sets the gatewayService attribute to the string provided as an argument. |
void |
setGroupName(java.lang.String s)
Sets the groupName attribute to the string provided as an argument. |
void |
setHostName(java.lang.String s)
Sets the hostname attribute to the string provided as an argument. |
void |
setImportParameterDate(java.lang.Class myBapiClass,
java.lang.Object myFunction,
java.lang.String importParamName,
java.util.Date importParamValue)
Sets a Date import parameter value using the setter method generated by the SAP Access Builder for it. |
protected void |
setImportParameters(java.lang.String bapiClassName,
java.lang.Class myBapiClass,
java.lang.Object myFunction,
Hashtable tableImportParams)
Sets the import parameters using the setter methods generated by the SAP Access Builder for them. |
void |
setImportParameterString(java.lang.Class myBapiClass,
java.lang.Object myFunction,
java.lang.String importParamName,
java.lang.String importParamValue)
Sets a String import parameter value using the setter method generated by the SAP Access Builder for it. |
void |
setImportParameterStructure(java.lang.Class myBapiClass,
java.lang.Object myFunction,
java.lang.String importParamName,
java.lang.String importParamType,
java.util.Hashtable structureHashtable)
Sets a Structure import parameter value using the setter method generated by the SAP Access Builder for it. |
void |
setImportParameterTable(java.lang.Class myBapiClass,
java.lang.Object myFunction,
java.lang.String importParamName,
java.lang.String importParamType,
java.util.Vector rowsVector)
Sets a Table import parameter value using the setter method generated by the SAP Access Builder for it. |
void |
setJpbPackage(java.lang.String s)
Sets the jpbPackage attribute to the string provided as an argument. |
void |
setLanguage(java.lang.String s)
Sets the language attribute to the string provided as an argument. |
void |
setLoadBalancing(boolean b)
Sets the loadBalancing attribute to the boolean provided as an argument. |
SAPMethod |
setMethodExportParamsFrom(Tag aTag,
SAPMethod aSAPMethod)
Sets the export parameters information of a BAPI function by reading it from the services SGML file. |
SAPMethod |
setMethodImportParamsFrom(Tag aTag,
SAPMethod aSAPMethod)
Sets the import parameters information of a BAPI function by reading it from the services SGML file. |
void |
setMsgServer(java.lang.String s)
Sets the msgServer attribute to the string provided as an argument. |
void |
setParamsClassName(java.lang.String s)
Sets the paramsClassName attribute to the string provided as an argument. |
void |
setParamsTable(Hashtable h)
Sets the paramsTable attribute to a hash table. |
void |
setRfcMode(int i)
Sets the rfcMode attribute to the integer provided as an argument. |
void |
setSystemName(java.lang.String s)
Sets the systemName attribute to the string provided as an argument. |
void |
setSystemNo(int i)
Sets the systemNo attribute to the integer provided as an argument. |
Vector |
toStrings()
Used by the SAPService service externalizer to show the information that is defined in the SGML file for the SAPService instance. |
Methods inherited from class com.ibm.dse.base.Service |
externalizer,
getExternalizer,
getTagName,
readExternal,
readExternal,
readObject,
removeExternal,
setExternalizer,
terminate,
toString,
toTags,
writeExternal,
writeExternal |
Methods inherited from class com.ibm.dse.base.DSENotifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
signalEvent |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String jpbPackage
protected int rfcMode
protected java.lang.String destination
protected java.lang.String hostName
protected int systemNo
protected java.lang.String gatewayHost
protected java.lang.String gatewayService
protected java.lang.String systemName
protected java.lang.String groupName
protected java.lang.String msgServer
protected boolean loadBalancing
protected boolean checkAuthorization
protected java.lang.String client
protected java.lang.String language
protected int codePage
Constructor Detail |
public SAPService()
public SAPService(java.lang.String aName) throws java.io.IOException
aName
- java.lang.StringMethod Detail |
public void callRFCModule(java.lang.String bapiClassName, Hashtable importParams) throws java.lang.Exception
protected java.lang.String constructFieldName(java.lang.String fieldName)
fieldName
- java.lang.Stringprotected java.lang.String constructGetterName(java.lang.String exportParamName)
fieldName
- java.lang.Stringprotected java.lang.String constructGetterNameForField(java.lang.String newFieldName)
fieldName
- java.lang.Stringprotected java.lang.String constructSetterName(java.lang.String exportParamName)
fieldName
- java.lang.Stringpublic void establishConnection(Hashtable connectionParams) throws com.sap.rfc.exception.JRfcRemoteException
public void execute(java.lang.String rfcModuleName, Hashtable importParams, Context aContext) throws java.lang.Exception
aContext
- com.ibm.dse.base.Contextpublic boolean getCheckAuthorization()
public java.lang.String getClient()
public int getCodePage()
public java.lang.String getDestination()
protected void getExportParameterString(java.lang.Class myBapiClass, java.lang.String exportParamName, java.lang.Object exportParam, java.lang.Object myFunction) throws java.lang.Exception
protected void getExportParameterStructure(java.lang.Class myBapiClass, java.lang.String exportParamName, java.lang.Object exportParam, java.lang.Object myFunction) throws java.lang.Exception
protected void getExportParameterTable(java.lang.Class myBapiClass, java.lang.String exportParamName, java.lang.Object exportParam, java.lang.Object myFunction) throws java.lang.Exception
public java.lang.String getGatewayHost()
public java.lang.String getGatewayService()
public java.lang.String getGroupName()
public java.lang.String getHostName()
public java.lang.String getJpbPackage()
public java.lang.String getLanguage()
public boolean getLoadBalancing()
public java.lang.String getMsgServer()
public Hashtable getParamsTable()
public int getRfcMode()
public java.lang.String getSystemName()
public int getSystemNo()
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
aTag
- com.ibm.dse.base.Tagpublic java.lang.Object initializeMethodFrom(Tag aTag) throws java.io.IOException
aTag
- com.ibm.dse.base.Tagpublic void setCheckAuthorization(boolean b)
b
- booleanpublic void setClient(java.lang.String s)
s
- java.lang.Stringpublic void setCodePage(int i)
i
- intpublic void setDestination(java.lang.String s)
s
- java.lang.Stringpublic void setGatewayHost(java.lang.String s)
s
- java.lang.Stringpublic void setGatewayService(java.lang.String s)
s
- java.lang.Stringpublic void setGroupName(java.lang.String s)
s
- java.lang.Stringpublic void setHostName(java.lang.String s)
s
- java.lang.Stringpublic void setImportParameterDate(java.lang.Class myBapiClass, java.lang.Object myFunction, java.lang.String importParamName, java.util.Date importParamValue) throws java.lang.Exception
protected void setImportParameters(java.lang.String bapiClassName, java.lang.Class myBapiClass, java.lang.Object myFunction, Hashtable tableImportParams) throws java.lang.Exception
public void setImportParameterString(java.lang.Class myBapiClass, java.lang.Object myFunction, java.lang.String importParamName, java.lang.String importParamValue) throws java.lang.Exception
public void setImportParameterStructure(java.lang.Class myBapiClass, java.lang.Object myFunction, java.lang.String importParamName, java.lang.String importParamType, java.util.Hashtable structureHashtable) throws java.lang.Exception
public void setImportParameterTable(java.lang.Class myBapiClass, java.lang.Object myFunction, java.lang.String importParamName, java.lang.String importParamType, java.util.Vector rowsVector) throws java.lang.Exception
public void setJpbPackage(java.lang.String s)
s
- java.lang.Stringpublic void setLanguage(java.lang.String s)
s
- java.lang.Stringpublic void setLoadBalancing(boolean b)
b
- booleanpublic SAPMethod setMethodExportParamsFrom(Tag aTag, SAPMethod aSAPMethod)
aTag
- com.ibm.dse.base.TagaSAPMethod
- SAPMethodpublic SAPMethod setMethodImportParamsFrom(Tag aTag, SAPMethod aSAPMethod)
aTag
- com.ibm.dse.base.TagaSAPMethod
- SAPMethodpublic void setMsgServer(java.lang.String s)
s
- java.lang.Stringpublic void setParamsClassName(java.lang.String s)
s
- java.lang.Stringpublic void setParamsTable(Hashtable h)
h
- com.ibm.dse.base.Hashtablepublic void setRfcMode(int i)
i
- intpublic void setSystemName(java.lang.String s)
s
- java.lang.Stringpublic void setSystemNo(int i)
i
- intpublic Vector toStrings()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |