Package science.aist.neo4j.transaction
Class TransactionManagerImpl
- java.lang.Object
 - 
- science.aist.neo4j.transaction.TransactionManagerImpl
 
 
- 
- All Implemented Interfaces:
 TransactionManager
public class TransactionManagerImpl extends Object implements TransactionManager
Transaction manager, that will return an inner transaction if there is already an active transaciton Once the most outer transaction is closed, a new transaction can be created.
- Since:
 - 1.0
 - Author:
 - Andreas Pointner, Christoph Praschl
 
 
- 
- 
Constructor Summary
Constructors Constructor Description TransactionManagerImpl() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.neo4j.driver.TransactionbeginTransaction()Begins a new Transaction with default access mode.org.neo4j.driver.TransactionbeginTransaction(org.neo4j.driver.AccessMode accessMode)Same asTransactionManager.beginTransaction()but with manual access modevoidcloseSession()Closes the current session (on start of a new transaction a new session will be created automatially).voidsetDriver(org.neo4j.driver.Driver driver)sets value of fielddriver- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface science.aist.neo4j.transaction.TransactionManager
execute, executeRead, executeWrite, run, runRead, runWrite 
 - 
 
 - 
 
- 
- 
Method Detail
- 
beginTransaction
public org.neo4j.driver.Transaction beginTransaction()
Description copied from interface:TransactionManagerBegins a new Transaction with default access mode. If a transaction is already running returns a inner transaction as a decorate for the other transaction- Specified by:
 beginTransactionin interfaceTransactionManager- Returns:
 - returns the transaction
 
 
- 
beginTransaction
public org.neo4j.driver.Transaction beginTransaction(org.neo4j.driver.AccessMode accessMode)
Description copied from interface:TransactionManagerSame asTransactionManager.beginTransaction()but with manual access mode- Specified by:
 beginTransactionin interfaceTransactionManager- Parameters:
 accessMode- the access mode- Returns:
 - the transaction
 
 
- 
closeSession
public void closeSession()
Description copied from interface:TransactionManagerCloses the current session (on start of a new transaction a new session will be created automatially). As a session is a "logical container for a causally chained series of transactions" closing a session is entirely up to the developer.- Specified by:
 closeSessionin interfaceTransactionManager
 
 - 
 
 -