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); } }
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(); } }
void removeTrigger__wrappee__base(DatabaseTrigger trigger) throws DatabaseException { acquireTriggerListWriteLock(); try { triggerList.remove(trigger); trigger.triggerRemoved(this); } finally { releaseTriggerListWriteLock(); } }
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(); } }