org.xmldb.api.sdk.modules

Class SimpleTransactionService

public class SimpleTransactionService extends SimpleConfigurable implements TransactionService

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
StringgetName()
Returns the name associated with the Configurable object.
StringgetVersion()
Gets the Version attribute of the Service object
voidrollback()
Rollback the transaction
voidsetCollection(Collection col)
Sets the Collection attribute of the Service object

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.

getName

public String getName()
Returns the name associated with the Configurable object.

Returns: the name of the object.

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

getVersion

public String getVersion()
Gets the Version attribute of the Service object

Returns: The Version value

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.

setCollection

public void setCollection(Collection col)
Sets the Collection attribute of the Service object

Parameters: col The new Collection value

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