All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lordofthejars.nosqlunit.neo4j.Neo4jConfiguration Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.lordofthejars.nosqlunit.neo4j;

import org.neo4j.graphdb.GraphDatabaseService;

import com.lordofthejars.nosqlunit.core.AbstractJsr330Configuration;

public class Neo4jConfiguration extends AbstractJsr330Configuration {

	protected static final String DEFAULT_URI = "http://localhost:7474/db/data";
	
	private String uri = DEFAULT_URI;
	
	private String userName = null;
	private String password = null;
	
	private GraphDatabaseService graphDatabaseService;
	
	public Neo4jConfiguration() {
		super();
	}

	public Neo4jConfiguration(String uri) {
		super();
		this.uri = uri;
	}

	public Neo4jConfiguration(String uri, String userName, String password) {
		super();
		this.uri = uri;
		this.userName = userName;
		this.password = password;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public void setGraphDatabaseService(GraphDatabaseService graphDatabaseService) {
		this.graphDatabaseService = graphDatabaseService;
	}
	
	public GraphDatabaseService getGraphDatabaseService() {
		return graphDatabaseService;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy