org.hibersap.session
Interface Session

All Known Implementing Classes:
SessionImpl

public interface Session

Author:
Carsten Erker

Method Summary
 Transaction beginTransaction()
          starts a transaction.
 void close()
          releases all resources.
 void execute(Object bapi)
          executes a funtion module in SAP.
 Transaction getTransaction()
          returns the transaction.
 boolean isClosed()
          is session already closed?
 

Method Detail

beginTransaction

Transaction beginTransaction()
starts a transaction.

Returns:
The Hibersap transaction

close

void close()
releases all resources.


execute

void execute(Object bapi)
executes a funtion module in SAP.

Parameters:
bapi - The BAPI class

getTransaction

Transaction getTransaction()
returns the transaction.

Returns:
The hibersap transaction or null if no transaction started.

isClosed

boolean isClosed()
is session already closed?

Returns:
true if closed, else false.


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