summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/spi
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-10-06 02:17:43 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-10-06 02:17:43 +0000
commit96895b1a9ed69231c9450eee2e4efc16d5f82441 (patch)
treef63e5619fb422ca185c346fe21fd4ddac6ce45a3 /src/main/java/com/amazon/carbonado/spi
parentd3784b496fb96459de0cd2e169e31bf5a122569b (diff)
Check if trigger just overrides "try" methods.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/spi')
-rw-r--r--src/main/java/com/amazon/carbonado/spi/TriggerManager.java6
1 files changed, 6 insertions, 0 deletions
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<S extends Storable> {
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;