comparison artifact-database/src/main/resources/sql/org-postgresql-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
127 VALUES (?, ?::uuid, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?, ?) 127 VALUES (?, ?::uuid, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?, ?)
128 128
129 collection.creation.time=SELECT creation from collections WHERE id = ? 129 collection.creation.time=SELECT creation from collections WHERE id = ?
130 130
131 collections.select.user= \ 131 collections.select.user= \
132 SELECT c.gid, c.name, c.creation, u.gid FROM \ 132 SELECT c.gid, c.name, c.creation, u.gid, c.ttl FROM \
133 collections c LEFT OUTER JOIN users u ON c.owner_id = u.id \ 133 collections c LEFT OUTER JOIN users u ON c.owner_id = u.id \
134 WHERE u.gid = ?::uuid 134 WHERE u.gid = ?::uuid
135 135
136 collections.select.all= \ 136 collections.select.all= \
137 SELECT c.gid, c.name, c.creation, u.gid FROM \ 137 SELECT c.gid, c.name, c.creation, u.gid, c.ttl FROM \
138 collections c LEFT OUTER JOIN users u ON c.owner_id = u.id 138 collections c LEFT OUTER JOIN users u ON c.owner_id = u.id
139 139
140 collections.select.by.gid= \ 140 collections.select.by.gid= \
141 SELECT id, name, owner_id, creation, last_access, attribute \ 141 SELECT id, name, owner_id, creation, last_access, attribute, ttl \
142 FROM collections WHERE gid = ?::uuid 142 FROM collections WHERE gid = ?::uuid
143 143
144 users.collections=SELECT collection_id, gid, name FROM collections WHERE owner_id = ? 144 users.collections=SELECT collection_id, gid, name FROM collections WHERE owner_id = ?
145 users.collection.ids=SELECT collection_id FROM collections WHERE owner_id = ? 145 users.collection.ids=SELECT collection_id FROM collections WHERE owner_id = ?
146 146

http://dive4elements.wald.intevation.org