Configurable
, Service
, TransactionService
public class SimpleTransactionService extends SimpleConfigurable implements TransactionService
Collection
operations into a
transaction.
Note: This interface needs much better definitionSERVICE_NAME
Constructor | Description |
---|---|
SimpleTransactionService() |
Modifier and Type | Method | Description |
---|---|---|
void |
begin() |
Begin the transaction
|
void |
commit() |
Commit the transaction
|
java.lang.String |
getName() |
Returns the name associated with the Configurable object.
|
java.lang.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
|
getProperty, setProperty
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty, setProperty
public java.lang.String getName() throws XMLDBException
getName
in interface Service
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public java.lang.String getVersion() throws XMLDBException
getVersion
in interface Service
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public void setCollection(Collection col) throws XMLDBException
setCollection
in interface Service
col
- The new Collection valueXMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public void begin() throws XMLDBException
begin
in interface TransactionService
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public void commit() throws XMLDBException
commit
in interface TransactionService
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public void rollback() throws XMLDBException
rollback
in interface TransactionService
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.Copyright (C) XML:DB Initiative. All rights reserved.%lt;/font>