// Path: couchbase-neo4j-connector/src/main/java/com/couchbase/client/neo4j/conf/Neo4jSyncConfManager.java
// public interface Neo4jSyncConfManager {
// 
// 	/**
// 	 * couchbase.hostname
// 	 * @return
// 	 */
// 	String getCouchbaseHostname();
// 
// 	/**
// 	 * couchbase.bucket
// 	 * @return
// 	 */
// 	String getCouchbaseBucket();
// 
// 	/**
// 	 * neo4j.hostname
// 	 * @return
// 	 */
// 	String getNeo4jHostname();
// 
// 	/**
// 	 * neo4j.username
// 	 * @return
// 	 */
// 	String getNeo4jUsername();
// 
// 	/**
// 	 * neo4j.password
// 	 * @return
// 	 */
// 	String getNeo4jPassword();
// }
// 
// Path: couchbase-neo4j-connector/src/main/java/com/couchbase/client/neo4j/connector/Neo4jConnector.java
// public interface Neo4jConnector {
// 
// 	/**
// 	 * Update the graph with new information
// 	 * @param key
// 	 * @param json
// 	 * @return
// 	 */
// 	String onMutation(String key, String json);
// 	
// 	/**
// 	 * Remove the document from graph
// 	 * @param key
// 	 * @return
// 	 */
// 	String onDelete(String key);
// }


import org.neo4j.driver.v1.AuthTokens;
import org.neo4j.driver.v1.Driver;
import org.neo4j.driver.v1.GraphDatabase;
import org.neo4j.driver.v1.Session;
import org.neo4j.driver.v1.Values;
import com.couchbase.client.core.logging.CouchbaseLogger;
import com.couchbase.client.core.logging.CouchbaseLoggerFactory;
import com.couchbase.client.neo4j.conf.Neo4jSyncConfManager;
import com.couchbase.client.neo4j.connector.Neo4jConnector;
/**
 * Copyright (c) 2017 LARUS Business Automation [http://www.larus-ba.it]
 * <p>
 * This file is part of the "LARUS Integration Framework for Neo4j".
 * <p>
 * The "LARUS Integration Framework for Neo4j" is licensed
 * under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.couchbase.client.neo4j.connector.impl;



/**
 * Call Neo4j procedures using Bolt protocol
 * @author Omar Rampado
 *
 */
public class BoltNeo4jConnector implements Neo4jConnector {
	
	private static final CouchbaseLogger log = CouchbaseLoggerFactory.getInstance(BoltNeo4jConnector.class);
	
	//TODO convert in threadlocal???
	private Session session;
	
	/**
	 * 
	 */
	public BoltNeo4jConnector() {
	}
	
// Path: couchbase-neo4j-connector/src/main/java/com/couchbase/client/neo4j/conf/Neo4jSyncConfManager.java
// public interface Neo4jSyncConfManager {
// 
// 	/**
// 	 * couchbase.hostname
// 	 * @return
// 	 */
// 	String getCouchbaseHostname();
// 
// 	/**
// 	 * couchbase.bucket
// 	 * @return
// 	 */
// 	String getCouchbaseBucket();
// 
// 	/**
// 	 * neo4j.hostname
// 	 * @return
// 	 */
// 	String getNeo4jHostname();
// 
// 	/**
// 	 * neo4j.username
// 	 * @return
// 	 */
// 	String getNeo4jUsername();
// 
// 	/**
// 	 * neo4j.password
// 	 * @return
// 	 */
// 	String getNeo4jPassword();
// }
// 
// Path: couchbase-neo4j-connector/src/main/java/com/couchbase/client/neo4j/connector/Neo4jConnector.java
// public interface Neo4jConnector {
// 
// 	/**
// 	 * Update the graph with new information
// 	 * @param key
// 	 * @param json
// 	 * @return
// 	 */
// 	String onMutation(String key, String json);
// 	
// 	/**
// 	 * Remove the document from graph
// 	 * @param key
// 	 * @return
// 	 */
// 	String onDelete(String key);
// }


// Path: couchbase-neo4j-connector/src/main/java/com/couchbase/client/neo4j/connector/impl/BoltNeo4jConnector.java
import org.neo4j.driver.v1.AuthTokens;
import org.neo4j.driver.v1.Driver;
import org.neo4j.driver.v1.GraphDatabase;
import org.neo4j.driver.v1.Session;
import org.neo4j.driver.v1.Values;
import com.couchbase.client.core.logging.CouchbaseLogger;
import com.couchbase.client.core.logging.CouchbaseLoggerFactory;
import com.couchbase.client.neo4j.conf.Neo4jSyncConfManager;
import com.couchbase.client.neo4j.connector.Neo4jConnector;

/**
 * Copyright (c) 2017 LARUS Business Automation [http://www.larus-ba.it]
 * <p>
 * This file is part of the "LARUS Integration Framework for Neo4j".
 * <p>
 * The "LARUS Integration Framework for Neo4j" is licensed
 * under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.couchbase.client.neo4j.connector.impl;



/**
 * Call Neo4j procedures using Bolt protocol
 * @author Omar Rampado
 *
 */
public class BoltNeo4jConnector implements Neo4jConnector {
	
	private static final CouchbaseLogger log = CouchbaseLoggerFactory.getInstance(BoltNeo4jConnector.class);
	
	//TODO convert in threadlocal???
	private Session session;
	
	/**
	 * 
	 */
	public BoltNeo4jConnector() {
	}
	
	public void init(Neo4jSyncConfManager configuration)