Class AbstractTransaction

  • All Implemented Interfaces:
    AutoCloseable, org.neo4j.driver.QueryRunner, org.neo4j.driver.Transaction, org.neo4j.driver.util.Resource

    public abstract class AbstractTransaction
    extends Object
    implements org.neo4j.driver.Transaction

    Transaction class, which decorates a element of Transaction and delegates the methods calls to this transaction

    Since:
    1.0
    Author:
    Andreas Pointner, Christoph Praschl
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
        Logger
    • Constructor Detail

      • AbstractTransaction

        public AbstractTransaction​(org.neo4j.driver.Transaction decoratedElement)
        Parameters:
        decoratedElement - the decorated neo4j transaction
    • Method Detail

      • getDecoratedElement

        protected org.neo4j.driver.Transaction getDecoratedElement()
        gets value of field decoratedElement
        Returns:
        value of field decoratedElement
        See Also:
        decoratedElement
      • getTransactionId

        public int getTransactionId()
        gets value of field transactionId
        Returns:
        value of field transactionId
        See Also:
        transactionId
      • commit

        public void commit()
        Specified by:
        commit in interface org.neo4j.driver.Transaction
      • rollback

        public void rollback()
        Specified by:
        rollback in interface org.neo4j.driver.Transaction
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface org.neo4j.driver.util.Resource
        Specified by:
        close in interface org.neo4j.driver.Transaction
      • run

        public org.neo4j.driver.Result run​(String statementTemplate,
                                           org.neo4j.driver.Value parameters)
        Specified by:
        run in interface org.neo4j.driver.QueryRunner
      • run

        public org.neo4j.driver.Result run​(String statementTemplate,
                                           Map<String,​Object> statementParameters)
        Specified by:
        run in interface org.neo4j.driver.QueryRunner
      • run

        public org.neo4j.driver.Result run​(String statementTemplate,
                                           org.neo4j.driver.Record statementParameters)
        Specified by:
        run in interface org.neo4j.driver.QueryRunner
      • run

        public org.neo4j.driver.Result run​(String statementTemplate)
        Specified by:
        run in interface org.neo4j.driver.QueryRunner
      • run

        public org.neo4j.driver.Result run​(org.neo4j.driver.Query statement)
        Specified by:
        run in interface org.neo4j.driver.QueryRunner
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface org.neo4j.driver.util.Resource