org.tm4j.topicmap
Interface ProviderTransaction


public interface ProviderTransaction

The interface for a transaction managed by a TopicMapProvider.


Method Summary
 void abort()
           
 void commit()
          Commit the transaction and any changes made while it was open.
 boolean isOpen()
          Determine if this transaction is currently open
 void rollback()
          Rollback the transaction, discarding any changes made while it was open.
 

Method Detail

isOpen

public boolean isOpen()
               throws ProviderTransactionException
Determine if this transaction is currently open

Returns:
true if the transaction is open, false otherwise
Throws:
ProviderTransactionException

rollback

public void rollback()
              throws ProviderTransactionException
Rollback the transaction, discarding any changes made while it was open.

Throws:
ProviderTransactionException

commit

public void commit()
            throws ProviderTransactionException
Commit the transaction and any changes made while it was open.

Throws:
ProviderTransactionException

abort

public void abort()
           throws ProviderTransactionException
Throws:
ProviderTransactionException