Skip to content

Commit 7ae5386

Browse files
committed
docs: update documentation at javadoc
Signed-off-by: Otavio Santana <[email protected]>
1 parent e5d8f1d commit 7ae5386

File tree

5 files changed

+16
-28
lines changed

5 files changed

+16
-28
lines changed

jnosql-neo4j/src/main/java/org/eclipse/jnosql/databases/neo4j/communication/EdgeCommunicationException.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@
1818

1919
/**
2020
* Exception thrown when an issue occurs with edge (relationship) operations in Neo4j.
21-
* <p>
2221
* This exception is raised in cases where an edge cannot be created or removed
2322
* due to missing nodes, constraint violations, or other graph-related inconsistencies.
24-
* </p>
2523
*
26-
* <h3>Common Scenarios:</h3>
2724
* <ul>
2825
* <li>Attempting to create an edge where either the source or target entity does not exist.</li>
2926
* <li>Removing an edge that is not found in the graph.</li>

jnosql-neo4j/src/main/java/org/eclipse/jnosql/databases/neo4j/communication/Neo4JCommunicationException.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@
2020

2121
/**
2222
* Exception representing general communication errors when interacting with a Neo4j database.
23-
* <p>
2423
* This exception is used as a base for more specific exceptions related to Neo4j operations,
2524
* such as Cypher syntax errors, transaction failures, or connectivity issues.
26-
* </p>
2725
*
28-
* <h3>Common Causes:</h3>
2926
* <ul>
3027
* <li>Invalid Cypher query syntax.</li>
3128
* <li>Transaction failures during read or write operations.</li>

jnosql-neo4j/src/main/java/org/eclipse/jnosql/databases/neo4j/communication/Neo4JDatabaseManager.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929
* using the APOC library. Implementations of this interface should handle TTL-related methods
3030
* accordingly—either by integrating APOC's TTL features or throwing {@link UnsupportedOperationException}
3131
* if TTL is not supported.</p>
32-
*
33-
* @apiNote All write operations, including {@code insert} and {@code update}, will be executed within a transaction.
32+
* <p>
33+
* All write operations, including {@code insert} and {@code update}, will be executed within a transaction.
3434
* When performing batch inserts using an iterable, the entire operation will be executed as a single transaction
3535
* to ensure consistency.
3636
*
37-
* <h3>Usage Example:</h3>
3837
* <pre>
3938
* Neo4JDatabaseManager manager = ...; // Obtain an instance
4039
* CommunicationEntity entity = CommunicationEntity.of("User");
@@ -43,8 +42,8 @@
4342
*
4443
* manager.insert(entity); // Insert into Neo4j
4544
* </pre>
46-
*
47-
* @apiNote Ensure proper transaction and session management when implementing this interface.
45+
* <p>
46+
* Ensure proper transaction and session management when implementing this interface.
4847
* Unsupported TTL operations should result in an {@link UnsupportedOperationException}.
4948
*
5049
* @see DatabaseManager
@@ -53,25 +52,26 @@ public interface Neo4JDatabaseManager extends DatabaseManager {
5352

5453
/**
5554
* A specialized {@link DatabaseManager
56-
57-
/**
55+
* <p>
56+
* /**
5857
* Executes a custom Cypher query with parameters and returns a stream of {@link CommunicationEntity}.
58+
*
5959
* @param cypher the Cypher query to execute.
6060
* @param parameters the parameters to bind to the query.
6161
* @return a stream of {@link CommunicationEntity} matching the query result.
62-
* @throws NullPointerException if any of the arguments are {@code null}.
63-
* @throws CypherException if there is an issue with the Cypher syntax.
62+
* @throws NullPointerException if any of the arguments are {@code null}.
63+
* @throws CypherException if there is an issue with the Cypher syntax.
6464
*/
6565
Stream<CommunicationEntity> executeQuery(String cypher, Map<String, Object> parameters);
6666

6767
/**
6868
* Traverses the graph starting from a node and follows the specified relationship type up to a given depth.
6969
*
70-
* @param startNodeId the ID of the starting node.
71-
* @param relationship the type of relationship to traverse.
72-
* @param depth the traversal depth limit.
70+
* @param startNodeId the ID of the starting node.
71+
* @param relationship the type of relationship to traverse.
72+
* @param depth the traversal depth limit.
7373
* @return a stream of {@link CommunicationEntity} representing related nodes.
74-
* @throws NullPointerException if any of the arguments are {@code null}.
74+
* @throws NullPointerException if any of the arguments are {@code null}.
7575
*/
7676
Stream<CommunicationEntity> traverse(String startNodeId, String relationship, int depth);
7777

@@ -82,7 +82,7 @@ public interface Neo4JDatabaseManager extends DatabaseManager {
8282
* @param target the target entity.
8383
* @param relationshipType the type of relationship to create.
8484
* @throws EdgeCommunicationException if either the source or target entity does not exist in the database.
85-
* @throws NullPointerException if any of the arguments are {@code null}.
85+
* @throws NullPointerException if any of the arguments are {@code null}.
8686
*/
8787
void edge(CommunicationEntity source, String relationshipType, CommunicationEntity target);
8888

@@ -93,7 +93,7 @@ public interface Neo4JDatabaseManager extends DatabaseManager {
9393
* @param target the target entity, which must already exist in the database.
9494
* @param relationshipType the type of relationship to remove.
9595
* @throws EdgeCommunicationException if either the source or target entity does not exist in the database.
96-
* @throws NullPointerException if any of the arguments are {@code null}.
96+
* @throws NullPointerException if any of the arguments are {@code null}.
9797
*/
9898
void remove(CommunicationEntity source, String relationshipType, CommunicationEntity target);
9999
}

jnosql-neo4j/src/main/java/org/eclipse/jnosql/databases/neo4j/communication/Neo4JQueryBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
import java.util.Map;
3030
import java.util.stream.Collectors;
3131
public enum Neo4JQueryBuilder {
32+
3233
INSTANCE;
3334

3435
private static final String INTERNAL_ID = "_id";
35-
private static final String NEO4J_ID = "elementId(e)";
3636

3737
public String buildQuery(DeleteQuery query, Map<String, Object> parameters) {
3838
StringBuilder cypher = new StringBuilder("MATCH (e:");

jnosql-neo4j/src/main/java/org/eclipse/jnosql/databases/neo4j/mapping/Cypher.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,20 @@
2222

2323
/**
2424
* Annotation for defining Cypher queries in Neo4J repositories.
25-
* <p>
2625
* This annotation allows users to specify a Cypher query directly on repository methods,
2726
* enabling custom query execution within {@code Neo4JRepository}.
28-
* </p>
2927
*
30-
* <p>
3128
* Example usage:
3229
* <pre>
3330
* {@code
3431
* @Cypher("MATCH (n:Person) WHERE n.name = $name RETURN n")
3532
* List<Person> findByName(@Param("name") String name);
3633
* }
3734
* </pre>
38-
* </p>
3935
*
40-
* <p>
4136
* The {@code value} attribute should contain a valid Cypher query. Query parameters
4237
* can be defined using the {@code $parameterName} syntax, which will be replaced by
4338
* method parameters annotated with {@code @Param}.
44-
* </p>
4539
*
4640
* @see Neo4JRepository
4741
*/

0 commit comments

Comments
 (0)