Search in sources :

Example 6 with ClientConnectionInfo

use of org.neo4j.kernel.impl.query.clientconnection.ClientConnectionInfo in project neo4j by neo4j.

the class TransitionalPeriodTransactionMessContainer method create.

public TransactionalContext create(HttpServletRequest request, GraphDatabaseQueryService service, Type type, SecurityContext securityContext, String query, Map<String, Object> queryParameters) {
    TransactionalContextFactory contextFactory = Neo4jTransactionalContextFactory.create(service, locker);
    ClientConnectionInfo clientConnection = HttpConnectionInfoFactory.create(request);
    InternalTransaction transaction = service.beginTransaction(type, securityContext);
    return contextFactory.newContext(clientConnection, transaction, query, queryParameters);
}
Also used : ClientConnectionInfo(org.neo4j.kernel.impl.query.clientconnection.ClientConnectionInfo) InternalTransaction(org.neo4j.kernel.impl.coreapi.InternalTransaction) Neo4jTransactionalContextFactory(org.neo4j.kernel.impl.query.Neo4jTransactionalContextFactory) TransactionalContextFactory(org.neo4j.kernel.impl.query.TransactionalContextFactory)

Aggregations

ClientConnectionInfo (org.neo4j.kernel.impl.query.clientconnection.ClientConnectionInfo)6 Test (org.junit.Test)3 InetSocketAddress (java.net.InetSocketAddress)2 InternalTransaction (org.neo4j.kernel.impl.coreapi.InternalTransaction)2 BoltConnectionInfo (org.neo4j.kernel.impl.query.clientconnection.BoltConnectionInfo)2 BoltResultHandle (org.neo4j.bolt.v1.runtime.TransactionStateMachine.BoltResultHandle)1 BoltResult (org.neo4j.bolt.v1.runtime.spi.BoltResult)1 Result (org.neo4j.graphdb.Result)1 Statement (org.neo4j.kernel.api.Statement)1 KernelException (org.neo4j.kernel.api.exceptions.KernelException)1 ExecutingQuery (org.neo4j.kernel.api.query.ExecutingQuery)1 Neo4jTransactionalContextFactory (org.neo4j.kernel.impl.query.Neo4jTransactionalContextFactory)1 QueryExecutionKernelException (org.neo4j.kernel.impl.query.QueryExecutionKernelException)1 TransactionalContext (org.neo4j.kernel.impl.query.TransactionalContext)1 TransactionalContextFactory (org.neo4j.kernel.impl.query.TransactionalContextFactory)1 HttpConnectionInfo (org.neo4j.kernel.impl.query.clientconnection.HttpConnectionInfo)1 ShellConnectionInfo (org.neo4j.kernel.impl.query.clientconnection.ShellConnectionInfo)1