closeAllSessions() Closes all currently open sessions.
true if all sessions closed else false. throws: SQLException - Thrown if an error closing the SQL connection.
Adds a session listener
Parameters: lis - The listener to add.
areAllSchemasAllowed
public boolean areAllSchemasAllowed(ISession session)(Code)
clearAllowedSchemaCache
public void clearAllowedSchemaCache(ISession session)(Code)
closeAllSessions
public synchronized boolean closeAllSessions()(Code)
Closes all currently open sessions.
true if all sessions closed else false. throws: SQLException - Thrown if an error closing the SQL connection. The sessionwill still be closed even though the connection may not havebeen.
closeSession
public synchronized boolean closeSession(ISession session)(Code)
Close a session.
Parameters: session - Session to close. true if session was closed else false. throws: IllegalArgumentException - Thrown if nullISession passed.
Create a new session.
Parameters: app - Application API. Parameters: driver - JDBC driver for session. Parameters: alias - Defines URL to database. Parameters: conn - Connection to database. Parameters: user - User name connected with. Parameters: password - Password for user throws: IllegalArgumentException - Thrown if IApplication, ISQLDriver, ISQLAlias,or SQLConnection is passed as null.
Retrieve the session for the passed identifier.
Parameters: sessionID - ID of session we are trying to retrieve. throws: IllegalArgumentException - Thrown if nullIIdentifier passed.