/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2005 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.db.spi.sql.editor; import org.netbeans.modules.db.api.DatabaseConnection; import org.openide.loaders.DataObject; /** * This interface provides an SQL editor. The implementation should be * placed in the default lookup. * * @author Andrei Badea */ public interface SQLEditorProvider { /** * Opens a new SQL editor for the specified connection and containing the * specified SQL statments and possibly executes them. * * @param dbconn the databaseconnection set as active in the SQL editor. The * statements are also executed against this connection. * @param sql the SQL statements to be put in the editor * @param execute whether to execute the SQL statements. */ public void openSQLEditor(DatabaseConnection dbconn, String sql, boolean execute); }