SilverStream
Application Server 3.5

com.sssw.srv.busobj
Class AgoRowModifyEvent

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

public class AgoRowModifyEvent
extends AgoTableRowEvent

Provides access to a modified row in an update transaction. It provides access to both the original values of the row being changed as well as the new values. An instance of this class is passed to each row modified event fired by the server. It also provides access to any other information about the the current session, the SilverStream Server, or an AgaData object.

See Also:
AgoTableRowEvent, AgiTableListener, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgoRowModifyEvent()
           
 
Method Summary
 AgaRowData getNewRowData()
          Returns an AgaRowData object representing the new values of the row being changed.
 AgaRowData getOldRowData()
          Returns an AgaRowData object representing the orignal values of the row to be changed.
 
Methods inherited from class com.sssw.srv.busobj.AgoTableRowEvent
abortTransaction, abortTransaction, isAborted
 
Methods inherited from class com.sssw.srv.busobj.AgoTableEvent
getConnection, getTableName, getTransactionID
 
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

AgoRowModifyEvent

public AgoRowModifyEvent()
Method Detail

getOldRowData

public AgaRowData getOldRowData()
Returns an AgaRowData object representing the orignal values of the row to be changed.
Usage:

When coding for the row modified event of a Table Listener business object, this method allows the row being modified to be inspected. It provides access to the old values to be changed in the row. The AgaRowData object returned contains all the old columns of the row in the modification, even those which are not being changed.

Example:
         AgaRowData agData = evt.getOldRowData();
 
See Also:
AgaRowData

getNewRowData

public AgaRowData getNewRowData()
Returns an AgaRowData object representing the new values of the row being changed.
Usage:

When coding for the row modified event of a Table Listener business object, this method allows the row being modified to be inspected, by providing access to the new values to be put in the row. The AgaRowData object returned contains all the columns being changed in the modification.

If the value of a column is not present, the AgaRowData.getProperty() for it will return null. In order to differentiate between a value which is not being changed and one that is being changed to null see AgaRowData.isPropertyPresent().

Example:
       AgaRowData agData = evt.getNewRowData();
 
See Also:
AgaRowData

SilverStream
Application Server 3.5