summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/data
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-02-03 09:04:26 +0000
committerArtur Signell <artur.signell@itmill.com>2009-02-03 09:04:26 +0000
commit0aab336612f6b0e56cd85d8cd41472287d106177 (patch)
treef978c7d11d377720335e0fa4dbf25c5e042a86d0 /src/com/itmill/toolkit/data
parente2c163e8faf82ceb23dd7212143da09534b12f54 (diff)
downloadvaadin-framework-0aab336612f6b0e56cd85d8cd41472287d106177.tar.gz
vaadin-framework-0aab336612f6b0e56cd85d8cd41472287d106177.zip
Fix and testcases for #2466 and #2532 - commit now throws InvalidValueException
svn changeset:6710/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/data')
-rw-r--r--src/com/itmill/toolkit/data/Buffered.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/data/Buffered.java b/src/com/itmill/toolkit/data/Buffered.java
index 8fd9b1c5be..4aba27376d 100644
--- a/src/com/itmill/toolkit/data/Buffered.java
+++ b/src/com/itmill/toolkit/data/Buffered.java
@@ -4,6 +4,7 @@
package com.itmill.toolkit.data;
+import com.itmill.toolkit.data.Validator.InvalidValueException;
import com.itmill.toolkit.terminal.ErrorMessage;
import com.itmill.toolkit.terminal.PaintException;
import com.itmill.toolkit.terminal.PaintTarget;
@@ -51,8 +52,11 @@ public interface Buffered {
* @throws SourceException
* if the operation fails because of an exception is thrown by
* the data source. The cause is included in the exception.
+ * @throws InvalidValueException
+ * if the operation fails because validation is enabled and the
+ * values do not validate
*/
- public void commit() throws SourceException;
+ public void commit() throws SourceException, InvalidValueException;
/**
* Discards all changes since last commit. The object updates its value from
@@ -85,9 +89,13 @@ public interface Buffered {
* @throws SourceException
* If the operation fails because of an exception is thrown by
* the data source.
+ * @throws InvalidValueException
+ * If the implicit commit operation fails because of a
+ * validation error.
*
*/
- public void setWriteThrough(boolean writeThrough) throws SourceException;
+ public void setWriteThrough(boolean writeThrough) throws SourceException,
+ InvalidValueException;
/**
* Tests if the object is in read-through mode. If the object is in