com.ibm.di.api.local
Interface SessionFactory

All Known Implementing Classes:
SessionFactoryImpl

public interface SessionFactory

This interface provides methods for creating a Session.


Method Summary
 Session createSession()
          Creates a session object.
 Session createSession(String aUserName, String aPassword)
          Creates a session object with the specified username and password.
 

Method Detail

createSession

Session createSession()
                      throws DIException
Creates a session object.

Returns:
The Session object.
Throws:
DIException - if an error occurs while creating Session.

createSession

Session createSession(String aUserName,
                      String aPassword)
                      throws DIException
Creates a session object with the specified username and password.

Parameters:
aUserName - the username for authentication.
aPassword - the password for authentication.
Returns:
The Session object.
Throws:
DIException - if an error occurs while creating Session.