Mercurial > dive4elements > river
diff flys-aft/src/main/java/de/intevation/db/ConnectionBuilder.java @ 4073:2c70fae83d0c
start syncing at river level.
flys-aft/trunk@3406 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 13 Dec 2011 13:41:43 +0000 |
parents | 88f801888d85 |
children | 100c4e0a45e1 |
line wrap: on
line diff
--- a/flys-aft/src/main/java/de/intevation/db/ConnectionBuilder.java Tue Dec 13 12:33:36 2011 +0000 +++ b/flys-aft/src/main/java/de/intevation/db/ConnectionBuilder.java Tue Dec 13 13:41:43 2011 +0000 @@ -29,9 +29,12 @@ protected String password; protected String url; + protected Statements statements; + public ConnectionBuilder(String type, Document document) { this.type = type; extractCredentials(document); + statements = new Statements(type, driver != null ? driver : ""); } protected void extractCredentials(Document document) { @@ -68,5 +71,9 @@ return DriverManager.getConnection(url, user, password); } + + public SymbolicStatement getStatement(String key) { + return statements.getStatement(key); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :