org.hibersap.session
Class SessionImpl

java.lang.Object
  extended by org.hibersap.session.SessionImpl
All Implemented Interfaces:
Session, SessionImplementor

public class SessionImpl
extends Object
implements Session, SessionImplementor


Constructor Summary
SessionImpl(SessionManagerImplementor sessionManager)
           
SessionImpl(SessionManagerImplementor sessionManager, Credentials credentials)
           
 
Method Summary
 void addBapiInterceptor(BapiInterceptor interceptor)
           
 void addExecutionInterceptor(ExecutionInterceptor interceptor)
           
 Transaction beginTransaction()
          starts a transaction.
 void close()
          releases all resources.
 void execute(Object bapiObject)
          executes a funtion module in SAP.
 void execute(Object bapiObject, BapiMapping bapiMapping)
           
 SessionManagerImplementor getSessionManager()
           
 Transaction getTransaction()
          returns the transaction.
 boolean isClosed()
          is session already closed?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionImpl

public SessionImpl(SessionManagerImplementor sessionManager)

SessionImpl

public SessionImpl(SessionManagerImplementor sessionManager,
                   Credentials credentials)
Method Detail

beginTransaction

public Transaction beginTransaction()
Description copied from interface: Session
starts a transaction.

Specified by:
beginTransaction in interface Session
Returns:
The Hibersap transaction

close

public void close()
Description copied from interface: Session
releases all resources.

Specified by:
close in interface Session

execute

public void execute(Object bapiObject)
Description copied from interface: Session
executes a funtion module in SAP.

Specified by:
execute in interface Session
Parameters:
bapiObject - The BAPI class

execute

public void execute(Object bapiObject,
                    BapiMapping bapiMapping)
Specified by:
execute in interface SessionImplementor

getSessionManager

public SessionManagerImplementor getSessionManager()
Specified by:
getSessionManager in interface SessionImplementor

getTransaction

public Transaction getTransaction()
Description copied from interface: Session
returns the transaction.

Specified by:
getTransaction in interface Session
Returns:
The hibersap transaction or null if no transaction started.

isClosed

public boolean isClosed()
Description copied from interface: Session
is session already closed?

Specified by:
isClosed in interface Session
Returns:
true if closed, else false.

addExecutionInterceptor

public void addExecutionInterceptor(ExecutionInterceptor interceptor)

addBapiInterceptor

public void addBapiInterceptor(BapiInterceptor interceptor)


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