|How to get (db2, oracle etc.) dialect SQL Query Parser [message #553336]
||Tue, 17 August 2010 08:18
Registered: August 2010
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
I want to know how to create or get 'Database db;'
or How do I find dialect parser plugins?
sorry to weak english.
Powered by FUDForum
. Page generated in 0.01450 seconds