public class Neo4jEmbeddedTransactionManager extends Object implements TransactionManager, Transaction
| Constructor and Description |
|---|
Neo4jEmbeddedTransactionManager(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService) |
| 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) |
org.neo4j.graphdb.Transaction |
getNeo4jTransaction() |
int |
getStatus() |
Transaction |
getTransaction() |
protected org.springframework.data.neo4j.support.Neo4jEmbeddedTransactionManager.TxState |
getTxState() |
boolean |
isActive() |
void |
registerSynchronization(Synchronization synch) |
void |
resume(Transaction tx) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
protected Stack<org.springframework.data.neo4j.support.Neo4jEmbeddedTransactionManager.TxState> |
stack() |
Transaction |
suspend() |
public Neo4jEmbeddedTransactionManager(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService)
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerNotSupportedExceptionSystemExceptionpublic org.neo4j.graphdb.Transaction beginTx()
public void commit()
throws HeuristicMixedException,
HeuristicRollbackException,
IllegalStateException,
RollbackException,
SecurityException,
SystemException
commit in interface Transactioncommit in interface TransactionManagerHeuristicMixedExceptionHeuristicRollbackExceptionIllegalStateExceptionRollbackExceptionSecurityExceptionSystemExceptionpublic boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
delistResource in interface TransactionIllegalStateExceptionSystemExceptionpublic boolean enlistResource(XAResource xaRes) throws IllegalStateException, RollbackException, SystemException
enlistResource in interface TransactionIllegalStateExceptionRollbackExceptionSystemExceptionpublic void registerSynchronization(Synchronization synch) throws IllegalStateException, RollbackException, SystemException
registerSynchronization in interface TransactionIllegalStateExceptionRollbackExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactiongetStatus in interface TransactionManagerSystemExceptionpublic Transaction getTransaction() throws SystemException
getTransaction in interface TransactionManagerSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface Transactionrollback in interface TransactionManagerIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionsetRollbackOnly in interface TransactionManagerIllegalStateExceptionSystemExceptionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemExceptionpublic Transaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionpublic void resume(Transaction tx) throws IllegalStateException, InvalidTransactionException, SystemException
resume in interface TransactionManagerIllegalStateExceptionInvalidTransactionExceptionSystemExceptionpublic boolean isActive()
public org.neo4j.graphdb.Transaction getNeo4jTransaction()
protected org.springframework.data.neo4j.support.Neo4jEmbeddedTransactionManager.TxState getTxState()
protected Stack<org.springframework.data.neo4j.support.Neo4jEmbeddedTransactionManager.TxState> stack()
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.