SilverStream
Application Server 3.5

com.sssw.srv.busobj
Class AgoTableRowEvent

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

public class AgoTableRowEvent
extends AgoTableEvent

An abstract base class for event objects of TableListener business objects (such as AgoRowDeleteEvent, AgoRowInsertEvent, AgoRowModifyEvent). This class provides methods that let you abort a transaction on the row currently being manipulated.

See Also:
AgiTableListener, AgoRowDeleteEvent, AgoRowModifyEvent, AgoRowInsertEvent, AgoTableEvent, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgoTableRowEvent()
           
 
Method Summary
 void abortTransaction()
          Stops the database transaction in progress and backs out any changes.
 void abortTransaction(String msg)
          Stops the transaction in progress and backs out any changes.
 boolean isAborted()
          Returns true if the database transaction was aborted by the abortTransaction() method.
 
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

AgoTableRowEvent

public AgoTableRowEvent()
Method Detail

abortTransaction

public void abortTransaction()
Stops the database transaction in progress and backs out any changes. SilverStream displays the message "Transaction aborted by business object" by default. Specifically this message is the message of the exception thrown by the updateRows() method of the AgoData. In a java form this will be displayed in a dialog box.
See Also:
AgoTableRowEvent.isAborted(), AgoTableRowEvent.abortTransaction( String msg ), AgiDataRunner.cancelAgent(), AgiDataRunner.uncancelAgent(), AgiDataRunner.isAgentCancelled()

abortTransaction

public void abortTransaction(String msg)
Stops the transaction in progress and backs out any changes. SilverStream displays the message "Transaction aborted by business object" by default. Specifically this message is the message of the exception thrown by the updateRows() method of the AgoData. In a java form this will be displayed in a dialog box.
Parameters:
msg - specifies a message to display to the user making the database changes. This message is appended to the default.
See Also:
AgoTableRowEvent.isAborted(), AgoTableRowEvent.abortTransaction(), AgiDataRunner.cancelAgent(), AgiDataRunner.uncancelAgent(), AgiDataRunner.isAgentCancelled()

isAborted

public boolean isAborted()
Returns true if the database transaction was aborted by the abortTransaction() method.
See Also:
AgoTableRowEvent.abortTransaction( String msg ), AgoTableRowEvent.abortTransaction(), AgiDataRunner.cancelAgent(), AgiDataRunner.uncancelAgent(), AgiDataRunner.isAgentCancelled()

SilverStream
Application Server 3.5