コード例 #1
0
ファイル: Table.java プロジェクト: pologood/Lealone
 /**
  * Fire all triggers that need to be called after a row is updated.
  *
  * @param session the session
  * @param oldRow the old data or null for an insert
  * @param newRow the new data or null for a delete
  * @param rollback when the operation occurred within a rollback
  */
 public void fireAfterRow(Session session, Row oldRow, Row newRow, boolean rollback) {
   fireRow(session, oldRow, newRow, false, rollback);
   if (!rollback) {
     fireConstraints(session, oldRow, newRow, false);
   }
 }
コード例 #2
0
ファイル: Table.java プロジェクト: pologood/Lealone
 /**
  * Fire all triggers that need to be called before a row is updated.
  *
  * @param session the session
  * @param oldRow the old data or null for an insert
  * @param newRow the new data or null for a delete
  * @return true if no further action is required (for 'instead of' triggers)
  */
 public boolean fireBeforeRow(Session session, Row oldRow, Row newRow) {
   boolean done = fireRow(session, oldRow, newRow, true, false);
   fireConstraints(session, oldRow, newRow, true);
   return done;
 }