|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static int |
TRIGGER_ON_ADD
Notify the trigger object when a row is added to the database table. |
static int |
TRIGGER_ON_COMMIT
Notify the trigger object when a transaction involving the database table is committed. |
static int |
TRIGGER_ON_DELETE
Notify the trigger object when a row is deleted in the database table. |
static int |
TRIGGER_ON_ROLLBACK
Notify the trigger object when a transaction involving the database table is rolled back. |
static int |
TRIGGER_ON_UPDATE
Notify the trigger object when an update to the database table takes place. |
Constructor Summary | |
idbTrigger(java.lang.String table,
int events) Constructs a new Trigger object. |
Method Summary | |
void |
delete()
Deletes this trigger. |
java.sql.Connection |
getConnection()
Finds the connection which activated the current trigger activation. |
int |
getEvents()
Returns the bitmap of events that this trigger is notified of. |
java.lang.String |
getTableName()
Returns the name of the table that this trigger is monitoring. |
void |
onAdd(java.util.Vector row,
long transactionID) Callback invoked by InstantDB when a row is added to the table being monitored. |
void |
onCommit(long transactionID)
Callback invoked by InstantDB when a transaction involving the table being monitored is committed. |
void |
onDelete(java.util.Vector row,
long transactionID) Callback invoked by InstantDB when a row is deleted from the table being monitored. |
void |
onRollback(long transactionID)
Callback invoked by InstantDB when a transaction involving the table being monitored is rolled back. |
void |
onUpdate(java.util.Vector row,
long transactionID) Callback invoked by InstantDB when a row in the table being monitored is updated. |
void |
preUpdate(java.util.Vector row,
long transactionID) Callback invoked by InstantDB before a row is updated in the table being monitored. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
Constructor Detail |
table
- The name of a table in the database.
This should be of the form url.name, where url is the url
used to open the database and name is the table name. If no url
is specified (i.e. table contains no dot) then the first database
opened that contains the named table is assumed.
events
- A bitmap of the events to trigger
on. This can be constructed by adding together one or more of the TRIGGER_ON_xxxx
event constants. Must be non-zero.
table
does not
exist or if events
is non-zero.
Method Detail |
row
- The row in the table which is being
modified. This consists of a vector of objects ordered according to column
position. Objects can be of type:
transactionID
- The transactionID of the transaction
modifying the table.
row
- The row in the table which is being
modified. This consists of a vector of objects ordered according to column
position. Objects can be of type:
transactionID
- The transactionID of the transaction
modifying the table.
row
- The row in the table which is being
modified. This consists of a vector of objects ordered according to column
position. Objects can be of type:
transactionID
- The transactionID of the transaction
modifying the table.
row
- The row in the table which is being
modified. This consists of a vector of objects ordered according to column
position. Objects can be of type:
transactionID
- The transactionID of the transaction
modifying the table.
transactionID
- The transaction ID of the
transaction being rolled back.
transactionID
- The transaction ID of the
transaction being rolled back.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |