Mercurial > dive4elements > framework
comparison ChangeLog @ 229:328ef982d768
When an artifact is touched the collections which contain the artifact are touched, too.
artifacts/trunk@1631 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 31 Mar 2011 08:58:42 +0000 |
parents | dd977fb7552e |
children | fbd57d2eeaef |
comparison
equal
deleted
inserted
replaced
228:dd977fb7552e | 229:328ef982d768 |
---|---|
1 2011-03-31 Sascha L. Teichmann <sascha.teichmann@intevation.de> | |
2 | |
3 * artifact-database/doc/schema-h2.sql, artifact-database/doc/schema-pg.sql: | |
4 Added a trigger on artifacts. If an artifact is changed the last_access | |
5 timestamp of the collections in which the artifact is in are updated, too. | |
6 Needs testing! | |
7 | |
8 - In PostgreSQL it is done by a trigger written in plpgsql. So don't | |
9 forget to the language to the database! | |
10 | |
11 - In H2 it is done by a trigger written in Java, because H2 does not | |
12 offer a script level trigger support. | |
13 | |
14 * artifact-database/src/main/java/de/intevation/artifactdatabase/h2/CollectionAccessUpdateTrigger.java: | |
15 The H2 trigger. | |
16 | |
17 * artifact-database/src/main/resources/sql/org-h2-driver.properties: | |
18 Added the statement which is executed if the trigger fires. | |
19 | |
1 2011-03-31 Ingo Weinzierl <ingo@intevation.de> | 20 2011-03-31 Ingo Weinzierl <ingo@intevation.de> |
2 | 21 |
3 * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java: | 22 * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java: |
4 Added an implementation of DeferredOutput for ArtifactCollections and | 23 Added an implementation of DeferredOutput for ArtifactCollections and |
5 implemented the out() operation of an ArtifactCollection. | 24 implemented the out() operation of an ArtifactCollection. |