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

------------------------------------------------------------------------------
  '''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 (see 
ChangeSummaryProcessing)
+ The second API used by clients is the DAS applyChanges() method (see 
ChangeSummaryProcessing).  Again, the boundaries of the transaction match the 
boundaries fo the call to the method. The DAS will create a set of 
INSERT/UPDATE and DELETE statments to flush the graph changes to the database 
and all of these statements will be executed as part of a single transaction.  
If the method returns without exception then the application can assume that 
all changes were successfully commited to the database.  If an exception is 
returned then the changes will have all been rolled back.
  

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

Reply via email to