Cached updates

Call TOracleSession.ApplyUpdates and pass False to the Commit parameter. An example from the help file:
Code:
procedure TDeptForm.ApplyButtonClick(Sender: TObject);
begin
  // Apply the changes and do not yet commit
  Session.ApplyUpdates([DeptDataSet], False);
  // Perform some checks and commit or rollback accordingly
  if DeptEmpValid then
    Session.CommitUpdates([DeptDataSet])
  else
    Session.Rollback;
end;
 
Back
Top