From f6ea4c0f97bf144ee2501839b6704af661a8e674 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Sat, 26 Jan 2008 23:16:38 +0000 Subject: Added exceptions to DelegateSupport. --- src/main/java/com/amazon/carbonado/gen/DelegateSupport.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/amazon/carbonado') 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 extends MasterSupport { - 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; } -- cgit v1.2.3