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
public class TransactionServiceImpl extends SimpleConfigurable implements TransactionService
Provides the ability to bundleCollectionoperations 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 Constructor Description TransactionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()Begin the transactionvoidcommit()Commit the transactionjava.lang.StringgetName()Returns the name associated with the Configurable object.java.lang.StringgetVersion()Gets the Version attribute of the Service objectvoidrollback()Rollback the transactionvoidsetCollection(Collection col)Sets the Collection attribute of the Service object-
Methods 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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName() throws XMLDBExceptionReturns the name associated with the Configurable object.- Specified by:
getNamein interfaceService- Returns:
- the name of the object.
- Throws:
XMLDBException- with expected error codes.
ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-
getVersion
public java.lang.String getVersion() throws XMLDBExceptionGets the Version attribute of the Service object- Specified by:
getVersionin interfaceService- Returns:
- The Version value
- Throws:
XMLDBException- with expected error codes.
ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-
setCollection
public void setCollection(Collection col) throws XMLDBException
Sets the Collection attribute of the Service object- Specified by:
setCollectionin interfaceService- Parameters:
col- The new Collection value- Throws:
XMLDBException- with expected error codes.
ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-
begin
public void begin() throws XMLDBExceptionBegin the transaction- Specified by:
beginin interfaceTransactionService- Throws:
XMLDBException- with expected error codes.
ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-
commit
public void commit() throws XMLDBExceptionCommit the transaction- Specified by:
commitin interfaceTransactionService- Throws:
XMLDBException- with expected error codes.
ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-
rollback
public void rollback() throws XMLDBExceptionRollback the transaction- Specified by:
rollbackin interfaceTransactionService- Throws:
XMLDBException- with expected error codes.
ErrorCodes.VENDOR_ERRORfor any vendor specific errors that occur.
-
-