Class 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 Detail

      • TransactionManagerImpl

        public TransactionManagerImpl()
    • Method Detail

      • beginTransaction

        public org.neo4j.driver.Transaction beginTransaction()
        Description copied from interface: TransactionManager
        Begins 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:
        beginTransaction in interface TransactionManager
        Returns:
        returns the transaction
      • closeSession

        public void closeSession()
        Description copied from interface: TransactionManager
        Closes 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:
        closeSession in interface TransactionManager
      • setDriver

        public void setDriver​(org.neo4j.driver.Driver driver)
        sets value of field driver
        Parameters:
        driver - value of field driver
        See Also:
        driver