Class DbRequestSingle
- java.lang.Object
-
- fr.gouv.vitam.common.database.server.DbRequestSingle
-
public class DbRequestSingle extends java.lang.Object
This class execute all request single in Vitam
-
-
Constructor Summary
Constructors Constructor Description DbRequestSingle(VitamCollection<VitamDocument<?>> collection, OntologyLoader ontologyLoader, ElasticsearchIndexAlias elasticsearchIndexAlias)
Constructor with VitamCollection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbRequestResult
execute(Delete request)
DbRequestResult
execute(Insert request, java.lang.Integer version, DocumentValidator documentValidator)
DbRequestResult
execute(Select request)
DbRequestResult
execute(Update request, DocumentValidator documentValidator)
void
replaceDocument(com.fasterxml.jackson.databind.JsonNode document, java.lang.String identifierValue, java.lang.String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection)
void
replaceDocuments(java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> documentByIdentifiers, java.lang.String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection)
-
-
-
Constructor Detail
-
DbRequestSingle
public DbRequestSingle(VitamCollection<VitamDocument<?>> collection, OntologyLoader ontologyLoader, ElasticsearchIndexAlias elasticsearchIndexAlias)
Constructor with VitamCollection
-
-
Method Detail
-
execute
public DbRequestResult execute(Select request) throws InvalidParseOperationException, DatabaseException, BadRequestException, InvalidCreateOperationException, VitamDBException, SchemaValidationException
-
execute
public DbRequestResult execute(Insert request, java.lang.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, java.lang.String identifierValue, java.lang.String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection) throws DatabaseException
- Throws:
DatabaseException
-
replaceDocuments
public void replaceDocuments(java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> documentByIdentifiers, java.lang.String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection) throws DatabaseException
- Throws:
DatabaseException
-
-