1 19 20 package org.netbeans.modules.db.sql.visualeditor.querybuilder; 21 22 import java.beans.PropertyChangeListener ; 23 import java.sql.Connection ; 24 import java.sql.SQLException ; 25 import javax.sql.DataSource ; 26 27 49 public interface SqlStatement { 50 51 56 public static final String CONNECTION_INFO = "connectionInfo" ; 57 60 public static final String COMMAND = "command" ; 61 65 public static final String CLOSING = "closing" ; 66 70 public static final String TITLE = "title" ; 71 72 84 public Connection getReadOnlyConnection() throws SQLException ; 85 86 96 public Connection getConnection() throws SQLException ; 97 98 99 104 public void validateConnection(Connection connection) throws SQLException ; 105 106 107 110 public String getCommand() ; 111 112 116 public void setCommand(String command) ; 117 118 123 public String getConnectionInfo() ; 124 125 129 public void addPropertyChangeListener(PropertyChangeListener listener) ; 130 131 136 public void addPropertyChangeListener(String property, PropertyChangeListener listener) ; 137 138 142 public void removePropertyChangeListener(PropertyChangeListener listener) ; 143 144 147 public void removePropertyChangeListener(String property, PropertyChangeListener listener) ; 148 149 154 public void close() ; 155 156 159 public String getTitle() ; 160 161 165 public SqlStatementMetaDataCache getMetaDataCache() throws SQLException ; 166 167 } 168 | Popular Tags |