diff options
Diffstat (limited to 'src/main/java/com/amazon/carbonado/spi')
-rw-r--r-- | src/main/java/com/amazon/carbonado/spi/TriggerManager.java | 6 |
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;
|