org.neo4j.server.rest.transactional
Class TransactionFacade
java.lang.Object
org.neo4j.server.rest.transactional.TransactionFacade
public class TransactionFacade
- extends Object
Transactional actions contains the business logic for executing statements against Neo4j across long-running
transactions.
The idiom for the public methods here is:
response.begin()
try {
// Do internal calls, saving errors into a common error list
} catch ( Neo4jError e )
{
errors.add(e);
} finally
{
response.finish(errors)
}
This is done to ensure we stick to the contract of the response handler, which is important, because if we skimp on
it, clients may be left waiting for results that never arrive.
|
Constructor Summary |
TransactionFacade(org.neo4j.kernel.api.KernelAPI kernel,
org.neo4j.cypher.javacompat.ExecutionEngine engine,
TransactionRegistry registry,
org.neo4j.kernel.impl.util.StringLogger log)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionFacade
public TransactionFacade(org.neo4j.kernel.api.KernelAPI kernel,
org.neo4j.cypher.javacompat.ExecutionEngine engine,
TransactionRegistry registry,
org.neo4j.kernel.impl.util.StringLogger log)
newTransactionHandle
public TransactionHandle newTransactionHandle(TransactionUriScheme uriScheme)
throws TransactionLifecycleException
- Throws:
TransactionLifecycleException
findTransactionHandle
public TransactionHandle findTransactionHandle(long txId)
throws TransactionLifecycleException
- Throws:
TransactionLifecycleException
deserializer
public StatementDeserializer deserializer(InputStream input)
serializer
public ExecutionResultSerializer serializer(OutputStream output)
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.