Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

SQL Query Builder Component API

Revision as of 11:59, 18 October 2007 by Jeremyl.sybase.com (Talk | contribs)

Back to SQL Development Tools page

Introduction

The SQL Query Builder is a component for visually editing SQL DML statements. It can be consumed by other UI components such as editors, dialogs and wizards. As input, it can accept .sql files created by the DTP SQL File Editor or it can accept SQL statements passed by consumers in the form of strings.

CVS Location

The SQL Query Builder is located in the datatools part of the Eclipse CVS repository:

Host: dev.eclipse.org
Repository path: /cvsroot/datatools

The SQL Query Builder plugin is

org.eclipse.datatools.sqltools.sqlbuilder

which is located in CVS under the folder

org.eclipse.datatools.sqltools

There is also an examples plugin

org.eclipse.datatools.sqltools.sqlbuilder.examples

which is located in CVS under the folder

org.eclipse.datatools.sqltools.examples

Component Structure

SQLBuilder component

The main component class is

org.eclipse.datatools.sqltools.sqlbuilder.SQLBuilder

This class is a graphical editing component to which a SQL statement is passed for editing.

SQLBuilder editor

An editor is defined which wraps the SQLBuilder component in an Eclipse editor:

org.eclipse.datatools.sqltools.sqlbuilder.SQLBuilderEditor

SQLBuilder dialog

In the org.eclipse.datatools.sqltools.sqlbuilder.examples plugin, there is an example of a dialog which hosts the SQLBuilder component:

org.eclipse.datatools.sqltools.sqlbuilder.examples.dialogs.SQLBuilderDialog

Back to the top