Author: rwesten
Date: Tue Jul 24 10:43:25 2012
New Revision: 1364969

URL: http://svn.apache.org/viewvc?rev=1364969&view=rev
Log:
improved generics for FileStore

Modified:
    
incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/store/file/src/main/java/org/apache/stanbol/contenthub/store/file/ChangeSetImpl.java
    
incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/store/file/src/main/java/org/apache/stanbol/contenthub/store/file/FileRevisionManager.java

Modified: 
incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/store/file/src/main/java/org/apache/stanbol/contenthub/store/file/ChangeSetImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/store/file/src/main/java/org/apache/stanbol/contenthub/store/file/ChangeSetImpl.java?rev=1364969&r1=1364968&r2=1364969&view=diff
==============================================================================
--- 
incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/store/file/src/main/java/org/apache/stanbol/contenthub/store/file/ChangeSetImpl.java
 (original)
+++ 
incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/store/file/src/main/java/org/apache/stanbol/contenthub/store/file/ChangeSetImpl.java
 Tue Jul 24 10:43:25 2012
@@ -22,11 +22,11 @@ import org.apache.clerezza.rdf.core.UriR
 import org.apache.stanbol.contenthub.servicesapi.store.ChangeSet;
 import org.apache.stanbol.contenthub.servicesapi.store.Store;
 
-public class ChangeSetImpl implements ChangeSet {
+public class ChangeSetImpl<Item> implements ChangeSet<Item> {
     private long from;
     private long to;
     private Set<String> changedUris;
-    private Store store;
+    private Store<Item> store;
 
     @Override
     public long fromRevision() {
@@ -44,7 +44,7 @@ public class ChangeSetImpl implements Ch
     }
 
     @Override
-    public Store getStore() {
+    public Store<Item> getStore() {
         return store;
     }
 
@@ -60,7 +60,7 @@ public class ChangeSetImpl implements Ch
         this.changedUris = changedUris;
     }
 
-    public void setStore(Store store) {
+    public void setStore(Store<Item> store) {
         this.store = store;
     }
 }

Modified: 
incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/store/file/src/main/java/org/apache/stanbol/contenthub/store/file/FileRevisionManager.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/store/file/src/main/java/org/apache/stanbol/contenthub/store/file/FileRevisionManager.java?rev=1364969&r1=1364968&r2=1364969&view=diff
==============================================================================
--- 
incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/store/file/src/main/java/org/apache/stanbol/contenthub/store/file/FileRevisionManager.java
 (original)
+++ 
incubator/stanbol/branches/contenthub-two-layered-structure/contenthub/store/file/src/main/java/org/apache/stanbol/contenthub/store/file/FileRevisionManager.java
 Tue Jul 24 10:43:25 2012
@@ -23,7 +23,6 @@ import java.sql.SQLException;
 import java.util.LinkedHashSet;
 import java.util.Set;
 
-import org.apache.clerezza.rdf.core.UriRef;
 import org.apache.felix.scr.annotations.Component;
 import org.apache.felix.scr.annotations.Reference;
 import org.apache.felix.scr.annotations.Service;
@@ -142,8 +141,8 @@ public class FileRevisionManager {
      * @return a {@link ChangeSet} including the changes in the store
      * @throws StoreException
      */
-    public ChangeSet getChanges(long revision, int batchSize) throws 
StoreException {
-        ChangeSetImpl changes = new ChangeSetImpl();
+    public ChangeSet<ContentItem> getChanges(long revision, int batchSize) 
throws StoreException {
+        ChangeSetImpl<ContentItem> changes = new ChangeSetImpl<ContentItem>();
 
         // get connection
         Connection con = dbManager.getConnection();


Reply via email to