Beispiel #1
0
 /// <summary>
 /// Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement.
 /// </summary>
 /// <param name="query"></param>
 public void ExecuteUpdate(string query)
 {
     try
     {
         Method executeUpdate = _statement.GetExecuteUpdate();
         executeUpdate.invoke(_statement, new[] { JNIEnv.ThreadEnv.NewString(query) });
     }
     catch (java.lang.Exception ex)
     {
         throw new NPhoenixSqlException(ex);
     }
 }