Package org.xmldb.api.reference.modules
Class TransactionServiceImpl
java.lang.Object
org.xmldb.api.sdk.SimpleConfigurable
org.xmldb.api.reference.modules.TransactionServiceImpl
- All Implemented Interfaces:
Configurable
,Service
,TransactionService
Provides the ability to bundle
Collection
operations into a
transaction.
Note: This interface needs much better definition-
Field Summary
Fields inherited from interface org.xmldb.api.modules.TransactionService
SERVICE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
Begin the transactionvoid
commit()
Commit the transactiongetName()
Returns the name associated with the Configurable object.Gets the Version attribute of the Service objectvoid
rollback()
Rollback the transactionvoid
setCollection
(Collection col) Sets the Collection attribute of the Service objectMethods inherited from class org.xmldb.api.sdk.SimpleConfigurable
getProperty, setProperty
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xmldb.api.base.Configurable
getProperty, setProperty
-
Constructor Details
-
TransactionServiceImpl
public TransactionServiceImpl()
-
-
Method Details
-
getName
Returns the name associated with the Configurable object.- Specified by:
getName
in interfaceService
- Returns:
- the name of the object.
- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
getVersion
Gets the Version attribute of the Service object- Specified by:
getVersion
in interfaceService
- Returns:
- The Version value
- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
setCollection
Sets the Collection attribute of the Service object- Specified by:
setCollection
in interfaceService
- Parameters:
col
- The new Collection value- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
begin
Begin the transaction- Specified by:
begin
in interfaceTransactionService
- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
commit
Commit the transaction- Specified by:
commit
in interfaceTransactionService
- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-
rollback
Rollback the transaction- Specified by:
rollback
in interfaceTransactionService
- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor specific errors that occur.
-