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
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. |
AgoTableRowEvent
public AgoTableRowEvent()
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()