org.eclipse.datatools.sqltools.core.services
Interface ISQLService

All Known Implementing Classes:
DefaultSQLService

public interface ISQLService

A SQL language related service specific to a database definition.

Clients should extend DefaultSQLService rather than implement this interface directly.

Author:
Hui Cao

Method Summary
 GenericSQLContextType getSQLContextType()
          Returns a specific GenericSQLContextType object which identifies the context type of templates used in SQL editor.
 SQLParser getSQLParser()
          Returns a SQLParser object which is used to parse SQL dialect.
 ISQLSyntax getSQLSyntax()
          Returns an ISQLSyntax object which can be used to highlight sql statements in SQL editor.
 java.lang.String[] splitSQL(java.lang.String sql)
          Splits the sql statement into groups of statements according to SQL statement delimiter such as "go" or ";".
 

Method Detail

getSQLSyntax

public ISQLSyntax getSQLSyntax()
Returns an ISQLSyntax object which can be used to highlight sql statements in SQL editor.

Returns:
an ISQLSyntax object specific to a SQL dialect.

getSQLContextType

public GenericSQLContextType getSQLContextType()
Returns a specific GenericSQLContextType object which identifies the context type of templates used in SQL editor.

Returns:
a GenericSQLContextType object

getSQLParser

public SQLParser getSQLParser()
Returns a SQLParser object which is used to parse SQL dialect.

Returns:
a SQLParser object

splitSQL

public java.lang.String[] splitSQL(java.lang.String sql)
Splits the sql statement into groups of statements according to SQL statement delimiter such as "go" or ";".

Parameters:
sql - statement to be splitted
Returns:
sql statement array


Copyright © 2006 Actuate, IBM Corporation, Sybase, Inc. and others. All rights reserved.