Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java @ 230:fbd57d2eeaef
Changed semantics of locked artifact ids.
artifacts/trunk@1634 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 31 Mar 2011 14:48:28 +0000 |
parents | 87a7773030b5 |
children | 16cd059945e5 |
comparison
equal
deleted
inserted
replaced
229:328ef982d768 | 230:fbd57d2eeaef |
---|---|
232 * After the describe(), feed(), advance() and out() operations | 232 * After the describe(), feed(), advance() and out() operations |
233 * of the artifact it must be possible to write to modified artifact | 233 * of the artifact it must be possible to write to modified artifact |
234 * back into the database. | 234 * back into the database. |
235 */ | 235 */ |
236 public final class PersistentArtifact | 236 public final class PersistentArtifact |
237 extends Id | |
238 { | 237 { |
238 private int id; | |
239 private Artifact artifact; | 239 private Artifact artifact; |
240 private ArtifactSerializer serializer; | 240 private ArtifactSerializer serializer; |
241 private Long ttl; | 241 private Long ttl; |
242 | 242 |
243 /** | 243 /** |
252 Artifact artifact, | 252 Artifact artifact, |
253 ArtifactSerializer serializer, | 253 ArtifactSerializer serializer, |
254 Long ttl, | 254 Long ttl, |
255 int id | 255 int id |
256 ) { | 256 ) { |
257 super(id); | 257 this.id = id; |
258 this.artifact = artifact; | 258 this.artifact = artifact; |
259 this.serializer = serializer; | 259 this.serializer = serializer; |
260 this.ttl = ttl; | 260 this.ttl = ttl; |
261 } | |
262 | |
263 public int getId() { | |
264 return id; | |
261 } | 265 } |
262 | 266 |
263 /** | 267 /** |
264 * Returns the wrapped living artifact. | 268 * Returns the wrapped living artifact. |
265 * @return the living artifact. | 269 * @return the living artifact. |