Mercurial > dive4elements > framework
comparison artifact-database/src/main/resources/sql/org-h2-driver.properties @ 303:190aa68ae7a8
Added method to artifact database to load all artifacts.
artifacts/trunk@2408 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 27 Jul 2011 09:32:26 +0000 |
parents | 942a54670a72 |
children | a077bb098eb4 |
comparison
equal
deleted
inserted
replaced
302:c066343c63b0 | 303:190aa68ae7a8 |
---|---|
179 collection.get.attribute= \ | 179 collection.get.attribute= \ |
180 SELECT c.attribute FROM collections c WHERE c.gid = ? | 180 SELECT c.attribute FROM collections c WHERE c.gid = ? |
181 | 181 |
182 collection.set.attribute= \ | 182 collection.set.attribute= \ |
183 UPDATE collections SET attribute = ? WHERE gid = ? | 183 UPDATE collections SET attribute = ? WHERE gid = ? |
184 | |
185 all.artifacts = \ | |
186 SELECT u.gid AS u_gid, c.gid AS c_gid, a.gid AS a_gid, a.factory AS factory, a.data AS data FROM \ | |
187 users u INNER JOIN collections c ON u.id = c.owner_id \ | |
188 INNER JOIN collection_items ci ON c.id = ci.collection_id \ | |
189 INNER JOIN artifacts a ON a.if = ci.artifact_id \ | |
190 ORDER BY u_gid, c_gid |