
org.eclipse.jnosql.mapping.graph.connections.Neo4JGraphConfigurations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnosql-graph-connections Show documentation
Show all versions of jnosql-graph-connections Show documentation
Eclipse JNoSQL connections to Graph
/*
* Copyright (c) 2022 Eclipse Contribuitor
* All rights reserved. This program and the accompanying materials
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
* You may elect to redistribute this code under either of these licenses.
*/
package org.eclipse.jnosql.mapping.graph.connections;
import java.util.function.Supplier;
/**
* An enumeration to show the available options to connect to the Neo4J database.
* It implements {@link Supplier}, where its it returns the property name that might be
* overwritten by the system environment using Eclipse Microprofile or Jakarta Config API.
*
* @see org.eclipse.jnosql.communication.Settings
*/
public enum Neo4JGraphConfigurations implements Supplier {
/**
* The database host. Default: "bolt://localhost:7687"
*/
HOST("jnosql.neo4j.host"),
/**
* The user's credential. Default: "neo4j"
*/
USER("jnosql.neo4j.user"),
/**
* The password's credential. Default: "neo4j"
*/
PASSWORD("jnosql.neo4j.password");
private final String value;
Neo4JGraphConfigurations(String value) {
this.value = value;
}
@Override
public String get() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy