--- dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Database.java 2014/05/10 08:13:54 2156 +++ dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Database.java 2014/05/10 08:24:55 2157 @@ -21,7 +21,7 @@ Connection conn; PreparedStatement saveStmt; - public Database(Properties conf) throws SQLException,IOException { + public Database(SafeProperties conf) throws SQLException,IOException { this.conn = getConnection( conf ); String sql = "INSERT INTO fulddaekning.afstand_anden_rute_thn (orgId,orgPostnr, orgAdresse,orgGadeid,orgHusnr,orgHusnrBogstav,orgLatitude,orgLongitude,orgRute,id,postnr,adresse,gadeid,husnr,husnrbogstav,latitude,longitude,rute,afstand,`timestamp`) "+ @@ -190,11 +190,11 @@ return list; } - public Connection getConnection(Properties conf) throws SQLException, IOException { + public Connection getConnection(SafeProperties conf) throws SQLException, IOException { - String db_host = conf.getProperty("DB_HOST"); - String db_user = conf.getProperty("DB_USER"); - String db_pass = conf.getProperty("DB_PASS"); + String db_host = conf.getSafeProperty("DB_HOST"); + String db_user = conf.getSafeProperty("DB_USER"); + String db_pass = conf.getSafeProperty("DB_PASS");