From c90dfdf1c79371fd2102dd83c01503572a373518 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Thu, 29 Mar 2007 17:23:05 +0000 Subject: Update comments. --- src/main/java/com/amazon/carbonado/spi/LobEngineTrigger.java | 4 +++- src/main/java/com/amazon/carbonado/spi/MasterFeature.java | 5 ++++- src/main/java/com/amazon/carbonado/spi/StoredSequence.java | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/spi') diff --git a/src/main/java/com/amazon/carbonado/spi/LobEngineTrigger.java b/src/main/java/com/amazon/carbonado/spi/LobEngineTrigger.java index 2e42d8e..4b5ac5f 100644 --- a/src/main/java/com/amazon/carbonado/spi/LobEngineTrigger.java +++ b/src/main/java/com/amazon/carbonado/spi/LobEngineTrigger.java @@ -70,7 +70,9 @@ class LobEngineTrigger extends Trigger { } public void afterInsert(S storable, Object state) throws PersistException { - // Save user lob value contents into new lobs. + // Save user lob value contents into new lobs. This is done after the + // insert of the enclosing record to avoid an expensive rollback if a + // constraint violation is detected. Object[] userLobs = (Object[]) state; int length = mLobProperties.length; for (int i=0; i