Package org.xmldb.api.modules
Interface TransactionService
-
- All Superinterfaces:
Configurable,Service
public interface TransactionService extends Service
Provides the ability to bundleCollectionoperations into a transaction. Note: This interface needs much better definition
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbegin()Begin the transactionvoidcommit()Commit the transactionvoidrollback()Rollback the transaction-
Methods inherited from interface org.xmldb.api.base.Configurable
getProperty, getProperty, setProperty
-
Methods inherited from interface org.xmldb.api.base.Service
getName, getVersion, setCollection
-
-
-
-
Field Detail
-
SERVICE_NAME
static final java.lang.String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
begin
void begin() throws XMLDBExceptionBegin the transaction- Throws:
XMLDBException- with expected error codes.ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-
commit
void commit() throws XMLDBExceptionCommit the transaction- Throws:
XMLDBException- with expected error codes.ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-
rollback
void rollback() throws XMLDBExceptionRollback the transaction- Throws:
XMLDBException- with expected error codes.ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-
-