Added global driver and url parameters

This commit is contained in:
Christopher Ramey 2012-08-23 22:00:36 +00:00 committed by cdramey
parent 5b94df01a4
commit 649f2dec53

View File

@ -64,6 +64,7 @@ public class JDBCJSON
public void run(String job) throws Exception
{
String url = properties.getProperty(job + ".url");
if(url == null){ url = properties.getProperty(".url"); }
String sql = properties.getProperty(job + ".sql");
if(sql == null){ sql = "SELECT * FROM " + job; }
@ -72,6 +73,7 @@ public class JDBCJSON
if(out == null){ out = job + ".json"; }
String driver = properties.getProperty(job + ".driver");
if(driver == null){ driver = properties.getProperty(".driver"); }
if(driver != null){ Class.forName(driver); }
Connection conn = null;