org.modeshape.graph.connector.map
Interface MapRepositoryTransaction

All Known Implementing Classes:
LockBasedTransaction, SimpleJpaTransaction

public interface MapRepositoryTransaction

A transaction returned by the MapRepository.startTransaction(boolean).


Method Summary
 void commit()
          Commit any changes that have been made to the repository.
 void rollback()
          Rollback any changes that have been made to this repository.
 

Method Detail

commit

void commit()
Commit any changes that have been made to the repository. This method may throw runtime exceptions if there are failures committing the changes, but the transaction is still expected to be closed.

See Also:
rollback(), MapRepository.startTransaction(boolean)

rollback

void rollback()
Rollback any changes that have been made to this repository. This method may throw runtime exceptions if there are failures rolling back the changes, but the transaction is still expected to be closed.

See Also:
commit(), MapRepository.startTransaction(boolean)


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.