Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change 
notification.

The following page has been changed by KevinWilliams:
http://wiki.apache.org/ws/WorkingWithTransactions

------------------------------------------------------------------------------
  By default, the RDB DAS assumes responsibility for managing transaction 
boundaries by executing commit and rollback operations againts the database.  
The boundaries of these transactions are as follows:
  
  '''Reading Data'''
+ Queries to the database are always made by calling DAS command's 
"executeQuery()" method.  The associated transaction lives for the duration of 
this method execution.  That is, the transaction can be thought to start when 
control is transfered to "executeQuery" and the transaction ends just prior to 
return from this method.
  
+ '''Writing Data'''
+ Writes can be accomplished by two DAS APIs.  First is calling the DAS 
"execute()" command against a command the will perform write operations and, in 
this case, the transaction boundaries are the same as read queries.  That is 
the transaction life matches the life of the "execute" processing.  If the 
method returns without exception then the application can assume that any 
changes were successfully commited to the database.  If an exception is 
returned then the changes will have all been rolled back.
+ 
+ The second API used by DAS clients is the applyChanges command ()
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to