diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2008-01-26 23:16:38 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2008-01-26 23:16:38 +0000 |
commit | f6ea4c0f97bf144ee2501839b6704af661a8e674 (patch) | |
tree | 86a63fc90468e1c38b69a7977caa139a12c781b0 | |
parent | 63033e24be5a155c948a3fb418f91829865cc324 (diff) |
Added exceptions to DelegateSupport.
-rw-r--r-- | src/main/java/com/amazon/carbonado/gen/DelegateSupport.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/com/amazon/carbonado/gen/DelegateSupport.java b/src/main/java/com/amazon/carbonado/gen/DelegateSupport.java index 31f0288..bff9400 100644 --- a/src/main/java/com/amazon/carbonado/gen/DelegateSupport.java +++ b/src/main/java/com/amazon/carbonado/gen/DelegateSupport.java @@ -18,6 +18,8 @@ package com.amazon.carbonado.gen;
+import com.amazon.carbonado.FetchException;
+import com.amazon.carbonado.PersistException;
import com.amazon.carbonado.Storable;
/**
@@ -27,12 +29,12 @@ import com.amazon.carbonado.Storable; * @since 1.2
*/
public interface DelegateSupport<S extends Storable> extends MasterSupport<S> {
- boolean doTryLoad(S storable);
+ boolean doTryLoad(S storable) throws FetchException;
- boolean doTryInsert(S storable);
+ boolean doTryInsert(S storable) throws PersistException;
- boolean doTryUpdate(S storable);
+ boolean doTryUpdate(S storable) throws PersistException;
- boolean doTryDelete(S storable);
+ boolean doTryDelete(S storable) throws PersistException;
}
|