Forge - Resource Addon API 2.0.0.Alpha3

org.jboss.forge.resource.transaction
Interface ResourceTransaction


public interface ResourceTransaction

The ResourceTransaction interface allows operations to be performed on transactions

Author:
George Gastaldi

Method Summary
 void commit()
          Attempt to commit this transaction, discarding the current ChangeSet.
 ChangeSet getChangeSet()
           
 void rollback()
          Rolls back this transaction.
 

Method Detail

commit

void commit()
            throws ResourceException
Attempt to commit this transaction, discarding the current ChangeSet.

Throws:
ResourceException - if any operation fails

rollback

void rollback()
              throws ResourceException
Rolls back this transaction. This transaction should not be used again This also discards the current ChangeSet

Throws:
ResourceException

getChangeSet

ChangeSet getChangeSet()
Returns:
A ChangeSet object containing which resources were modified during this transaction

Forge - Resource Addon API 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.