public static void update(Dia dia) { Connector.connect(); Connector.update( "UPDATE dia SET iddia = " + dia.getIdDia() + ", data ='" + dia.getData() + "';"); Connector.close(); }
public static void create(Dia dia) { Connector.connect(); Connector.update("INSERT INTO dia (data)" + " VALUES ('" + dia.getData() + "'); "); Connector.close(); }