Package org.xmldb.api.modules
Interface TransactionService
-
- All Superinterfaces:
Configurable
,Service
- All Known Implementing Classes:
SimpleTransactionService
,TransactionServiceImpl
public interface TransactionService extends Service
Provides the ability to bundleCollection
operations into a transaction. Note: This interface needs much better definition
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
begin()
Begin the transactionvoid
commit()
Commit the transactionvoid
rollback()
Rollback the transaction-
Methods inherited from interface org.xmldb.api.base.Configurable
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 XMLDBException
Begin the transaction- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
commit
void commit() throws XMLDBException
Commit the transaction- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
rollback
void rollback() throws XMLDBException
Rollback the transaction- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
-