|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xmldb.api.sdk.SimpleConfigurable
org.xmldb.api.reference.modules.TransactionServiceImpl
public class TransactionServiceImpl
Provides the ability to bundle Collection
operations into a
transaction.
Constructor Summary | |
---|---|
TransactionServiceImpl()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.xmldb.api.sdk.SimpleConfigurable |
---|
getProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xmldb.api.base.Configurable |
---|
getProperty, setProperty |
Constructor Detail |
---|
public TransactionServiceImpl()
Method Detail |
---|
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 value
XMLDBException
- 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |