|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.dbi.TriggerManager
public class TriggerManager
Class that invokes the triggers associated with a database. It encapsulates the mechanics associated with actually invoking a trigger.
Nested Class Summary | |
---|---|
static class |
TriggerManager.MapOver<R,E>
Lisp inspired Map function. |
Constructor Summary | |
---|---|
TriggerManager()
|
Method Summary | |
---|---|
static void |
invokeAddRemoveTriggers(Locker locker,
List<Trigger> oldTriggers,
List<Trigger> newTriggers)
Invoke the triggers associated with the addition or removal of the trigger itself. |
static void |
runAbortTriggers(Txn txn)
Invokes the trigger methods associated with the abort of a transaction. |
static void |
runCloseTriggers(Locker locker,
DatabaseImpl dbImpl)
Invokes the trigger methods associated with the closing of a database. |
static void |
runCommitTriggers(Txn txn)
Invokes the trigger methods associated with the commit of a transaction. |
static void |
runDeleteTriggers(Locker locker,
DatabaseImpl dbImpl,
DatabaseEntry key,
DatabaseEntry oldData)
Invokes the trigger methods associated with a delete operation. |
static void |
runOpenTriggers(Locker locker,
Database db,
boolean isNew)
Invokes the trigger methods associated with the opening of a database. |
static void |
runOpenTriggers(Locker locker,
DatabaseImpl dbImpl,
boolean isNew)
Invokes the trigger methods associated with the opening of a database. |
static void |
runPutTriggers(Locker locker,
DatabaseImpl dbImpl,
DatabaseEntry key,
DatabaseEntry oldData,
DatabaseEntry newData)
Invokes the trigger methods associated with a put operation. |
static void |
runRemoveTriggers(Locker locker,
DatabaseImpl dbImpl)
Invokes the trigger methods associated with the removal of a database. |
static void |
runRenameTriggers(Locker locker,
DatabaseImpl dbImpl,
String newName)
Invokes the trigger methods associated with the renaming of a database. |
static void |
runTruncateTriggers(Locker locker,
DatabaseImpl newDb)
Invokes the trigger methods associated with the truncation of a database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TriggerManager()
Method Detail |
---|
public static void runOpenTriggers(Locker locker, Database db, boolean isNew)
public static void runOpenTriggers(Locker locker, DatabaseImpl dbImpl, boolean isNew)
public static void runCloseTriggers(Locker locker, DatabaseImpl dbImpl)
public static void runRemoveTriggers(Locker locker, DatabaseImpl dbImpl)
public static void runTruncateTriggers(Locker locker, DatabaseImpl newDb)
public static void runRenameTriggers(Locker locker, DatabaseImpl dbImpl, String newName)
public static void runCommitTriggers(Txn txn)
public static void runAbortTriggers(Txn txn)
public static void runPutTriggers(Locker locker, DatabaseImpl dbImpl, DatabaseEntry key, DatabaseEntry oldData, DatabaseEntry newData)
public static void runDeleteTriggers(Locker locker, DatabaseImpl dbImpl, DatabaseEntry key, DatabaseEntry oldData)
public static void invokeAddRemoveTriggers(Locker locker, List<Trigger> oldTriggers, List<Trigger> newTriggers)
locker
- the locker associated with the trigger update operationoldTriggers
- the current list of triggersnewTriggers
- the new list of triggers
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |