Ejemplo n.º 1
0
        /**
         *
         * 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);
        }
Ejemplo n.º 2
0
 /*
  * 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));
 }