Skip to content

Commit da3d625

Browse files
author
Mark
committed
fixed visibility
1 parent ef6eddb commit da3d625

File tree

1 file changed

+41
-35
lines changed

1 file changed

+41
-35
lines changed

src/main/java/com/arangodb/internal/InternalArangoCollection.java

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public String createDocumentHandle(final String key) {
8181
return executor.createPath(name, key);
8282
}
8383

84-
public <T> Request insertDocumentRequest(final T value, final DocumentCreateOptions options) {
84+
protected <T> Request insertDocumentRequest(final T value, final DocumentCreateOptions options) {
8585
final Request request = new Request(db, RequestType.POST,
8686
executor.createPath(ArangoDBConstants.PATH_API_DOCUMENT, name));
8787
final DocumentCreateOptions params = (options != null ? options : new DocumentCreateOptions());
@@ -91,7 +91,7 @@ public <T> Request insertDocumentRequest(final T value, final DocumentCreateOpti
9191
return request;
9292
}
9393

94-
public <T> ResponseDeserializer<DocumentCreateEntity<T>> insertDocumentResponseDeserializer(final T value) {
94+
protected <T> ResponseDeserializer<DocumentCreateEntity<T>> insertDocumentResponseDeserializer(final T value) {
9595
return new ResponseDeserializer<DocumentCreateEntity<T>>() {
9696
@SuppressWarnings("unchecked")
9797
@Override
@@ -112,7 +112,7 @@ public DocumentCreateEntity<T> deserialize(final Response response) throws VPack
112112
};
113113
}
114114

115-
public <T> Request insertDocumentsRequest(final Collection<T> values, final DocumentCreateOptions params) {
115+
protected <T> Request insertDocumentsRequest(final Collection<T> values, final DocumentCreateOptions params) {
116116
final Request request = new Request(db, RequestType.POST,
117117
executor.createPath(ArangoDBConstants.PATH_API_DOCUMENT, name));
118118
request.putQueryParam(ArangoDBConstants.WAIT_FOR_SYNC, params.getWaitForSync());
@@ -122,7 +122,7 @@ public <T> Request insertDocumentsRequest(final Collection<T> values, final Docu
122122
}
123123

124124
@SuppressWarnings("unchecked")
125-
public <T> ResponseDeserializer<MultiDocumentEntity<DocumentCreateEntity<T>>> insertDocumentsResponseDeserializer(
125+
protected <T> ResponseDeserializer<MultiDocumentEntity<DocumentCreateEntity<T>>> insertDocumentsResponseDeserializer(
126126
final Collection<T> values,
127127
final DocumentCreateOptions params) {
128128
return new ResponseDeserializer<MultiDocumentEntity<DocumentCreateEntity<T>>>() {
@@ -159,7 +159,7 @@ public MultiDocumentEntity<DocumentCreateEntity<T>> deserialize(final Response r
159159
};
160160
}
161161

162-
public Request getDocumentRequest(final String key, final DocumentReadOptions options) {
162+
protected Request getDocumentRequest(final String key, final DocumentReadOptions options) {
163163
final Request request = new Request(db, RequestType.GET,
164164
executor.createPath(ArangoDBConstants.PATH_API_DOCUMENT, createDocumentHandle(key)));
165165
final DocumentReadOptions params = (options != null ? options : new DocumentReadOptions());
@@ -168,7 +168,10 @@ public Request getDocumentRequest(final String key, final DocumentReadOptions op
168168
return request;
169169
}
170170

171-
public <T> Request replaceDocumentRequest(final String key, final T value, final DocumentReplaceOptions options) {
171+
protected <T> Request replaceDocumentRequest(
172+
final String key,
173+
final T value,
174+
final DocumentReplaceOptions options) {
172175
final Request request = new Request(db, RequestType.PUT,
173176
executor.createPath(ArangoDBConstants.PATH_API_DOCUMENT, createDocumentHandle(key)));
174177
final DocumentReplaceOptions params = (options != null ? options : new DocumentReplaceOptions());
@@ -181,7 +184,7 @@ public <T> Request replaceDocumentRequest(final String key, final T value, final
181184
return request;
182185
}
183186

184-
public <T> ResponseDeserializer<DocumentUpdateEntity<T>> replaceDocumentResponseDeserializer(final T value) {
187+
protected <T> ResponseDeserializer<DocumentUpdateEntity<T>> replaceDocumentResponseDeserializer(final T value) {
185188
return new ResponseDeserializer<DocumentUpdateEntity<T>>() {
186189
@SuppressWarnings("unchecked")
187190
@Override
@@ -204,7 +207,7 @@ public DocumentUpdateEntity<T> deserialize(final Response response) throws VPack
204207
};
205208
}
206209

207-
public <T> Request replaceDocumentsRequest(final Collection<T> values, final DocumentReplaceOptions params) {
210+
protected <T> Request replaceDocumentsRequest(final Collection<T> values, final DocumentReplaceOptions params) {
208211
final Request request;
209212
request = new Request(db, RequestType.PUT, executor.createPath(ArangoDBConstants.PATH_API_DOCUMENT, name));
210213
request.putQueryParam(ArangoDBConstants.WAIT_FOR_SYNC, params.getWaitForSync());
@@ -217,7 +220,7 @@ public <T> Request replaceDocumentsRequest(final Collection<T> values, final Doc
217220
}
218221

219222
@SuppressWarnings("unchecked")
220-
public <T> ResponseDeserializer<MultiDocumentEntity<DocumentUpdateEntity<T>>> replaceDocumentsResponseDeserializer(
223+
protected <T> ResponseDeserializer<MultiDocumentEntity<DocumentUpdateEntity<T>>> replaceDocumentsResponseDeserializer(
221224
final Collection<T> values,
222225
final DocumentReplaceOptions params) {
223226
return new ResponseDeserializer<MultiDocumentEntity<DocumentUpdateEntity<T>>>() {
@@ -259,7 +262,7 @@ public MultiDocumentEntity<DocumentUpdateEntity<T>> deserialize(final Response r
259262
};
260263
}
261264

262-
public <T> Request updateDocumentRequest(final String key, final T value, final DocumentUpdateOptions options) {
265+
protected <T> Request updateDocumentRequest(final String key, final T value, final DocumentUpdateOptions options) {
263266
final Request request;
264267
request = new Request(db, RequestType.PATCH,
265268
executor.createPath(ArangoDBConstants.PATH_API_DOCUMENT, createDocumentHandle(key)));
@@ -275,7 +278,7 @@ public <T> Request updateDocumentRequest(final String key, final T value, final
275278
return request;
276279
}
277280

278-
public <T> ResponseDeserializer<DocumentUpdateEntity<T>> updateDocumentResponseDeserializer(final T value) {
281+
protected <T> ResponseDeserializer<DocumentUpdateEntity<T>> updateDocumentResponseDeserializer(final T value) {
279282
return new ResponseDeserializer<DocumentUpdateEntity<T>>() {
280283
@SuppressWarnings("unchecked")
281284
@Override
@@ -295,7 +298,7 @@ public DocumentUpdateEntity<T> deserialize(final Response response) throws VPack
295298
};
296299
}
297300

298-
public <T> Request updateDocumentsRequest(final Collection<T> values, final DocumentUpdateOptions params) {
301+
protected <T> Request updateDocumentsRequest(final Collection<T> values, final DocumentUpdateOptions params) {
299302
final Request request;
300303
request = new Request(db, RequestType.PATCH, executor.createPath(ArangoDBConstants.PATH_API_DOCUMENT, name));
301304
final Boolean keepNull = params.getKeepNull();
@@ -311,7 +314,7 @@ public <T> Request updateDocumentsRequest(final Collection<T> values, final Docu
311314
}
312315

313316
@SuppressWarnings("unchecked")
314-
public <T> ResponseDeserializer<MultiDocumentEntity<DocumentUpdateEntity<T>>> updateDocumentsResponseDeserializer(
317+
protected <T> ResponseDeserializer<MultiDocumentEntity<DocumentUpdateEntity<T>>> updateDocumentsResponseDeserializer(
315318
final Collection<T> values,
316319
final DocumentUpdateOptions params) {
317320
return new ResponseDeserializer<MultiDocumentEntity<DocumentUpdateEntity<T>>>() {
@@ -353,7 +356,7 @@ public MultiDocumentEntity<DocumentUpdateEntity<T>> deserialize(final Response r
353356
};
354357
}
355358

356-
public Request deleteDocumentRequest(final String key, final DocumentDeleteOptions options) {
359+
protected Request deleteDocumentRequest(final String key, final DocumentDeleteOptions options) {
357360
final Request request;
358361
request = new Request(db, RequestType.DELETE,
359362
executor.createPath(ArangoDBConstants.PATH_API_DOCUMENT, createDocumentHandle(key)));
@@ -364,7 +367,8 @@ public Request deleteDocumentRequest(final String key, final DocumentDeleteOptio
364367
return request;
365368
}
366369

367-
public <T> ResponseDeserializer<DocumentDeleteEntity<T>> deleteDocumentResponseDeserializer(final Class<T> type) {
370+
protected <T> ResponseDeserializer<DocumentDeleteEntity<T>> deleteDocumentResponseDeserializer(
371+
final Class<T> type) {
368372
return new ResponseDeserializer<DocumentDeleteEntity<T>>() {
369373
@SuppressWarnings("unchecked")
370374
@Override
@@ -380,7 +384,7 @@ public DocumentDeleteEntity<T> deserialize(final Response response) throws VPack
380384
};
381385
}
382386

383-
public Request deleteDocumentsRequest(final Collection<String> keys, final DocumentDeleteOptions options) {
387+
protected Request deleteDocumentsRequest(final Collection<String> keys, final DocumentDeleteOptions options) {
384388
final Request request;
385389
request = new Request(db, RequestType.DELETE, executor.createPath(ArangoDBConstants.PATH_API_DOCUMENT, name));
386390
final DocumentDeleteOptions params = (options != null ? options : new DocumentDeleteOptions());
@@ -390,7 +394,7 @@ public Request deleteDocumentsRequest(final Collection<String> keys, final Docum
390394
return request;
391395
}
392396

393-
public <T> ResponseDeserializer<MultiDocumentEntity<DocumentDeleteEntity<T>>> deleteDocumentsResponseDeserializer(
397+
protected <T> ResponseDeserializer<MultiDocumentEntity<DocumentDeleteEntity<T>>> deleteDocumentsResponseDeserializer(
394398
final Class<T> type) {
395399
return new ResponseDeserializer<MultiDocumentEntity<DocumentDeleteEntity<T>>>() {
396400
@SuppressWarnings("unchecked")
@@ -421,7 +425,7 @@ public MultiDocumentEntity<DocumentDeleteEntity<T>> deserialize(final Response r
421425
};
422426
}
423427

424-
public Request documentExistsRequest(final String key, final DocumentExistsOptions options) {
428+
protected Request documentExistsRequest(final String key, final DocumentExistsOptions options) {
425429
final Request request;
426430
request = new Request(db, RequestType.HEAD,
427431
executor.createPath(ArangoDBConstants.PATH_API_DOCUMENT, createDocumentHandle(key)));
@@ -431,7 +435,7 @@ public Request documentExistsRequest(final String key, final DocumentExistsOptio
431435
return request;
432436
}
433437

434-
public Request createHashIndexRequest(final Collection<String> fields, final HashIndexOptions options) {
438+
protected Request createHashIndexRequest(final Collection<String> fields, final HashIndexOptions options) {
435439
final Request request;
436440
request = new Request(db, RequestType.POST, ArangoDBConstants.PATH_API_INDEX);
437441
request.putQueryParam(ArangoDBConstants.COLLECTION, name);
@@ -440,7 +444,7 @@ public Request createHashIndexRequest(final Collection<String> fields, final Has
440444
return request;
441445
}
442446

443-
public Request createSkiplistIndexRequest(final Collection<String> fields, final SkiplistIndexOptions options) {
447+
protected Request createSkiplistIndexRequest(final Collection<String> fields, final SkiplistIndexOptions options) {
444448
final Request request;
445449
request = new Request(db, RequestType.POST, ArangoDBConstants.PATH_API_INDEX);
446450
request.putQueryParam(ArangoDBConstants.COLLECTION, name);
@@ -449,7 +453,9 @@ public Request createSkiplistIndexRequest(final Collection<String> fields, final
449453
return request;
450454
}
451455

452-
public Request createPersistentIndexRequest(final Collection<String> fields, final PersistentIndexOptions options) {
456+
protected Request createPersistentIndexRequest(
457+
final Collection<String> fields,
458+
final PersistentIndexOptions options) {
453459
final Request request;
454460
request = new Request(db, RequestType.POST, ArangoDBConstants.PATH_API_INDEX);
455461
request.putQueryParam(ArangoDBConstants.COLLECTION, name);
@@ -458,7 +464,7 @@ public Request createPersistentIndexRequest(final Collection<String> fields, fin
458464
return request;
459465
}
460466

461-
public Request createGeoIndexRequest(final Collection<String> fields, final GeoIndexOptions options) {
467+
protected Request createGeoIndexRequest(final Collection<String> fields, final GeoIndexOptions options) {
462468
final Request request;
463469
request = new Request(db, RequestType.POST, ArangoDBConstants.PATH_API_INDEX);
464470
request.putQueryParam(ArangoDBConstants.COLLECTION, name);
@@ -467,14 +473,14 @@ public Request createGeoIndexRequest(final Collection<String> fields, final GeoI
467473
return request;
468474
}
469475

470-
public Request getIndexesRequest() {
476+
protected Request getIndexesRequest() {
471477
final Request request;
472478
request = new Request(db, RequestType.GET, ArangoDBConstants.PATH_API_INDEX);
473479
request.putQueryParam(ArangoDBConstants.COLLECTION, name);
474480
return request;
475481
}
476482

477-
public ResponseDeserializer<Collection<IndexEntity>> getIndexesResponseDeserializer() {
483+
protected ResponseDeserializer<Collection<IndexEntity>> getIndexesResponseDeserializer() {
478484
return new ResponseDeserializer<Collection<IndexEntity>>() {
479485
@Override
480486
public Collection<IndexEntity> deserialize(final Response response) throws VPackException {
@@ -485,17 +491,17 @@ public Collection<IndexEntity> deserialize(final Response response) throws VPack
485491
};
486492
}
487493

488-
public Request truncateRequest() {
494+
protected Request truncateRequest() {
489495
return new Request(db, RequestType.PUT,
490496
executor.createPath(ArangoDBConstants.PATH_API_COLLECTION, name, ArangoDBConstants.TRUNCATE));
491497
}
492498

493-
public Request countRequest() {
499+
protected Request countRequest() {
494500
return new Request(db, RequestType.GET,
495501
executor.createPath(ArangoDBConstants.PATH_API_COLLECTION, name, ArangoDBConstants.COUNT));
496502
}
497503

498-
public Request createFulltextIndexRequest(final Collection<String> fields, final FulltextIndexOptions options) {
504+
protected Request createFulltextIndexRequest(final Collection<String> fields, final FulltextIndexOptions options) {
499505
final Request request;
500506
request = new Request(db, RequestType.POST, ArangoDBConstants.PATH_API_INDEX);
501507
request.putQueryParam(ArangoDBConstants.COLLECTION, name);
@@ -504,46 +510,46 @@ public Request createFulltextIndexRequest(final Collection<String> fields, final
504510
return request;
505511
}
506512

507-
public Request dropRequest() {
513+
protected Request dropRequest() {
508514
return new Request(db, RequestType.DELETE, executor.createPath(ArangoDBConstants.PATH_API_COLLECTION, name));
509515
}
510516

511-
public Request loadRequest() {
517+
protected Request loadRequest() {
512518
return new Request(db, RequestType.PUT,
513519
executor.createPath(ArangoDBConstants.PATH_API_COLLECTION, name, ArangoDBConstants.LOAD));
514520
}
515521

516-
public Request unloadRequest() {
522+
protected Request unloadRequest() {
517523
return new Request(db, RequestType.PUT,
518524
executor.createPath(ArangoDBConstants.PATH_API_COLLECTION, name, ArangoDBConstants.UNLOAD));
519525
}
520526

521-
public Request getInfoRequest() {
527+
protected Request getInfoRequest() {
522528
return new Request(db, RequestType.GET, executor.createPath(ArangoDBConstants.PATH_API_COLLECTION, name));
523529
}
524530

525-
public Request getPropertiesRequest() {
531+
protected Request getPropertiesRequest() {
526532
return new Request(db, RequestType.GET,
527533
executor.createPath(ArangoDBConstants.PATH_API_COLLECTION, name, ArangoDBConstants.PROPERTIES));
528534
}
529535

530-
public Request changePropertiesRequest(final CollectionPropertiesOptions options) {
536+
protected Request changePropertiesRequest(final CollectionPropertiesOptions options) {
531537
final Request request;
532538
request = new Request(db, RequestType.PUT,
533539
executor.createPath(ArangoDBConstants.PATH_API_COLLECTION, name, ArangoDBConstants.PROPERTIES));
534540
request.setBody(executor.serialize(options != null ? options : new CollectionPropertiesOptions()));
535541
return request;
536542
}
537543

538-
public Request renameRequest(final String newName) {
544+
protected Request renameRequest(final String newName) {
539545
final Request request;
540546
request = new Request(db, RequestType.PUT,
541547
executor.createPath(ArangoDBConstants.PATH_API_COLLECTION, name, ArangoDBConstants.RENAME));
542548
request.setBody(executor.serialize(OptionsBuilder.build(new CollectionRenameOptions(), newName)));
543549
return request;
544550
}
545551

546-
public Request getRevisionRequest() {
552+
protected Request getRevisionRequest() {
547553
return new Request(db, RequestType.GET,
548554
executor.createPath(ArangoDBConstants.PATH_API_COLLECTION, name, ArangoDBConstants.REVISION));
549555
}

0 commit comments

Comments
 (0)