Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » How to get (db2, oracle etc.) dialect SQL Query Parser
How to get (db2, oracle etc.) dialect SQL Query Parser [message #597876] Tue, 17 August 2010 08:18
Woo  is currently offline Woo Friend
Messages: 3
Registered: August 2010
Junior Member
Hi,

In the SQL query Parser guide the sample code states:

2.2 Getting a parser manager for a specific vendor
The recommended way is to instantiate a parser based on the database vendor information so as to handle vendor specific variations of SQL. The following code snippet shows how to create the parser based on the vendor information
// TODO initialize the variable db with the
// org.eclipse.wst.rdb.internal.models.sql.schema.Database intance obtained from
// the database connection
// Database db;
// TODO get the vendorname and version after the variable is initialized
// String dbName = db.getVendor();
// String dbVersion = db.getVersion();
// get the best matching parser manager depending on what parser extension are plugged in
SQLQueryParserManager parserManager = SQLQueryParserManagerProvider
.getInstance().getParserManager(dbName, dbVersion);

I want to know how to create or get 'Database db;'

or How do I find dialect parser plugins?

sorry to weak english.
Previous Topic:How to get (db2, oracle etc.) dialect SQL Query Parser
Next Topic:Obtaining Foreign Keys via ODA connections and IResultSet?
Goto Forum:
  


Current Time: Mon Dec 22 09:54:58 GMT 2014

Powered by FUDForum. Page generated in 0.03004 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software