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

java.lang.Object
  extended byorg.eclipse.datatools.sqltools.core.services.DefaultSQLDataService
All Implemented Interfaces:
ISQLDataService

public class DefaultSQLDataService
extends java.lang.Object
implements ISQLDataService

Author:
Hui Cao

Constructor Summary
DefaultSQLDataService()
           
 
Method Summary
 java.lang.String[] getDatatypeAliases()
          Retrieves aliases for getDatatypes().e.g.
 java.lang.String[] getDatatypes()
          Retrieves all datatypes used for parameters & variables.
 ISqlDataValidator getSQLDataValidator(DatabaseIdentifier databaseIdentifier)
          Returns a ISqlDataValidator object which is used to validate data types and values for a database
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSQLDataService

public DefaultSQLDataService()
Method Detail

getSQLDataValidator

public ISqlDataValidator getSQLDataValidator(DatabaseIdentifier databaseIdentifier)
Description copied from interface: ISQLDataService
Returns a ISqlDataValidator object which is used to validate data types and values for a database

Specified by:
getSQLDataValidator in interface ISQLDataService
Parameters:
databaseIdentifier - uniquely identifies a database
Returns:
SQL data validator

getDatatypes

public java.lang.String[] getDatatypes()
Description copied from interface: ISQLDataService
Retrieves all datatypes used for parameters & variables. This is different with datatypes defined in database model in that it includes default length for some data types.

Specified by:
getDatatypes in interface ISQLDataService
Returns:
data type array

getDatatypeAliases

public java.lang.String[] getDatatypeAliases()
Description copied from interface: ISQLDataService
Retrieves aliases for getDatatypes().e.g. "national char" is an alias for "nchar".

Specified by:
getDatatypeAliases in interface ISQLDataService
Returns:
data type aliases


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