diff 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
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java	Thu Mar 31 08:58:42 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java	Thu Mar 31 14:48:28 2011 +0000
@@ -234,8 +234,8 @@
      * back into the database.
      */
     public final class PersistentArtifact
-    extends            Id
     {
+        private int                id;
         private Artifact           artifact;
         private ArtifactSerializer serializer;
         private Long               ttl;
@@ -254,12 +254,16 @@
             Long               ttl,
             int                id
         ) {
-            super(id);
+            this.id         = id;
             this.artifact   = artifact;
             this.serializer = serializer;
             this.ttl        = ttl;
         }
 
+        public int getId() {
+            return id;
+        }
+
         /**
          * Returns the wrapped living artifact.
          * @return the living artifact.

http://dive4elements.wald.intevation.org