org.xmldb.api.modules

Interface TransactionService

public interface TransactionService extends Service

Provides the ability to bundle Collection operations into a transaction.

Note: This interface needs much better definition

Method Summary
voidbegin()
Begin the transaction
voidcommit()
Commit the transaction
voidrollback()
Rollback the transaction

Method Detail

begin

public void begin()
Begin the transaction

Throws: XMLDBException with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.

commit

public void commit()
Commit the transaction

Throws: XMLDBException with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.

rollback

public void rollback()
Rollback the transaction

Throws: XMLDBException with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.