org.hibersap.execution
Interface Connection

All Known Implementing Classes:
JCAConnection, JCoConnection

public interface Connection


Method Summary
 Transaction beginTransaction(SessionImplementor session)
          Begins a logical unit of work.
 void close()
          Closes this connection.
 void execute(String bapiName, Map<String,Object> functionMap)
          Calls a remote function module in the SAP system.
 Transaction getTransaction()
          Returns the current transaction.
 void setCredentials(Credentials credentials)
          Set the credentials for the session.
 

Method Detail

setCredentials

void setCredentials(Credentials credentials)
Set the credentials for the session. If custom credentials are provided, this method must be called before the execute() method is called for the first time on the Session this Connection belongs to. The credentials overwrite the configured properties. Only the credential fields that are set (i.e. that are not null) will change the default behavior.

Parameters:
credentials - The Credentials

beginTransaction

Transaction beginTransaction(SessionImplementor session)
Begins a logical unit of work.

Parameters:
session - The Session this Connection belongs to.
Returns:
The Transaction

getTransaction

Transaction getTransaction()
Returns the current transaction.

Returns:
The Transaction

execute

void execute(String bapiName,
             Map<String,Object> functionMap)
Calls a remote function module in the SAP system.

Parameters:
bapiName - The function module name
functionMap - The function module parameters

close

void close()
Closes this connection. Implementing classes must do everything that is needed to free resources etc.



Copyright © 2011 akquinet tech@spree GmbH. All Rights Reserved.