Package science.aist.neo4j.transaction
Class AbstractTransaction
- java.lang.Object
-
- science.aist.neo4j.transaction.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 Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
Logger
-
Constructor Summary
Constructors Constructor Description AbstractTransaction(org.neo4j.driver.Transaction decoratedElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
commit()
protected org.neo4j.driver.Transaction
getDecoratedElement()
gets value of fielddecoratedElement
int
getTransactionId()
gets value of fieldtransactionId
boolean
isOpen()
void
rollback()
org.neo4j.driver.Result
run(String statementTemplate)
org.neo4j.driver.Result
run(String statementTemplate, Map<String,Object> statementParameters)
org.neo4j.driver.Result
run(String statementTemplate, org.neo4j.driver.Record statementParameters)
org.neo4j.driver.Result
run(String statementTemplate, org.neo4j.driver.Value parameters)
org.neo4j.driver.Result
run(org.neo4j.driver.Query statement)
-
-
-
Method Detail
-
getDecoratedElement
protected org.neo4j.driver.Transaction getDecoratedElement()
gets value of fielddecoratedElement
- Returns:
- value of field decoratedElement
- See Also:
decoratedElement
-
getTransactionId
public int getTransactionId()
gets value of fieldtransactionId
- Returns:
- value of field transactionId
- See Also:
transactionId
-
commit
public void commit()
- Specified by:
commit
in interfaceorg.neo4j.driver.Transaction
-
rollback
public void rollback()
- Specified by:
rollback
in interfaceorg.neo4j.driver.Transaction
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceorg.neo4j.driver.util.Resource
- Specified by:
close
in interfaceorg.neo4j.driver.Transaction
-
run
public org.neo4j.driver.Result run(String statementTemplate, org.neo4j.driver.Value parameters)
- Specified by:
run
in interfaceorg.neo4j.driver.QueryRunner
-
run
public org.neo4j.driver.Result run(String statementTemplate, Map<String,Object> statementParameters)
- Specified by:
run
in interfaceorg.neo4j.driver.QueryRunner
-
run
public org.neo4j.driver.Result run(String statementTemplate, org.neo4j.driver.Record statementParameters)
- Specified by:
run
in interfaceorg.neo4j.driver.QueryRunner
-
run
public org.neo4j.driver.Result run(String statementTemplate)
- Specified by:
run
in interfaceorg.neo4j.driver.QueryRunner
-
run
public org.neo4j.driver.Result run(org.neo4j.driver.Query statement)
- Specified by:
run
in interfaceorg.neo4j.driver.QueryRunner
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interfaceorg.neo4j.driver.util.Resource
-
-