org.sixdml.excelon
Class xlnSixdmlTransactionService

java.lang.Object
  |
  +--org.sixdml.excelon.xlnServiceBase
        |
        +--org.sixdml.excelon.xlnSixdmlTransactionService
All Implemented Interfaces:
Configurable, Service, SixdmlConstants, SixdmlTransactionService, TransactionService

public class xlnSixdmlTransactionService
extends xlnServiceBase
implements SixdmlTransactionService, SixdmlConstants

  
 xlnSixdmlTransactionService.java

 Wraps a eXcelon DXE transaction object.  
 
 Created: Mon Jan 14 20:02:26 2002

 

Version:
1.0
Author:
Dare Obasanjo

Field Summary
private  com.exln.dxe.XlnTransaction transaction
          The eXcelon DXE XlnTransaction object that this object acts as a wrapper for.
 
Fields inherited from class org.sixdml.excelon.xlnServiceBase
collection, properties
 
Fields inherited from interface org.sixdml.SixdmlConstants
SIXDML_NS, SIXDML_VERSION
 
Constructor Summary
private xlnSixdmlTransactionService()
          Default constructor private because an instance of this class must always be instantiated with an underlying eXcelon DXE XlnTransaction object.
(package private) xlnSixdmlTransactionService(com.exln.dxe.XlnTransaction transaction)
          Initializes this class with an eXcelon DXE XPathValue object.
 
Method Summary
 void begin()
          Begin the transaction in update mode.
 void commit()
          Commit the transaction
 String getName()
          Gets the name of the service.
 boolean isActive()
          Returns true if there is currently a transaction open that is neither committed nor aborted; returns false otherwise.
 void rollback()
          Roll back the transaction
 
Methods inherited from class org.sixdml.excelon.xlnServiceBase
getProperty, getVersion, setCollection, 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.Service
getVersion, setCollection
 
Methods inherited from interface org.xmldb.api.base.Configurable
getProperty, setProperty
 

Field Detail

transaction

private com.exln.dxe.XlnTransaction transaction
The eXcelon DXE XlnTransaction object that this object acts as a wrapper for.

Constructor Detail

xlnSixdmlTransactionService

private xlnSixdmlTransactionService()
Default constructor private because an instance of this class must always be instantiated with an underlying eXcelon DXE XlnTransaction object.


xlnSixdmlTransactionService

xlnSixdmlTransactionService(com.exln.dxe.XlnTransaction transaction)
Initializes this class with an eXcelon DXE XPathValue object.

Method Detail

getName

public String getName()
Gets the name of the service.

Specified by:
getName in interface Service
Specified by:
getName in class xlnServiceBase
Returns:
the name of the service.

begin

public void begin()
Begin the transaction in update mode.

Specified by:
begin in interface TransactionService

rollback

public void rollback()
Roll back the transaction

Specified by:
rollback in interface TransactionService

commit

public void commit()
Commit the transaction

Specified by:
commit in interface TransactionService

isActive

public boolean isActive()
Returns true if there is currently a transaction open that is neither committed nor aborted; returns false otherwise.

Specified by:
isActive in interface SixdmlTransactionService
Returns:
true if there is currently a transaction open that is neither committed nor aborted; returns false otherwise.