Hello Sandor,
you can disable the auto commit by using $setAutoCommit(false) of the XSDS transaction object. Than you can steer your transaciton using $commit() and $rollback() methods.
For more information please check the documentation here:
Best Regards,
Florian