org.eclipse.datatools.sqltools.core.services
Class DefaultSQLService

java.lang.Object
  extended byorg.eclipse.datatools.sqltools.core.services.DefaultSQLService
All Implemented Interfaces:
ISQLService

public class DefaultSQLService
extends java.lang.Object
implements ISQLService

Default implementation for ISQLService.

Author:
Hui Cao

Constructor Summary
DefaultSQLService()
           
 
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)
          Split the sql statement into groups of statements according to SQL delimiter "go" or ";".
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSQLService

public DefaultSQLService()
Method Detail

getSQLSyntax

public ISQLSyntax getSQLSyntax()
Description copied from interface: ISQLService
Returns an ISQLSyntax object which can be used to highlight sql statements in SQL editor.

Specified by:
getSQLSyntax in interface ISQLService
Returns:
an ISQLSyntax object specific to a SQL dialect.

getSQLContextType

public GenericSQLContextType getSQLContextType()
Description copied from interface: ISQLService
Returns a specific GenericSQLContextType object which identifies the context type of templates used in SQL editor.

Specified by:
getSQLContextType in interface ISQLService
Returns:
a GenericSQLContextType object

getSQLParser

public SQLParser getSQLParser()
Description copied from interface: ISQLService
Returns a SQLParser object which is used to parse SQL dialect.

Specified by:
getSQLParser in interface ISQLService
Returns:
a SQLParser object

splitSQL

public java.lang.String[] splitSQL(java.lang.String sql)
Split the sql statement into groups of statements according to SQL delimiter "go" or ";". ";" will be reserved while "go" will be converted to ";"

Specified by:
splitSQL in interface ISQLService
Parameters:
sql -
Returns:


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