changeset 33:251e8904d6c2

Make the Interfaces Serializable to make them usable in the Artifactdatabase. Bug Fixed in SQL-Statement artifacts/trunk@81 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 14 Sep 2009 13:36:35 +0000
parents c2d53bd30ab8
children 9935e1c928de
files Changelog artifact-database/src/main/resources/sql/org-h2-driver.properties artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java
diffstat 3 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Changelog	Sun Sep 13 14:50:53 2009 +0000
+++ b/Changelog	Mon Sep 14 13:36:35 2009 +0000
@@ -1,3 +1,11 @@
+2009-09-14  Tim Englich  <tim.englich@intevation.de>
+
+    * src/main/java/de/intevation/artifacts/ArtifactFactory.java Edited:
+      Make Objects Serializable 
+
+    * src/main/resources/sql/org-h2-driver.properties: 
+      Bug Fixed in SQL-Query
+      
 2009-09-13	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	Refactored the persistent handling of the artifacts in the 
--- a/artifact-database/src/main/resources/sql/org-h2-driver.properties	Sun Sep 13 14:50:53 2009 +0000
+++ b/artifact-database/src/main/resources/sql/org-h2-driver.properties	Mon Sep 14 13:36:35 2009 +0000
@@ -2,7 +2,7 @@
 
 artifacts.insert=INSERT INTO artifacts \
     (id, gid, creation, last_access, ttl, data) \
-    VALUES (?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?, data)
+    VALUES (?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?, ?)
 
 artifacts.update=UPDATE artifacts SET last_access = CURRENT_TIMESTAMP, \
     data = ? WHERE id = ?
--- a/artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java	Sun Sep 13 14:50:53 2009 +0000
+++ b/artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java	Mon Sep 14 13:36:35 2009 +0000
@@ -1,5 +1,7 @@
 package de.intevation.artifacts;
 
+import java.io.Serializable;
+
 import org.w3c.dom.Document;
 import org.w3c.dom.Node;
 
@@ -8,7 +10,7 @@
  *
  * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
  */
-public interface ArtifactFactory
+public interface ArtifactFactory extends Serializable
 {
     /**
      * The short name of this factory.

http://dive4elements.wald.intevation.org