comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Recommendations.java @ 1029:3f3988bb6284

Picky Cosmetics. flys-artifacts/trunk@2489 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 11 Aug 2011 13:03:41 +0000
parents 930a9ce24294
children c586b6220f35
comparison
equal deleted inserted replaced
1028:10bafb4f46cc 1029:3f3988bb6284
137 throws SQLException 137 throws SQLException
138 { 138 {
139 List<Builder.NamedConnection> connections = 139 List<Builder.NamedConnection> connections =
140 new ArrayList<Builder.NamedConnection>(2); 140 new ArrayList<Builder.NamedConnection>(2);
141 141
142 if (userId != null) { // system and user templates 142 if (userId != null) { // Use system and user templates.
143 // get connection to datacage db 143 // Get connection to datacage db.
144 DataSource dataSource = DBConfig 144 DataSource dataSource = DBConfig
145 .getInstance() 145 .getInstance()
146 .getDBConnection() 146 .getDBConnection()
147 .getDataSource(); 147 .getDataSource();
148 148
158 } 158 }
159 finally { 159 finally {
160 userConnection.close(); 160 userConnection.close();
161 } 161 }
162 } 162 }
163 else { // system template only 163 else { // Use system template only.
164 connections.add(new Builder.NamedConnection( 164 connections.add(new Builder.NamedConnection(
165 Builder.CONNECTION_SYSTEM, systemConnection, true)); 165 Builder.CONNECTION_SYSTEM, systemConnection, true));
166 166
167 systemBuilder.build(connections, result, parameters); 167 systemBuilder.build(connections, result, parameters);
168 } 168 }

http://dive4elements.wald.intevation.org