Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Neo4j kernel is a lightweight, embedded Java database designed to
store data structured as graphs rather than tables. For more
information, see http://neo4j.org.
/*
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [https://neo4j.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package org.neo4j.kernel.impl.newapi;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
import org.neo4j.graphdb.Entity;
import org.neo4j.graphdb.Label;
import org.neo4j.graphdb.Lock;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.QueryExecutionException;
import org.neo4j.graphdb.Relationship;
import org.neo4j.graphdb.RelationshipType;
import org.neo4j.graphdb.ResourceIterable;
import org.neo4j.graphdb.ResourceIterator;
import org.neo4j.graphdb.Result;
import org.neo4j.graphdb.StringSearchMode;
import org.neo4j.graphdb.schema.Schema;
import org.neo4j.graphdb.traversal.BidirectionalTraversalDescription;
import org.neo4j.graphdb.traversal.TraversalDescription;
import org.neo4j.internal.kernel.api.RelationshipDataAccessor;
import org.neo4j.internal.kernel.api.connectioninfo.ClientConnectionInfo;
import org.neo4j.internal.kernel.api.security.SecurityContext;
import org.neo4j.kernel.api.KernelTransaction;
import org.neo4j.kernel.api.exceptions.Status;
import org.neo4j.kernel.impl.coreapi.InternalTransaction;
import org.neo4j.values.ElementIdMapper;
public class ProcedureTransactionImpl implements InternalTransaction {
private final InternalTransaction transaction;
public ProcedureTransactionImpl(InternalTransaction transaction) {
this.transaction = transaction;
}
@Override
public void registerCloseableResource(AutoCloseable closeableResource) {
transaction.registerCloseableResource(closeableResource);
}
@Override
public void unregisterCloseableResource(AutoCloseable closeableResource) {
transaction.unregisterCloseableResource(closeableResource);
}
@Override
public void commit(KernelTransaction.KernelTransactionMonitor monitor) {
commit();
}
@Override
public void commit() {
throw new UnsupportedOperationException("Commit of ongoing transaction inside of procedure is unsupported.");
}
@Override
public void rollback() {
throw new UnsupportedOperationException("Rollback of ongoing transaction inside of procedure is unsupported.");
}
@Override
public Node createNode() {
return transaction.createNode();
}
@Override
public Node createNode(Label... labels) {
return transaction.createNode(labels);
}
@Override
public Node getNodeById(long id) {
return transaction.getNodeById(id);
}
@Override
public Node getNodeByElementId(String elementId) {
return transaction.getNodeByElementId(elementId);
}
@Override
public Result execute(String query) throws QueryExecutionException {
return transaction.execute(query);
}
@Override
public Result execute(String query, Map parameters) throws QueryExecutionException {
return transaction.execute(query, parameters);
}
@Override
public Relationship getRelationshipById(long id) {
return transaction.getRelationshipById(id);
}
@Override
public Relationship getRelationshipByElementId(String elementId) {
return transaction.getRelationshipByElementId(elementId);
}
@Override
public BidirectionalTraversalDescription bidirectionalTraversalDescription() {
return transaction.bidirectionalTraversalDescription();
}
@Override
public TraversalDescription traversalDescription() {
return transaction.traversalDescription();
}
@Override
public Iterable