1 19 20 package org.netbeans.modules.dbschema.jdbcimpl; 21 22 import java.sql.*; 23 24 25 import org.netbeans.lib.ddl.*; 26 import org.netbeans.lib.ddl.impl.*; 27 28 public class DDLBridge extends Object { 29 30 private DriverSpecification drvSpec; 31 32 33 public DDLBridge(Connection con, String schema, DatabaseMetaData dmd) { 34 try { 35 SpecificationFactory fac = new SpecificationFactory(); 36 drvSpec = fac.createDriverSpecification(dmd.getDriverName().trim()); 37 drvSpec.setMetaData(dmd); 38 drvSpec.setSchema(schema); 39 40 if (dmd.getDatabaseProductName().trim().equals("PointBase")) Thread.sleep(60); 43 44 drvSpec.setCatalog(con.getCatalog()); 45 } catch (Exception exc) { 46 org.openide.ErrorManager.getDefault().notify(exc); 47 } 48 } 49 50 public DriverSpecification getDriverSpecification() { 51 return drvSpec; 52 } 53 54 } 55 | Popular Tags |