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 Parameters: sessionId - ID that uniquely identifies this session. throws: IllegalArgumentException - if any parameter is null.
Add a tab to the main tabbed panel.
Parameters: tab - The tab to be added. the index of the new tab that was added. throws: IllegalArgumentException - Thrown if a nullIMainPanelTab passed.
Close this session.
throws: SQLException - Thrown if an error closing the SQL connection. The sessionwill still be closed even though the connection may not havebeen.
The code in any SQLEditor is parsed in the background. You may attach a listener to the ParserEventsProcessor
to get to know about the results of parsing. The events are passed synchron with the event queue
(via SwingUtils.invokeLater()). At the moment events are produced for errors in the SQLScript
which are highlighted in the syntax plugin and for aliases of table names which are used in the
code completion plugin.
If you want the ParserEventsProcessor to produce further events feel free to contact gerdwagner@users.sourceforge.net.
Returns the IQueryTokenizer implementation to use for tokenizing scripts
statements that should be sent to the server. If the tokenizer hasn't
been initialized yet, then a default one will be created. If a cutom
tokenizer has been installed, this will just return that one, in lieu of
the default one.
an implementation of IQueryTokenizer
Select a tab in the main tabbed pane.
Parameters: tabIndex - The tab to select. @see ISession.IMainTabIndexes throws: IllegalArgumentException - Thrown if an invalid tabId passed.
Sets the IQueryTokenizer implementation to use for this session.
Parameters: tokenizer - throws: IllegalArgumentException - for null argument throws: IllegalStateException - if a custom tokenizer is already installed.