|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implemented by all business objects which listen for events on database tables. In the event that a silverstream client modifies the data in a table with a table listener, then at least two and perhaps as many as five of six possible events are fired. The beforeTableChange event is fired before the transaction is begun. Then the transaction is started and an event is fired just before each row is either inserted (rowInserted), modified (rowModified), or deleted (rowDeleted). Finally the afterTableChange event is fired just after the transaction is commited. If the transaction is abortted for any reason, the Aborted event is fired (and the afterTableChange event is not fired).
Note that table listeners are not database triggers. They are only fired if the data modification comes from a SilverStream client through the SilverStream Server. If some other database client directly modifies the database, the table listeners will not be fired.
When a Table-modified business object is created, SilverStream automatically adds the implements
AgiTableListener
clause to the object's class definition.
Method Summary | |
void |
aborted(AgoTransactionAbortEvent e)
Fires just after a transaction is aborted. |
void |
afterTableChange(AgoTableEvent e)
Fires just before a database transaction is started. |
void |
beforeTableChange(AgoTableEvent e)
Fires just before a database transaction is started. |
void |
rowDeleted(AgoRowDeleteEvent e)
Fires just before a row in the table is modified. |
void |
rowInserted(AgoRowInsertEvent e)
Fires just before a row is inserted into a table. |
void |
rowModified(AgoRowModifyEvent e)
Fires just before a row in the table is modified. |
Method Detail |
public void beforeTableChange(AgoTableEvent e)
e
- an instance of a AgoTableEvent.AgoTableEvent
public void rowInserted(AgoRowInsertEvent e)
e
- an instance of an AgoRowInsertEvent.AgoRowInsertEvent
public void rowModified(AgoRowModifyEvent e)
e
- an instance of an AgoRowModifyEvent.AgoRowModifyEvent
public void rowDeleted(AgoRowDeleteEvent e)
e
- AgoRowDeleteEvent
public void afterTableChange(AgoTableEvent e)
e
- an instance of a AgoTableEvent.AgoTableEvent
public void aborted(AgoTransactionAbortEvent e)
e
- an instance of an AgoTransactionAbortEvent.AgoTransactionAbortEvent
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |