SilverStream
Application Server 3.5

com.sssw.srv.busobj
Class AgoTableEvent

java.lang.Object
 |
 +--java.util.EventObject
       |
       +--com.sssw.srv.busobj.AgoBusinessObjectEvent
             |
             +--com.sssw.srv.busobj.AgoTableEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AgoTableRowEvent

public class AgoTableEvent
extends AgoBusinessObjectEvent

Base class for all table event objects. An instance of this class is passed in to the beforeTableChange and afterTableChange events on business objects that have Table Modified triggers associated with them. The other table events are passed subclasses of this object as events.

See Also:
AgiTableListener, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgoTableEvent()
           
 
Method Summary
 Connection getConnection()
          Returns the java.sql.Connection that this transaction is using.
 String getTableName()
          Returns the name of the table on which the database operation is occurring.
 int getTransactionID()
          Returns an integer that identifies the transaction of this event.
 
Methods inherited from class com.sssw.srv.busobj.AgoBusinessObjectEvent
getAgaData, getDatabase, getDatabaseURL, getServer, getSession, getUser, runAgData, updateTransactionally, userInGroup
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgoTableEvent

public AgoTableEvent()
Method Detail

getTableName

public String getTableName()
Returns the name of the table on which the database operation is occurring.

getTransactionID

public int getTransactionID()
Returns an integer that identifies the transaction of this event.
Usage:

The integer has no relevance when compared to other transaction ids (except for equality comparisons). You can use this transaction id within the before, after, row delete, row modify, row insert, and abort events to connect the operations of a single transaction in a server-lifetime business object.


getConnection

public Connection getConnection()
Returns the java.sql.Connection that this transaction is using.
Usage:

If your code is doing other updates to the database within this transaction you need to use the same database connection to avoid a possible deadlock.


SilverStream
Application Server 3.5