public class Transaction<CONTEXT> extends Object implements ITransaction<CONTEXT>
Constructor and Description |
---|
Transaction(CONTEXT context) |
Transaction(CONTEXT context,
boolean undoPhase1OnRollback) |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
void |
execute(ITransactionalOperation<CONTEXT> operation) |
CONTEXT |
getContext() |
boolean |
isActive() |
boolean |
isUndoPhase1OnRollback() |
void |
rollback() |
public Transaction(CONTEXT context, boolean undoPhase1OnRollback)
public Transaction(CONTEXT context)
public boolean isUndoPhase1OnRollback()
public boolean isActive()
isActive
in interface ITransaction<CONTEXT>
public CONTEXT getContext()
getContext
in interface ITransaction<CONTEXT>
public void execute(ITransactionalOperation<CONTEXT> operation) throws TransactionException
execute
in interface ITransaction<CONTEXT>
TransactionException
public void commit()
commit
in interface ITransaction<CONTEXT>
public void rollback()
rollback
in interface ITransaction<CONTEXT>
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html