org.hibersap.session
Interface SessionManager

All Superinterfaces:
Serializable
All Known Implementing Classes:
SessionManagerImpl

public interface SessionManager
extends Serializable


Method Summary
 void close()
          Closes a SessionManager, freeing resources held by the framework.
 SessionManagerConfig getConfig()
          Get Configuration.
 boolean isClosed()
          Returns the status of this SessionManager.
 Session openSession()
          Open a Session using a newly created connection to SAP.
 Session openSession(Credentials credentials)
          Open a Session using a newly created connection to SAP, providing user credentials.
 

Method Detail

getConfig

SessionManagerConfig getConfig()
Get Configuration.

Returns:
The Configuration object

openSession

Session openSession()
Open a Session using a newly created connection to SAP.

Returns:
The Session

openSession

Session openSession(Credentials credentials)
Open a Session using a newly created connection to SAP, providing user credentials.

Parameters:
credentials - User Credentials for the SAP system to be called.
Returns:
The Session

close

void close()
Closes a SessionManager, freeing resources held by the framework. After calling this method, the SessionManager should not be used anymore and will throw Exceptions on certain method calls.


isClosed

boolean isClosed()
Returns the status of this SessionManager.

Returns:
true, if this SessionManager is closed, false if it can still be used.


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