Ver a proveniência

Delete StationsHistorie moeglich.

testBranch
ascendente
cometimento
4a9dbd1fc6
1 ficheiros alterados com 7 adições e 0 eliminações
  1. +7
    -0
      src/main/java/de/uniluebeck/mi/projmi6/db/DBHandler.java

+ 7
- 0
src/main/java/de/uniluebeck/mi/projmi6/db/DBHandler.java Ver ficheiro

@@ -154,6 +154,7 @@ public class DBHandler {
"`LetzterBearbeiter`," +
"`FallID`) " +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?)";
private static final String DELETE_STATHIST = "DELETE FROM `stationshistorie` WHERE `StatHistID` =?";

/**
* Gibt alle {@link Patient} aus der DB zurueck.
@@ -371,6 +372,12 @@ public class DBHandler {
}
}

public static void delStationsHistorie(StationsHistorie hist) throws SQLException {
PreparedStatement statement = MySqlConnectionFactory.getConnection().prepareStatement(DELETE_STATHIST);
statement.setInt(1, hist.getStatHistID());
statement.execute();
}

private static StationsHistorie getStationsHistorie(ResultSet rs) throws SQLException {
StationsHistorie hist = new StationsHistorie();



Carregando…
Cancelar
Guardar