Browse Source

deutsche Übersetzung angefangen

lang_de
Stephan Richter 2 years ago
parent
commit
5e45aca087
  1. 8
      src/main/java/de/srsoftware/widerhall/data/Database.java

8
src/main/java/de/srsoftware/widerhall/data/Database.java

@ -60,13 +60,13 @@ public class Database {
* @throws SQLException * @throws SQLException
*/ */
public void run() throws SQLException { public void run() throws SQLException {
LOG.debug("Running {}",this); LOG.debug("Führe {} aus",this);
try { try {
var stmt = conn.prepareStatement(sql); var stmt = conn.prepareStatement(sql);
for (int i = 0; i < args.size(); i++) stmt.setObject(i+1, args.get(i)); for (int i = 0; i < args.size(); i++) stmt.setObject(i+1, args.get(i));
stmt.execute(); stmt.execute();
} catch (SQLException sqle) { } catch (SQLException sqle) {
throw new SQLException(t("Query '{}' failed:",this),sqle); throw new SQLException(t("Query '{}' fehlgeschlagen:",this),sqle);
} }
} }
@ -300,7 +300,7 @@ public class Database {
Configuration config = Configuration.instance(); Configuration config = Configuration.instance();
var dbFile = config.dbFile(); var dbFile = config.dbFile();
String url = "jdbc:sqlite:"+dbFile; String url = "jdbc:sqlite:"+dbFile;
LOG.debug("Opening {}",url); LOG.debug("Öffne {}",url);
dbFile.getParentFile().mkdirs(); dbFile.getParentFile().mkdirs();
try { try {
singleton = new Database(DriverManager.getConnection(url)); singleton = new Database(DriverManager.getConnection(url));
@ -356,7 +356,7 @@ public class Database {
rs.close(); rs.close();
return val > 0; return val > 0;
} catch (SQLException e) { } catch (SQLException e) {
throw new SQLException(t("Was not able to check existence of table {}!",tbName),e); throw new SQLException(t("Konnte Existenz der Tabelle {} nicht prüfen!",tbName),e);
} }
} }

Loading…
Cancel
Save