01: package org.dbbrowser.db.engine.rawsqlengine;
02:
03: import java.sql.Statement;
04:
05: import org.dbbrowser.db.engine.exception.DBEngineException;
06: import org.dbbrowser.db.engine.model.DBTable;
07:
08: /**
09: * Run raw SQL ststements. The raw SQL statements are entered by the user and may be Update, Select, Delete etc
10: */
11: public interface DBRawSQLEngine {
12: /**
13: * Run the SQL statement and return the result if any.
14: * @param sql
15: * @return - DBTable if there is any result or null
16: * @throws DBEngineException
17: */
18: public DBTable runRawSQL(String sql) throws DBEngineException;
19:
20: /**
21: * Returns the Statement used to run the SQL
22: * @return
23: */
24: public Statement getStatement();
25: }
|