changeset 233:16cd059945e5

Removed trailing whitespace. artifacts/trunk@1638 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 03 Apr 2011 10:45:48 +0000
parents 202b6ae2fcad
children 23d642319a0b
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java artifact-database/src/main/java/de/intevation/artifactdatabase/LazyBackendUser.java artifact-database/src/main/java/de/intevation/artifactdatabase/h2/CollectionAccessUpdateTrigger.java artifacts/src/main/java/de/intevation/artifacts/ArtifactCollectionFactory.java
diffstat 6 files changed, 27 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Mar 31 17:14:22 2011 +0000
+++ b/ChangeLog	Sun Apr 03 10:45:48 2011 +0000
@@ -1,3 +1,16 @@
+2011-04-03	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/**/*.java: Removed trailing whitespace.
+
+2011-03-31	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/artifactdatabase/DatabaseCleaner.java:
+	  Removes outdated collections, too.
+
+	* src/main/resources/sql/org-h2-driver.properties,
+	  src/main/resources/sql/org-postgresql-driver.properties:
+	  Added SQL statements to figure out outdated collections.
+
 2011-03-31	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/StringUtils.java:
@@ -39,7 +52,7 @@
 	  Needs testing!
 
 	  - In PostgreSQL it is done by a trigger written in plpgsql. So don't
-	    forget to the language to the database!
+	    forget to add the language to the database!
 
 	  - In H2 it is done by a trigger written in Java, because H2 does not
 	    offer a script level trigger support.
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java	Thu Mar 31 17:14:22 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java	Sun Apr 03 10:45:48 2011 +0000
@@ -59,7 +59,7 @@
  * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a>
  */
 public class ArtifactDatabaseImpl
-implements   ArtifactDatabase, 
+implements   ArtifactDatabase,
              DatabaseCleaner.LockedIdsProvider,
              Backend.FactoryLookup
 {
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java	Thu Mar 31 17:14:22 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java	Sun Apr 03 10:45:48 2011 +0000
@@ -762,7 +762,7 @@
     }
 
     public User createUser(
-        final String      name, 
+        final String      name,
         final Document    role,
         final UserFactory factory,
         final Object      context
@@ -849,7 +849,7 @@
                 prepareStatement(SQL_DELETE_USER_COLLECTION_ITEMS);
                 stmnt.setInt(1, id);
                 stmnt.execute();
-                
+
                 reset();
 
                 // delete the collections of the user
@@ -875,7 +875,7 @@
     }
 
     public User getUser(
-        final String      identifier, 
+        final String      identifier,
         final UserFactory factory,
         final Object      context
     ) {
@@ -910,7 +910,7 @@
     }
 
     public User [] getUsers(
-        final UserFactory factory, 
+        final UserFactory factory,
         final Object      context
     ) {
         final ArrayList<User> users = new ArrayList<User>();
@@ -941,7 +941,7 @@
     }
 
     public ArtifactCollection createCollection(
-        final String                    ownerIdentifier, 
+        final String                    ownerIdentifier,
         final String                    name,
         final ArtifactCollectionFactory factory,
         final Document                  attribute,
@@ -1107,7 +1107,7 @@
         final UserFactory               userFactory,
         final Object                    context
     ) {
-        if (ownerIdentifier != null 
+        if (ownerIdentifier != null
         && !isValidIdentifier(ownerIdentifier)) {
             logger.debug("Invalid owner id: '" + ownerIdentifier + "'");
             return null;
@@ -1238,7 +1238,7 @@
     }
 
     public boolean setCollectionAttribute(
-        final String   collectionId, 
+        final String   collectionId,
         final String   artifactId,
         Document       attribute
     ) {
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/LazyBackendUser.java	Thu Mar 31 17:14:22 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/LazyBackendUser.java	Sun Apr 03 10:45:48 2011 +0000
@@ -23,7 +23,7 @@
 
     public LazyBackendUser(
         String      identifier,
-        UserFactory factory, 
+        UserFactory factory,
         Backend     backend,
         Object      context
     ) {
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/h2/CollectionAccessUpdateTrigger.java	Thu Mar 31 17:14:22 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/h2/CollectionAccessUpdateTrigger.java	Sun Apr 03 10:45:48 2011 +0000
@@ -26,13 +26,13 @@
         String     tableName,
         boolean    before,
         int        type
-    ) 
+    )
     throws SQLException {
         logger.debug("CollectionAccessUpdateTrigger.init");
     }
 
     public void fire(
-        Connection conn, 
+        Connection conn,
         Object []  oldRow,
         Object []  newRow
     )
--- a/artifacts/src/main/java/de/intevation/artifacts/ArtifactCollectionFactory.java	Thu Mar 31 17:14:22 2011 +0000
+++ b/artifacts/src/main/java/de/intevation/artifacts/ArtifactCollectionFactory.java	Sun Apr 03 10:45:48 2011 +0000
@@ -36,10 +36,10 @@
      * @return a new {@linkplain de.intevation.artifacts.ArtifactCollection ArtifactCollection}
      */
     ArtifactCollection createCollection(
-        String   identifier, 
+        String   identifier,
         String   name,
         Date     creationTime,
-        Document data, 
+        Document data,
         Object   context);
 
     /**

http://dive4elements.wald.intevation.org