Forge - Resource Addon Impl 2.0.0.Alpha3

org.jboss.forge.resource
Class ResourceTransactionImpl

java.lang.Object
  extended by org.jboss.forge.resource.ResourceTransactionImpl
All Implemented Interfaces:
ResourceTransaction

public class ResourceTransactionImpl
extends Object
implements ResourceTransaction


Constructor Summary
ResourceTransactionImpl(ResourceFactoryImpl factoryImpl)
           
 
Method Summary
 void commit()
           
<TYPE> Resource<TYPE>
decorateResource(Resource<TYPE> resource)
          Decorates a Resource
 ChangeSet getChangeSet()
           
 void rollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceTransactionImpl

public ResourceTransactionImpl(ResourceFactoryImpl factoryImpl)
                        throws ResourceException
Throws:
ResourceException
Method Detail

commit

public void commit()
            throws ResourceException
Specified by:
commit in interface ResourceTransaction
Throws:
ResourceException

rollback

public void rollback()
              throws ResourceException
Specified by:
rollback in interface ResourceTransaction
Throws:
ResourceException

decorateResource

public <TYPE> Resource<TYPE> decorateResource(Resource<TYPE> resource)
Decorates a Resource

Parameters:
resource -
Returns:

getChangeSet

public ChangeSet getChangeSet()
Specified by:
getChangeSet in interface ResourceTransaction

Forge - Resource Addon Impl 2.0.0.Alpha3

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