comparison flys-artifacts/ChangeLog @ 1011:aca3b46160cb

Added support for more than one db connection in datacage templating. flys-artifacts/trunk@2457 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 02 Aug 2011 22:16:16 +0000
parents d419c9904825
children 388e709224ec
comparison
equal deleted inserted replaced
1010:d419c9904825 1011:aca3b46160cb
1 2011-08-03 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2
3 Added support for more than one db connection in datacage templating.
4
5 * src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java:
6 Now you can pass a list of named db connections to the build process.
7 The purpose is to mix more then one database (e.g. the backend db and
8 the user specific one).
9
10 To use this feature you can add an "connection" attribute
11 to <dc:context> with the name of the connection to use.
12 If no connection name is given the last used is used again.
13 Initially the first connection in the given list is used.
14 If the context is left the connection that was active before
15 will be active again in a stacking manner.
16
17 When creating NamedConnection objects you can set a boolean flag
18 if the results coming from the connection should be cached. This
19 is useful e.g. for the user specific database which runs in-memory
20 so caching would introduce some superfluous overhead.
21
22 * src/main/java/de/intevation/flys/artifacts/datacage/templating/CompiledStatement.java:
23 When executing the queries explicitly pass if caching should be used.
24
1 2011-08-02 Sascha L. Teichmann <sascha.teichmann@intevation.de> 25 2011-08-02 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2 26
3 * src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java: 27 * src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java:
4 Forgot to fetch dialect dependent SQL statement for deleting 28 Forgot to fetch dialect dependent SQL statement for deleting
5 artifacts by uuid. 29 artifacts by uuid.

http://dive4elements.wald.intevation.org