/** * * Execute a tinySQL Statement * @param sql the statement to be executed * @return tsResultSet containing the results of the SQL statement * */ public TsResultSet executetinySQL(TinySQLStatement sql) //throws SQLException { TsResultSet result; // try to execute the SQL // try { result = tsql.sqlexec(sql); } catch (TinySQLException e) { if (debug) { e.printStackTrace(); } throw new java.sql.SQLException("Exception: " + e.getMessage()); } return(result); }
/* * Processes the SQL Statement s and returns * a tsResultSet. * * @param s SQL Statement to execute * @exception TinySQLException */ public virtual TsResultSet sqlexec(TinySQLStatement s) //throws TinySQLException { return(sql(s)); }