org.inria.ns.reflex.modules.rdbms
Class RollbackAction

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.modules.rdbms.RollbackAction
All Implemented Interfaces:
Executable, Presentable, NamespaceContextFactory

public class RollbackAction
extends AbstractAction

At runtime, the <rdbms:rollback> element cancels operations done during the transaction.

<rdbms:rollback rollback="{expression}"
       xmlns:rdbms="http://ns.inria.org/active-tags/rdbms"/>

Author:
Philippe Poulard
See Also:
ConnectAction, CommitAction

Nested Class Summary
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.core.AbstractAction
AbstractAction.ParameterAdapter, AbstractAction.UselessAction
 
Field Summary
 
Fields inherited from class org.inria.ns.reflex.processor.core.AbstractAction
actions, parent, processorInstance
 
Constructor Summary
RollbackAction(Expression connection, Node node, AbstractAction parent)
          Creates a new instance of RollbackAction.
 
Method Summary
 void runAction(DataSet dataSet)
          Execute the action by canceling actions done in this connection.
static AbstractAction unmarshal(AbstractAction parent, Element element)
          XML unmarshaller for RollbackAction.
 
Methods inherited from class org.inria.ns.reflex.processor.core.AbstractAction
addAction, addFallbackAction, createContext, getCanonicalPath, getFallbackAction, getLocalFallbackAction, getLogger, getNamespaceContext, getNode, getParent, recover, recover, removeFallbackAction, reorganize, run, runActions, toPrettyString, toPrettyString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RollbackAction

public RollbackAction(Expression connection,
                      Node node,
                      AbstractAction parent)
Creates a new instance of RollbackAction.

Parameters:
connection - The connection to use for cancel actions.
node - The node from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.
Method Detail

unmarshal

public static AbstractAction unmarshal(AbstractAction parent,
                                       Element element)
                                throws XMLException
XML unmarshaller for RollbackAction.

Parameters:
parent - The action depending from.
element - The XML element to unmarshall.
Returns:
The RollbackAction created.
Throws:
XMLException - When the element and its content is not those expected.

runAction

public void runAction(DataSet dataSet)
               throws ExecutionException
Execute the action by canceling actions done in this connection.

Overrides:
runAction in class AbstractAction
Parameters:
dataSet - The set of datas used when the action is running.
Throws:
ExecutionException - If the action can't be performed.