Пример #1
0
 protected void hook54__wrappee__base(
     Locker locker, DatabaseEntry priKey, DatabaseEntry oldData, DatabaseEntry newData)
     throws DatabaseException {
   for (int i = 0; i < triggerList.size(); i += 1) {
     DatabaseTrigger trigger = (DatabaseTrigger) triggerList.get(i);
     trigger.databaseUpdated(this, locker, priKey, oldData, newData);
   }
 }
Пример #2
0
 private void removeAllTriggers__wrappee__base() throws DatabaseException {
   acquireTriggerListWriteLock();
   try {
     for (int i = 0; i < triggerList.size(); i += 1) {
       DatabaseTrigger trigger = (DatabaseTrigger) triggerList.get(i);
       trigger.triggerRemoved(this);
     }
     triggerList.clear();
   } finally {
     releaseTriggerListWriteLock();
   }
 }
Пример #3
0
 void removeTrigger__wrappee__base(DatabaseTrigger trigger) throws DatabaseException {
   acquireTriggerListWriteLock();
   try {
     triggerList.remove(trigger);
     trigger.triggerRemoved(this);
   } finally {
     releaseTriggerListWriteLock();
   }
 }
Пример #4
0
 void addTrigger__wrappee__base(DatabaseTrigger trigger, boolean insertAtFront)
     throws DatabaseException {
   acquireTriggerListWriteLock();
   try {
     if (insertAtFront) {
       triggerList.add(0, trigger);
     } else {
       triggerList.add(trigger);
     }
     trigger.triggerAdded(this);
   } finally {
     releaseTriggerListWriteLock();
   }
 }