コード例 #1
0
  private void TestSelect() throws SQLException {
    SQL = "SELECT * FROM UNIT";

    if (dbTransaction.Select(SQL)) {
      dbTransaction.PrintResultSet();
    } else System.out.println(dbTransaction.getError());
  }
コード例 #2
0
  @SuppressWarnings("unused")
  private void TestInsert() throws SQLException {
    SQL = "UPDATE SENSOR SET Value = 'Temperatura' WHERE Id = 4";

    if (dbTransaction.Execute(SQL)) {
      TestSelect();
    } else System.out.println(dbTransaction.getError());
  }