Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create GraphDatabaseManager interface
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
- Loading branch information
1 parent
97afc3d
commit 858065d
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...ping-graph/src/main/java/org/eclipse/jnosql/communication/graph/GraphDatabaseManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.eclipse.jnosql.communication.graph; | ||
|
||
import org.apache.tinkerpop.gremlin.structure.Graph; | ||
import org.eclipse.jnosql.communication.semistructured.DatabaseManager; | ||
|
||
import java.util.function.Supplier; | ||
|
||
/** | ||
* A specialized extension of {@link DatabaseManager} that provides access to a graph database represented by the | ||
* {@link org.apache.tinkerpop.gremlin.structure.Graph} interface from Apache TinkerPop. | ||
* <p> | ||
* Implementations of this interface are expected to provide methods for interacting with the underlying graph | ||
* database, such as retrieving vertices, edges, and properties, executing graph traversals, and performing other | ||
* graph-related operations. | ||
* <p> | ||
* In addition to the functionality inherited from {@link DatabaseManager}, implementations of this interface | ||
* also act as suppliers of the underlying {@link org.apache.tinkerpop.gremlin.structure.Graph} instance. | ||
* </p> | ||
*/ | ||
public interface GraphDatabaseManager extends DatabaseManager, Supplier<Graph> { | ||
} |
15 changes: 15 additions & 0 deletions
15
...osql-mapping-graph/src/main/java/org/eclipse/jnosql/communication/graph/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* 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. | ||
* | ||
* Contributors: | ||
* | ||
* Otavio Santana | ||
*/ | ||
package org.eclipse.jnosql.communication.graph; |