ソースを参照

Delete StationsHistorie moeglich.

testBranch
コミット
4a9dbd1fc6
1個のファイルの変更7行の追加0行の削除
  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 ファイルの表示

@@ -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();



読み込み中…
キャンセル
保存