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 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 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.