public class RestCypherTransactionManager extends Object implements TransactionManager, Transaction
Constructor and Description |
---|
RestCypherTransactionManager(RestAPICypherImpl restAPICypher) |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
org.neo4j.graphdb.Transaction |
beginTx() |
void |
commit() |
boolean |
delistResource(XAResource xaRes,
int flag) |
boolean |
enlistResource(XAResource xaRes) |
CypherTransaction |
getCypherTransaction() |
RemoteCypherTransaction |
getRemoteCypherTransaction() |
int |
getStatus() |
Transaction |
getTransaction() |
boolean |
isActive() |
void |
registerSynchronization(Synchronization synch) |
void |
resume(Transaction tx) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
Transaction |
suspend() |
public RestCypherTransactionManager(RestAPICypherImpl restAPICypher)
public void begin() throws NotSupportedException, SystemException
begin
in interface TransactionManager
NotSupportedException
SystemException
public org.neo4j.graphdb.Transaction beginTx()
public void commit() throws HeuristicMixedException, HeuristicRollbackException, IllegalStateException, RollbackException, SecurityException, SystemException
commit
in interface Transaction
commit
in interface TransactionManager
HeuristicMixedException
HeuristicRollbackException
IllegalStateException
RollbackException
SecurityException
SystemException
public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
delistResource
in interface Transaction
IllegalStateException
SystemException
public boolean enlistResource(XAResource xaRes) throws IllegalStateException, RollbackException, SystemException
enlistResource
in interface Transaction
IllegalStateException
RollbackException
SystemException
public void registerSynchronization(Synchronization synch) throws IllegalStateException, RollbackException, SystemException
registerSynchronization
in interface Transaction
IllegalStateException
RollbackException
SystemException
public int getStatus() throws SystemException
getStatus
in interface Transaction
getStatus
in interface TransactionManager
SystemException
public Transaction getTransaction() throws SystemException
getTransaction
in interface TransactionManager
SystemException
public void rollback() throws IllegalStateException, SecurityException, SystemException
rollback
in interface Transaction
rollback
in interface TransactionManager
IllegalStateException
SecurityException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface Transaction
setRollbackOnly
in interface TransactionManager
IllegalStateException
SystemException
public void setTransactionTimeout(int seconds) throws SystemException
setTransactionTimeout
in interface TransactionManager
SystemException
public Transaction suspend() throws SystemException
suspend
in interface TransactionManager
SystemException
public void resume(Transaction tx) throws IllegalStateException, InvalidTransactionException, SystemException
resume
in interface TransactionManager
IllegalStateException
InvalidTransactionException
SystemException
public boolean isActive()
public CypherTransaction getCypherTransaction()
public RemoteCypherTransaction getRemoteCypherTransaction()
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.