comparison artifact-database/src/main/resources/sql/org-h2-driver.properties @ 281:942a54670a72

Made the TTL of a Collection retrievable via getter method. artifacts/trunk@2174 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 21 Jun 2011 10:57:03 +0000
parents e92d5944fe4b
children 190aa68ae7a8
comparison
equal deleted inserted replaced
280:7fbe674d758a 281:942a54670a72
136 VALUES (?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?, ?) 136 VALUES (?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?, ?)
137 137
138 collection.creation.time=SELECT creation from collections WHERE id = ? 138 collection.creation.time=SELECT creation from collections WHERE id = ?
139 139
140 collections.select.user= \ 140 collections.select.user= \
141 SELECT c.gid, c.name, c.creation, u.gid FROM \ 141 SELECT c.gid, c.name, c.creation, u.gid, c.ttl FROM \
142 collections c LEFT OUTER JOIN users u ON c.owner_id = u.id \ 142 collections c LEFT OUTER JOIN users u ON c.owner_id = u.id \
143 WHERE u.gid = ? 143 WHERE u.gid = ?
144 144
145 collections.select.all= \ 145 collections.select.all= \
146 SELECT c.gid, c.name, c.creation, u.gid FROM \ 146 SELECT c.gid, c.name, c.creation, u.gid, c.ttl FROM \
147 collections c LEFT OUTER JOIN users u ON c.owner_id = u.id 147 collections c LEFT OUTER JOIN users u ON c.owner_id = u.id
148 148
149 collections.select.by.gid= \ 149 collections.select.by.gid= \
150 SELECT id, name, owner_id, creation, last_access, attribute \ 150 SELECT id, name, owner_id, creation, last_access, attribute, ttl \
151 FROM collections WHERE gid = ? 151 FROM collections WHERE gid = ?
152 152
153 users.collections=SELECT collection_id, gid, name FROM collections WHERE owner_id = ? 153 users.collections=SELECT collection_id, gid, name FROM collections WHERE owner_id = ?
154 users.collection.ids=SELECT collection_id FROM collections WHERE owner_id = ? 154 users.collection.ids=SELECT collection_id FROM collections WHERE owner_id = ?
155 155

http://dive4elements.wald.intevation.org