summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/data
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2011-08-11 07:10:25 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2011-08-11 07:10:25 +0000
commitb10d986024476120bd5d9879ad6286fe6895dbb5 (patch)
tree486e526d90e6df4901e5d4902094eb028a04b6fb /src/com/vaadin/data
parenta0875ceaed3454116cd3fd19038d03d5a4724106 (diff)
downloadvaadin-framework-b10d986024476120bd5d9879ad6286fe6895dbb5.tar.gz
vaadin-framework-b10d986024476120bd5d9879ad6286fe6895dbb5.zip
Added missing Serializable interface to classes in SQLContainer #5712
svn changeset:20289/svn branch:6.7
Diffstat (limited to 'src/com/vaadin/data')
-rw-r--r--src/com/vaadin/data/util/sqlcontainer/CacheFlushNotifier.java3
-rw-r--r--src/com/vaadin/data/util/sqlcontainer/query/generator/StatementHelper.java3
-rw-r--r--src/com/vaadin/data/util/sqlcontainer/query/generator/filter/FilterTranslator.java4
-rw-r--r--src/com/vaadin/data/util/sqlcontainer/query/generator/filter/QueryBuilder.java3
-rw-r--r--src/com/vaadin/data/util/sqlcontainer/query/generator/filter/StringDecorator.java4
5 files changed, 12 insertions, 5 deletions
diff --git a/src/com/vaadin/data/util/sqlcontainer/CacheFlushNotifier.java b/src/com/vaadin/data/util/sqlcontainer/CacheFlushNotifier.java
index bb61fefdc8..5ce84ba8b1 100644
--- a/src/com/vaadin/data/util/sqlcontainer/CacheFlushNotifier.java
+++ b/src/com/vaadin/data/util/sqlcontainer/CacheFlushNotifier.java
@@ -1,5 +1,6 @@
package com.vaadin.data.util.sqlcontainer;
+import java.io.Serializable;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
@@ -13,7 +14,7 @@ import com.vaadin.data.util.sqlcontainer.query.TableQuery;
* CacheFlushNotifier is a simple static notification mechanism to inform other
* SQLContainers that the contents of their caches may have become stale.
*/
-class CacheFlushNotifier {
+class CacheFlushNotifier implements Serializable{
/*
* SQLContainer instance reference list and dead reference queue. Used for
* the cache flush notification feature.
diff --git a/src/com/vaadin/data/util/sqlcontainer/query/generator/StatementHelper.java b/src/com/vaadin/data/util/sqlcontainer/query/generator/StatementHelper.java
index 90d2983ef6..d6952d446e 100644
--- a/src/com/vaadin/data/util/sqlcontainer/query/generator/StatementHelper.java
+++ b/src/com/vaadin/data/util/sqlcontainer/query/generator/StatementHelper.java
@@ -1,5 +1,6 @@
package com.vaadin.data.util.sqlcontainer.query.generator;
+import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.PreparedStatement;
@@ -21,7 +22,7 @@ import java.util.Map;
* This class will also fill the values with correct setters into the
* PreparedStatement on request.
*/
-public class StatementHelper {
+public class StatementHelper implements Serializable{
private String queryString;
diff --git a/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/FilterTranslator.java b/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/FilterTranslator.java
index be649dfa7f..e0b9c81b1d 100644
--- a/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/FilterTranslator.java
+++ b/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/FilterTranslator.java
@@ -1,9 +1,11 @@
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
+import java.io.Serializable;
+
import com.vaadin.data.Container.Filter;
import com.vaadin.data.util.sqlcontainer.query.generator.StatementHelper;
-public interface FilterTranslator {
+public interface FilterTranslator extends Serializable {
public boolean translatesFilter(Filter filter);
public String getWhereStringForFilter(Filter filter, StatementHelper sh);
diff --git a/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/QueryBuilder.java b/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/QueryBuilder.java
index 7649671726..a29e4bcb61 100644
--- a/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/QueryBuilder.java
+++ b/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/QueryBuilder.java
@@ -1,5 +1,6 @@
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
@@ -7,7 +8,7 @@ import java.util.List;
import com.vaadin.data.Container.Filter;
import com.vaadin.data.util.sqlcontainer.query.generator.StatementHelper;
-public class QueryBuilder {
+public class QueryBuilder implements Serializable{
private static ArrayList<FilterTranslator> filterTranslators = new ArrayList<FilterTranslator>();
private static StringDecorator stringDecorator = new StringDecorator("\"",
diff --git a/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/StringDecorator.java b/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/StringDecorator.java
index 10d33ea6dd..d82af80bf9 100644
--- a/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/StringDecorator.java
+++ b/src/com/vaadin/data/util/sqlcontainer/query/generator/filter/StringDecorator.java
@@ -1,5 +1,7 @@
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
+import java.io.Serializable;
+
/**
* The StringDecorator knows how to produce a quoted string using the specified
* quote start and quote end characters. It also handles grouping of a string
@@ -10,7 +12,7 @@ package com.vaadin.data.util.sqlcontainer.query.generator.filter;
*
* @author Vaadin Ltd
*/
-public class StringDecorator {
+public class StringDecorator implements Serializable{
private final String quoteStart;
private final String quoteEnd;