1 19 20 package org.netbeans.lib.ddl; 21 22 import java.sql.*; 23 import java.util.*; 24 import org.netbeans.lib.ddl.*; 25 26 35 public interface DatabaseSpecification { 36 37 38 public DatabaseMetaData getMetaData() throws SQLException; 39 40 public String getMetaDataAdaptorClassName(); 41 public void setMetaDataAdaptorClassName(String name); 42 43 44 public DBConnection getConnection(); 45 46 47 public Connection openJDBCConnection() throws DDLException; 48 49 50 public Connection getJDBCConnection(); 51 52 53 public DatabaseSpecificationFactory getSpecificationFactory(); 54 55 56 public void setSpecificationFactory(DatabaseSpecificationFactory fac); 57 58 62 public void closeJDBCConnection() throws DDLException; 63 64 68 public Map getProperties(); 69 70 75 public Map getCommandProperties(String command); 76 77 84 public DDLCommand createCommand(String commandName) throws CommandNotSupportedException; 85 86 88 public String getType(int sqltype); 89 } 90 91 99 | Popular Tags |