org.xmldb.api.reference.modules
Class TransactionServiceImpl
- Configurable, Service, TransactionService
public class TransactionServiceImpl
Provides the ability to bundle
Collection
operations into a
transaction.
Note: This interface needs much better definition
void | begin() - Begin the transaction
|
void | commit() - Commit the transaction
|
String | getName() - Returns the name associated with the Configurable object.
|
String | getVersion() - Gets the Version attribute of the Service object
|
void | rollback() - Rollback the transaction
|
void | setCollection(Collection col) - Sets the Collection attribute of the Service object
|
getName
public String getName()
throws XMLDBException
Returns the name associated with the Configurable object.
- getName in interface Service
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.
getVersion
public String getVersion()
throws XMLDBException
Gets the Version attribute of the Service object
- getVersion in interface Service
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.
setCollection
public void setCollection(Collection col)
throws XMLDBException
Sets the Collection attribute of the Service object
- setCollection in interface Service
col
- The new Collection value
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.