Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Recommendations.java @ 5588:3e8f7b4bdf20 2.9.17
Don't use SedDB in Datacage (temp fix)
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 08 Apr 2013 11:03:14 +0200 |
parents | ac48ab9e1715 |
children | b75005269a6c |
comparison
equal
deleted
inserted
replaced
5587:7b1c5fe4ebf3 | 5588:3e8f7b4bdf20 |
---|---|
205 final Map<String, Object> parameters, | 205 final Map<String, Object> parameters, |
206 final String userId, | 206 final String userId, |
207 final Node result, | 207 final Node result, |
208 Session systemSession | 208 Session systemSession |
209 ) { | 209 ) { |
210 systemSession.doWork(new Work() { | |
211 @Override | |
212 public void execute(final Connection systemConnection) | |
213 throws SQLException | |
214 { | |
215 recommend( | |
216 parameters, userId, result, | |
217 systemConnection, | |
218 (Connection)null); | |
219 } | |
220 }); | |
221 /* | |
210 systemSession.doWork(new Work() { | 222 systemSession.doWork(new Work() { |
211 @Override | 223 @Override |
212 public void execute(final Connection systemConnection) | 224 public void execute(final Connection systemConnection) |
213 throws SQLException | 225 throws SQLException |
214 { | 226 { |
223 sedDBConnection); | 235 sedDBConnection); |
224 } | 236 } |
225 }); | 237 }); |
226 } | 238 } |
227 }); | 239 }); |
240 */ | |
228 } | 241 } |
229 | 242 |
230 public void recommend( | 243 public void recommend( |
231 Map<String, Object> parameters, | 244 Map<String, Object> parameters, |
232 String userId, | 245 String userId, |
248 | 261 |
249 try { | 262 try { |
250 connections.add(new Builder.NamedConnection( | 263 connections.add(new Builder.NamedConnection( |
251 CONNECTION_SYSTEM, systemConnection, true)); | 264 CONNECTION_SYSTEM, systemConnection, true)); |
252 | 265 |
253 connections.add(new Builder.NamedConnection( | 266 if (seddbConnection != null) { |
254 CONNECTION_SEDDB, seddbConnection, true)); | 267 connections.add(new Builder.NamedConnection( |
268 CONNECTION_SEDDB, seddbConnection, true)); | |
269 } | |
255 | 270 |
256 if (userConnection != null) { | 271 if (userConnection != null) { |
257 connections.add(new Builder.NamedConnection( | 272 connections.add(new Builder.NamedConnection( |
258 CONNECTION_USER, userConnection, false)); | 273 CONNECTION_USER, userConnection, false)); |
259 } | 274 } |