From 96895b1a9ed69231c9450eee2e4efc16d5f82441 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 6 Oct 2006 02:17:43 +0000 Subject: Check if trigger just overrides "try" methods. --- src/main/java/com/amazon/carbonado/spi/TriggerManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/amazon/carbonado/spi/TriggerManager.java b/src/main/java/com/amazon/carbonado/spi/TriggerManager.java index 4382429..cabf526 100644 --- a/src/main/java/com/amazon/carbonado/spi/TriggerManager.java +++ b/src/main/java/com/amazon/carbonado/spi/TriggerManager.java @@ -207,21 +207,27 @@ public class TriggerManager { int types = 0; if (overridesMethod(triggerClass, BEFORE_INSERT_METHOD) || + overridesMethod(triggerClass, BEFORE_TRY_INSERT_METHOD) || overridesMethod(triggerClass, AFTER_INSERT_METHOD) || + overridesMethod(triggerClass, AFTER_TRY_INSERT_METHOD) || overridesMethod(triggerClass, FAILED_INSERT_METHOD)) { types |= FOR_INSERT; } if (overridesMethod(triggerClass, BEFORE_UPDATE_METHOD) || + overridesMethod(triggerClass, BEFORE_TRY_INSERT_METHOD) || overridesMethod(triggerClass, AFTER_UPDATE_METHOD) || + overridesMethod(triggerClass, AFTER_TRY_UPDATE_METHOD) || overridesMethod(triggerClass, FAILED_UPDATE_METHOD)) { types |= FOR_UPDATE; } if (overridesMethod(triggerClass, BEFORE_DELETE_METHOD) || + overridesMethod(triggerClass, BEFORE_TRY_DELETE_METHOD) || overridesMethod(triggerClass, AFTER_DELETE_METHOD) || + overridesMethod(triggerClass, AFTER_TRY_DELETE_METHOD) || overridesMethod(triggerClass, FAILED_DELETE_METHOD)) { types |= FOR_DELETE; -- cgit v1.2.3