|
Sun Adapter for SAP BAPI API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.sapbapiadapter.sapbapi.ConnectorClient
public abstract class ConnectorClient
An interface to define the methods required by a SAP BAPI and IDOC connectors for outbound transactions from SAP
Field Summary | |
---|---|
protected net.java.hulp.i18n.Logger |
mLogger
|
static java.lang.String |
XACT_COMMITROLLBACK_BAPI_STR
Via COMMIT/ROLLBACK BAPI string. |
static java.lang.String |
XACT_NONE_STR
Non-Transactional mode string. |
static java.lang.String |
XACT_TRFC_STR
Transactional RFC (tRFC) mode string. |
static java.lang.String |
XACT_XA_STR
XA-compliant mode string. |
Constructor Summary | |
---|---|
ConnectorClient()
|
Method Summary | |
---|---|
void |
commit()
Commit all the work done on SAP Server thus far. |
java.lang.String |
getBapiOTDVer()
|
com.sap.mw.jco.JCO.Client |
getClient()
Retrieves the SAP jCO client object. |
int |
getClientMaxDBRows()
Retrieves the Maximum number of Rows the TID Database for client mode should have. |
protected TIDManager |
getClientTiDManager()
Retrieves the TID Manager for tRFC client mode. |
java.lang.String |
getClientTransactionalMode()
Retrieves the client Transactional Mode. |
protected ConnectorClient |
getConnector()
Returns the ConnectorClient object. |
long |
getLastActivityTime()
Gets the last time a connection activity was performed. |
java.lang.Throwable |
getLastError()
Gets the last error due to a connection attempt. |
protected SAPConnector |
getSAPConnector()
Get the SAP Connector object |
java.lang.String |
getSystemID()
DOCUMENT ME! |
java.lang.String |
getTidDatabase()
Retrieves the TID Database to use for client mode. |
protected void |
init()
Initalizes the TID Manager Factory and misc |
boolean |
isClientAvailable()
Tests if the Client portion is available. |
boolean |
isClientDirty()
Tests whether Client Transactional work has been done. |
boolean |
isClientTrfcEnabled()
Checks whether tRFC (transactional RFC) is enabled for server mode. |
boolean |
isTrfcEnabled()
Checks whether tRFC (transactional RFC) is enabled for server mode. |
void |
rollback()
Rollback all the work done on SAP Server thus far. |
void |
setBapiOTDVer(java.lang.String otdVer)
|
void |
setClient(com.sap.mw.jco.JCO.Client jCOclient)
DOCUMENT ME! |
void |
setClientDirty()
Sets Client Transactional work has been done. |
void |
setClientNeeded()
Indicates to the connector that the RFC Client connection is needed. |
void |
setClientTransactionMode(java.lang.String mode)
|
void |
setLastActivityTime(long lastActivityTime)
Sets the last time a connection activity was performed. |
void |
setLastError(java.lang.Throwable lastError)
Sets the last error due to a connection attempt. |
void |
setMaxDBRows(java.lang.String maxRows)
|
protected void |
setSAPConnector(SAPConnector sapconn)
Set the SAP Connector object |
void |
setSystemID(java.lang.String sysID)
Set the system ID |
void |
setTidDatabase(java.lang.String tidDB)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected net.java.hulp.i18n.Logger mLogger
public static final java.lang.String XACT_NONE_STR
public static final java.lang.String XACT_TRFC_STR
public static final java.lang.String XACT_COMMITROLLBACK_BAPI_STR
public static final java.lang.String XACT_XA_STR
Constructor Detail |
---|
public ConnectorClient()
Method Detail |
---|
protected void init() throws javax.resource.ResourceException
javax.resource.ResourceException
- on errorprotected ConnectorClient getConnector()
protected void setSAPConnector(SAPConnector sapconn)
sapconn
- SAP Connector objectprotected SAPConnector getSAPConnector()
public void setSystemID(java.lang.String sysID)
sysID
- the system ID stringpublic java.lang.String getSystemID()
public com.sap.mw.jco.JCO.Client getClient()
getClient
in interface Connector
public void setClient(com.sap.mw.jco.JCO.Client jCOclient)
jCOclient
- DOCUMENT ME!protected TIDManager getClientTiDManager()
null
if tRFC not enabled)public void setBapiOTDVer(java.lang.String otdVer)
public java.lang.String getBapiOTDVer()
public void commit() throws SAPException
java.lang.Exception
- When SAP problems occur.
SAPException
public void rollback() throws SAPException
java.lang.Exception
- When SAP problems occur.
SAPException
public java.lang.String getClientTransactionalMode()
public void setClientTransactionMode(java.lang.String mode)
public java.lang.String getTidDatabase()
getTidDatabase
in interface Connector
public void setTidDatabase(java.lang.String tidDB)
public void setMaxDBRows(java.lang.String maxRows)
public int getClientMaxDBRows()
getClientMaxDBRows
in interface Connector
public boolean isClientTrfcEnabled()
true
if tRFC is enabled; else false
.public boolean isTrfcEnabled()
isTrfcEnabled
in interface Connector
true
if tRFC is enabled; else false
.public void setClientNeeded()
public void setLastActivityTime(long lastActivityTime)
setLastActivityTime
in interface Connector
lastActivityTime
- the last timepublic long getLastActivityTime()
public void setLastError(java.lang.Throwable lastError)
lastError
- the errorpublic java.lang.Throwable getLastError()
public boolean isClientAvailable() throws java.lang.Exception
java.lang.Exception
- on errorpublic boolean isClientDirty()
public void setClientDirty()
|
Sun Adapter for SAP BAPI API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |