Class DbRequestSingle
java.lang.Object
fr.gouv.vitam.common.database.server.DbRequestSingle
This class execute all request single in Vitam
-
Constructor Summary
ConstructorDescriptionDbRequestSingle
(VitamCollection<VitamDocument<?>> collection, OntologyLoader ontologyLoader, ElasticsearchIndexAlias elasticsearchIndexAlias) Constructor with VitamCollection -
Method Summary
Modifier and TypeMethodDescriptionexecute
(Insert request, Integer version, DocumentValidator documentValidator) execute
(Update request, DocumentValidator documentValidator) void
replaceDocument
(com.fasterxml.jackson.databind.JsonNode document, String identifierValue, String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection) void
replaceDocuments
(Map<String, com.fasterxml.jackson.databind.JsonNode> documentByIdentifiers, String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection)
-
Constructor Details
-
DbRequestSingle
public DbRequestSingle(VitamCollection<VitamDocument<?>> collection, OntologyLoader ontologyLoader, ElasticsearchIndexAlias elasticsearchIndexAlias) Constructor with VitamCollection
-
-
Method Details
-
execute
public DbRequestResult execute(Select request) throws InvalidParseOperationException, DatabaseException, BadRequestException, InvalidCreateOperationException, VitamDBException, SchemaValidationException -
executeQueryWithoutRestrictionOnCurrentTenant
public DbRequestResult executeQueryWithoutRestrictionOnCurrentTenant(Select request) throws InvalidParseOperationException, DatabaseException, BadRequestException, InvalidCreateOperationException, VitamDBException, SchemaValidationException -
execute
public DbRequestResult execute(Insert request, Integer version, DocumentValidator documentValidator) throws InvalidParseOperationException, DatabaseException, BadRequestException, InvalidCreateOperationException, VitamDBException, SchemaValidationException -
execute
public DbRequestResult execute(Delete request) throws InvalidParseOperationException, DatabaseException, BadRequestException, InvalidCreateOperationException, VitamDBException, SchemaValidationException -
execute
public DbRequestResult execute(Update request, DocumentValidator documentValidator) throws InvalidParseOperationException, DatabaseException, BadRequestException, InvalidCreateOperationException, VitamDBException, SchemaValidationException -
replaceDocument
public void replaceDocument(com.fasterxml.jackson.databind.JsonNode document, String identifierValue, String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection) throws DatabaseException - Throws:
DatabaseException
-
replaceDocuments
public void replaceDocuments(Map<String, com.fasterxml.jackson.databind.JsonNode> documentByIdentifiers, String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection) throws DatabaseException- Throws:
DatabaseException
-