Example #1
0
  public static void update(Dia dia) {
    Connector.connect();
    Connector.update(
        "UPDATE dia SET iddia = " + dia.getIdDia() + ", data ='" + dia.getData() + "';");

    Connector.close();
  }
Example #2
0
  public static void create(Dia dia) {

    Connector.connect();
    Connector.update("INSERT INTO dia (data)" + " VALUES ('" + dia.getData() + "'); ");

    Connector.close();
  }