Mercurial > dive4elements > river
diff flys-aft/src/main/java/de/intevation/db/Statements.java @ 4074:100c4e0a45e1
Improved infrastructure for prepared statements.
flys-aft/trunk@3407 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 13 Dec 2011 14:32:55 +0000 |
parents | 2c70fae83d0c |
children | 79bb64f66c74 |
line wrap: on
line diff
--- a/flys-aft/src/main/java/de/intevation/db/Statements.java Tue Dec 13 13:41:43 2011 +0000 +++ b/flys-aft/src/main/java/de/intevation/db/Statements.java Tue Dec 13 14:32:55 2011 +0000 @@ -29,10 +29,14 @@ } public SymbolicStatement getStatement(String key) { + return getStatements().get(key); + } + + public Map<String, SymbolicStatement> getStatements() { if (statements == null) { statements = loadStatements(); } - return statements.get(key); + return statements; } protected Map<String, SymbolicStatement> loadStatements() {