org.modeshape.connector.store.jpa.model.simple
Class SimpleJpaTransaction

java.lang.Object
  extended by org.modeshape.connector.store.jpa.model.simple.SimpleJpaTransaction
All Implemented Interfaces:
MapRepositoryTransaction

@Immutable
public class SimpleJpaTransaction
extends Object
implements MapRepositoryTransaction

A MapRepositoryTransaction that wraps an EntityTransaction.


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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

commit

public 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.

Specified by:
commit in interface MapRepositoryTransaction
See Also:
MapRepositoryTransaction.commit()

rollback

public 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.

Specified by:
rollback in interface MapRepositoryTransaction
See Also:
MapRepositoryTransaction.rollback()


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