|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.ForeignKeyTrigger
class ForeignKeyTrigger
| Constructor Summary | |
|---|---|
ForeignKeyTrigger(SecondaryDatabase secDb)
|
|
| Method Summary | |
|---|---|
void |
databaseUpdated(Database db,
Locker locker,
DatabaseEntry priKey,
DatabaseEntry oldData,
DatabaseEntry newData)
Notifies the trigger that a put or delete operation has been performed on the database. |
void |
triggerAdded(Database db)
Notifies the trigger that it has been added and will start receiving update notifications. |
void |
triggerRemoved(Database db)
Notifies the trigger that it has been removed and will stop receiving update notifications. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ForeignKeyTrigger(SecondaryDatabase secDb)
| Method Detail |
|---|
public void triggerAdded(Database db)
DatabaseTrigger
triggerAdded in interface DatabaseTriggerdb - the database to which the trigger was added.public void triggerRemoved(Database db)
DatabaseTrigger
triggerRemoved in interface DatabaseTriggerdb - the database from which the trigger was removed.
public void databaseUpdated(Database db,
Locker locker,
DatabaseEntry priKey,
DatabaseEntry oldData,
DatabaseEntry newData)
throws DatabaseException
DatabaseTriggerWhen a new entry is inserted, oldData will be null and newData will be non-null.
When an existing entry is updated, oldData and newData will be non-null.
When an existing entry is deleted, oldData will be non-null and newData will be null.
databaseUpdated in interface DatabaseTriggerdb - the database that was modified.locker - the internal locker.priKey - the primary key, which is never null.oldData - the primary data before the change, or null if the record
did not previously exist.newData - the primary data after the change, or null if the record
has been deleted.
DatabaseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||