Skip to content

Commit 87f658e

Browse files
committed
refactored javadoc limitations for proper html rendering
1 parent d907177 commit 87f658e

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

src/main/java/com/arangodb/ArangoCollection.java

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,81 +80,81 @@ public interface ArangoCollection extends ArangoSerializationAccessor {
8080
* Creates new documents from the given documents, unless there is already a document with the _key given. If no
8181
* _key is given, a new unique _key is generated automatically.
8282
*
83+
* Limitations:
84+
* - the fields having {@code null} value are always removed during serialization
85+
*
8386
* @param values A List of documents (POJO, VPackSlice or String for JSON)
8487
* @return information about the documents
8588
* @throws ArangoDBException
8689
* @see <a href="https://www.arangodb.com/docs/stable/http/document-working-with-documents.html#create-document">API
8790
* Documentation</a>
88-
*
89-
* @implNote The current implementation has the following limitations:
90-
* - the fields having {@code null} value are always removed during serialization
9191
*/
9292
<T> MultiDocumentEntity<DocumentCreateEntity<T>> insertDocuments(Collection<T> values) throws ArangoDBException;
9393

9494
/**
9595
* Creates new documents from the given documents, unless there is already a document with the _key given. If no
9696
* _key is given, a new unique _key is generated automatically.
9797
*
98+
* Limitations:
99+
* - the fields having {@code null} value are always removed during serialization
100+
*
98101
* @param values A List of documents (POJO, VPackSlice or String for JSON)
99102
* @param options Additional options, can be null
100103
* @return information about the documents
101104
* @throws ArangoDBException
102105
* @see <a href="https://www.arangodb.com/docs/stable/http/document-working-with-documents.html#create-document">API
103106
* Documentation</a>
104-
*
105-
* @implNote The current implementation has the following limitations:
106-
* - the fields having {@code null} value are always removed during serialization
107107
*/
108108
<T> MultiDocumentEntity<DocumentCreateEntity<T>> insertDocuments(
109109
Collection<T> values, DocumentCreateOptions options) throws ArangoDBException;
110110

111111
/**
112112
* Bulk imports the given values into the collection.
113113
*
114+
* Limitations:
115+
* - the fields having {@code null} value are always removed during serialization
116+
*
114117
* @param values a list of Objects that will be stored as documents
115118
* @return information about the import
116119
* @throws ArangoDBException
117-
*
118-
* @implNote The current implementation has the following limitations:
119-
* - the fields having {@code null} value are always removed during serialization
120120
*/
121121
DocumentImportEntity importDocuments(Collection<?> values) throws ArangoDBException;
122122

123123
/**
124124
* Bulk imports the given values into the collection.
125125
*
126+
* Limitations:
127+
* - the fields having {@code null} value are always removed during serialization
128+
*
126129
* @param values a list of Objects that will be stored as documents
127130
* @param options Additional options, can be null
128131
* @return information about the import
129132
* @throws ArangoDBException
130-
*
131-
* @implNote The current implementation has the following limitations:
132-
* - the fields having {@code null} value are always removed during serialization
133133
*/
134134
DocumentImportEntity importDocuments(Collection<?> values, DocumentImportOptions options) throws ArangoDBException;
135135

136136
/**
137137
* Bulk imports the given values into the collection.
138138
*
139+
* Limitations:
140+
* - the fields having {@code null} value are always removed during serialization
141+
*
139142
* @param values JSON-encoded array of objects that will be stored as documents
140143
* @return information about the import
141144
* @throws ArangoDBException
142-
*
143-
* @implNote The current implementation has the following limitations:
144-
* - the fields having {@code null} value are always removed during serialization
145145
*/
146146
DocumentImportEntity importDocuments(String values) throws ArangoDBException;
147147

148148
/**
149149
* Bulk imports the given values into the collection.
150150
*
151+
* Limitations:
152+
* - the fields having {@code null} value are always removed during serialization
153+
*
151154
* @param values JSON-encoded array of objects that will be stored as documents
152155
* @param options Additional options, can be null
153156
* @return information about the import
154157
* @throws ArangoDBException
155-
*
156-
* @implNote The current implementation has the following limitations:
157-
* - the fields having {@code null} value are always removed during serialization
158158
*/
159159
DocumentImportEntity importDocuments(String values, DocumentImportOptions options) throws ArangoDBException;
160160

@@ -237,30 +237,30 @@ <T> DocumentUpdateEntity<T> replaceDocument(String key, T value, DocumentReplace
237237
* Replaces multiple documents in the specified collection with the ones in the values, the replaced documents are
238238
* specified by the _key attributes in the documents in values.
239239
*
240+
* Limitations:
241+
* - the fields having {@code null} value are always removed during serialization
242+
*
240243
* @param values A List of documents (POJO, VPackSlice or String for JSON)
241244
* @return information about the documents
242245
* @throws ArangoDBException
243246
* @see <a href="https://www.arangodb.com/docs/stable/http/document-working-with-documents.html#replace-documents">API
244247
* Documentation</a>
245-
*
246-
* @implNote The current implementation has the following limitations:
247-
* - the fields having {@code null} value are always removed during serialization
248248
*/
249249
<T> MultiDocumentEntity<DocumentUpdateEntity<T>> replaceDocuments(Collection<T> values) throws ArangoDBException;
250250

251251
/**
252252
* Replaces multiple documents in the specified collection with the ones in the values, the replaced documents are
253253
* specified by the _key attributes in the documents in values.
254254
*
255+
* Limitations:
256+
* - the fields having {@code null} value are always removed during serialization
257+
*
255258
* @param values A List of documents (POJO, VPackSlice or String for JSON)
256259
* @param options Additional options, can be null
257260
* @return information about the documents
258261
* @throws ArangoDBException
259262
* @see <a href="https://www.arangodb.com/docs/stable/http/document-working-with-documents.html#replace-documents">API
260263
* Documentation</a>
261-
*
262-
* @implNote The current implementation has the following limitations:
263-
* - the fields having {@code null} value are always removed during serialization
264264
*/
265265
<T> MultiDocumentEntity<DocumentUpdateEntity<T>> replaceDocuments(
266266
Collection<T> values, DocumentReplaceOptions options) throws ArangoDBException;

src/main/java/com/arangodb/model/DocumentCreateOptions.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,16 @@ public OverwriteMode getOverwriteMode() {
104104
}
105105

106106
/**
107+
* Limitations:
108+
* - {@code keepNull} parameter is not supported
109+
* - the fields having {@code null} value are always removed during serialization
110+
* Therefore in case of {@link OverwriteMode#update}, existing attributes cannot be removed.
111+
*
107112
* @param overwriteMode This parameter can be set to replace or update. If given it sets implicitly the overwrite
108113
* flag. In case it is set to update, the replace-insert becomes an update-insert. Otherwise
109114
* this option follows the rules of the overwrite parameter.
110115
* @return options
111116
* @since ArangoDB 3.7
112-
*
113-
* @implNote The current implementation has the following limitations:
114-
* - `keepNull` parameter is not supported
115-
* - the fields having {@code null} value are always removed during serialization
116-
* Therefore in case of {@link OverwriteMode#update}, existing attributes cannot be removed.
117117
*/
118118
public DocumentCreateOptions overwriteMode(final OverwriteMode overwriteMode) {
119119
this.overwriteMode = overwriteMode;
@@ -153,13 +153,13 @@ public Boolean getMergeObjects() {
153153
}
154154

155155
/**
156+
* Only considered if {@link this#overwriteMode} is set to {@link OverwriteMode#update}
157+
*
156158
* @param mergeObjects Controls whether objects (not arrays) will be merged if present in both the existing and the patch
157159
* document. If set to false, the value in the patch document will overwrite the existing document's
158160
* value. If set to true, objects will be merged. The default is true.
159161
* @return options
160162
* @since ArangoDB 3.7
161-
*
162-
* @apiNote only considered if {@link this#overwriteMode} is set to {@link OverwriteMode#update}
163163
*/
164164
public DocumentCreateOptions mergeObjects(Boolean mergeObjects) {
165165
this.mergeObjects = mergeObjects;

0 commit comments

Comments
 (0)