# Uses of Class
fr.gouv.vitam.common.exception.DatabaseException

Packages that use DatabaseException
Package
Description
fr.gouv.vitam.common.database.api
Provides common database API
fr.gouv.vitam.common.database.api.impl
Provides common database API implementations
fr.gouv.vitam.common.database.server
Database server package in vitam
fr.gouv.vitam.common.database.server.elasticsearch
Elasticsearch server package in Vitam
fr.gouv.vitam.common.exception
Common Exception package
fr.gouv.vitam.functional.administration.common.server
Provides common server classes for the Functional Administration module
fr.gouv.vitam.functional.administration.core.reconstruction
fr.gouv.vitam.logbook.common.server
Provides Common Server classes for the Logbook module
fr.gouv.vitam.logbook.common.server.database.collections
Provides Logbook collection classes
fr.gouv.vitam.logbook.lifecycles.api
Provides API classes for the Logbook Lifecycles module
fr.gouv.vitam.logbook.lifecycles.core
Provides core implementation for the Logbook Lifecycles module.
fr.gouv.vitam.logbook.operations.api
Provides API classes for the Logbook Operations module
fr.gouv.vitam.logbook.operations.core
Provides core implementation for the Logbook Operations module.
fr.gouv.vitam.metadata.core
Provides
fr.gouv.vitam.metadata.core.database.collections
Provides
fr.gouv.vitam.metadata.core.reconstruction.repository

- ## Uses of DatabaseException in fr.gouv.vitam.common.database.api

  Methods in fr.gouv.vitam.common.database.api that throw DatabaseException
  Modifier and Type
  Method
  Description
  `void`
  VitamRepository.`delete(List<String> ids, int tenant)`
  Deleted all documents by ids
  `Optional<org.bson.Document>`
  VitamRepository.`findByIdentifier(String identifier)`
  Find by identifier for collections cross tenant
  `Optional<org.bson.Document>`
  VitamRepository.`findByIdentifierAndTenant(String identifier, Integer tenant)`
  find by identifier for all tenant
  `Optional<org.bson.Document>`
  VitamRepository.`getByID(String id, Integer tenant)`
  Get vitam document by id
  `long`
  VitamRepository.`purge()`
  Be careful when using this method Remove by tenant for collection cross-tenant
  `long`
  VitamRepository.`purge(Integer tenant)`
  Be careful when using this method Remove by tenant for collection multi-tenant
  `void`
  VitamRepository.`remove(String id, Integer tenant)`
  Remove document by id
  `long`
  VitamRepository.`remove(org.bson.conversions.Bson query)`
  Be careful when using this method Remove by query
  `void`
  VitamRepository.`removeByNameAndTenant(String name, Integer tenant)`
  Be careful when using this method Remove collection by name and tenant
  `void`
  VitamRepository.`save(List<org.bson.Document> documents)`
  Save a list of vitam documents
  `void`
  VitamRepository.`save(org.bson.Document document)`
  Save vitam document
  `void`
  VitamRepository.`saveOrUpdate(List<org.bson.Document> documents)`
  Save or update a list of vitam documents
  `VitamRepositoryStatus`
  VitamRepository.`saveOrUpdate(org.bson.Document document)`
  Save or updatevitam document
  `void`
  VitamRepository.`update(List<com.mongodb.client.model.WriteModel<org.bson.Document>> updates)`
  Used to execute a bulk update If document exists then update If document do not exists then create document throw Duplicate key exception if document exists by _id but not exists by filter in the update one model

- ## Uses of DatabaseException in fr.gouv.vitam.common.database.api.impl

  Methods in fr.gouv.vitam.common.database.api.impl that throw DatabaseException
  Modifier and Type
  Method
  Description
  `void`
  VitamElasticsearchRepository.`delete(List<String> ids, int tenant)`
  `Optional<org.bson.Document>`
  VitamElasticsearchRepository.`findByIdentifier(String identifier)`
  `Optional<org.bson.Document>`
  VitamMongoRepository.`findByIdentifier(String identifier)`
  `Optional<org.bson.Document>`
  VitamElasticsearchRepository.`findByIdentifierAndTenant(String identifier, Integer tenant)`
  `Optional<org.bson.Document>`
  VitamMongoRepository.`findByIdentifierAndTenant(String identifier, Integer tenant)`
  `Optional<org.bson.Document>`
  VitamElasticsearchRepository.`getByID(String id, Integer tenant)`
  `Optional<org.bson.Document>`
  VitamMongoRepository.`getByID(String id, Integer tenant)`
  `Optional<org.bson.Document>`
  VitamElasticsearchRepository.`getDocumentByIdCrossIndices(String id)`
  WARNING: Query all indices.
  `long`
  VitamElasticsearchRepository.`purge()`
  `long`
  VitamElasticsearchRepository.`purge(Integer tenant)`
  `long`
  VitamMongoRepository.`purge()`
  `long`
  VitamMongoRepository.`purge(Integer tenant)`
  `void`
  VitamElasticsearchRepository.`remove(String id, Integer tenant)`
  `void`
  VitamMongoRepository.`remove(String id, Integer tenant)`
  `long`
  VitamMongoRepository.`remove(org.bson.conversions.Bson query)`
  `void`
  VitamMongoRepository.`removeByNameAndTenant(String name, Integer tenant)`
  `void`
  VitamElasticsearchRepository.`save(ElasticsearchCollections elasticsearchCollections, List<org.bson.Document> documents)`
  `void`
  VitamElasticsearchRepository.`save(List<org.bson.Document> documents)`
  `VitamRepositoryStatus`
  VitamElasticsearchRepository.`save(org.bson.Document document)`
  `void`
  VitamMongoRepository.`save(List<org.bson.Document> documents)`
  `void`
  VitamMongoRepository.`save(org.bson.Document document)`
  `void`
  VitamMongoRepository.`saveOrUpdate(List<org.bson.Document> documents)`
  `VitamRepositoryStatus`
  VitamMongoRepository.`saveOrUpdate(org.bson.Document document)`
  `co.elastic.clients.elasticsearch.core.SearchResponse<org.bson.Document>`
  VitamElasticsearchRepository.`search(String index, co.elastic.clients.elasticsearch._types.query_dsl.Query qb)`
  `void`
  VitamMongoRepository.`update(List<com.mongodb.client.model.WriteModel<org.bson.Document>> queries)`

- ## Uses of DatabaseException in fr.gouv.vitam.common.database.server

  Methods in fr.gouv.vitam.common.database.server that throw DatabaseException
  Modifier and Type
  Method
  Description
  `DbRequestResult`
  DbRequestSingle.`execute(Delete request)`
  `DbRequestResult`
  DbRequestSingle.`execute(Insert request, Integer version, DocumentValidator documentValidator)`
  `DbRequestResult`
  DbRequestSingle.`execute(Select request)`
  `DbRequestResult`
  DbRequestSingle.`execute(Update request, DocumentValidator documentValidator)`
  `DbRequestResult`
  DbRequestSingle.`executeQueryWithoutRestrictionOnCurrentTenant(Select request)`
  `void`
  DbRequestSingle.`replaceDocument(com.fasterxml.jackson.databind.JsonNode document, String identifierValue, String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection)`
  `void`
  DbRequestSingle.`replaceDocuments(Map<String,com.fasterxml.jackson.databind.JsonNode> documentByIdentifiers, String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection)`

- ## Uses of DatabaseException in fr.gouv.vitam.common.database.server.elasticsearch

  Methods in fr.gouv.vitam.common.database.server.elasticsearch that return DatabaseException
  Modifier and Type
  Method
  Description
  `static DatabaseException`
  ElasticsearchUtil.`toDatabaseException(Exception e)`
  `static DatabaseException`
  ElasticsearchUtil.`toDatabaseException(String msg, Exception e)`
  Methods in fr.gouv.vitam.common.database.server.elasticsearch that throw DatabaseException
  Modifier and Type
  Method
  Description
  `void`
  ElasticsearchAccess.`clearScroll(String scrollId)`
  `final void`
  ElasticsearchAccess.`createIndexAndAliasIfAliasNotExists(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, String elasticsearchConfigurationFile)`
  `final ElasticsearchIndexAlias`
  ElasticsearchAccess.`createIndexWithoutAlias(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, String elasticsearchConfigurationFile)`
  `void`
  ElasticsearchAccess.`delete(ElasticsearchIndexAlias indexAlias, List<String> ids)`
  `final void`
  ElasticsearchAccess.`deleteIndexByAliasForTesting(ElasticsearchIndexAlias indexAlias)`
  `final void`
  ElasticsearchAccess.`deleteIndexForTesting(ElasticsearchIndexAlias indexAlias)`
  `final boolean`
  ElasticsearchAccess.`existsAlias(ElasticsearchIndexAlias indexAlias)`
  `final boolean`
  ElasticsearchAccess.`existsIndex(ElasticsearchIndexAlias index)`
  `void`
  ElasticsearchAccess.`indexEntries(ElasticsearchIndexAlias indexAlias, Collection<? extends org.bson.Document> documents, boolean withRefreshIndex)`
  `final <T> void`
  ElasticsearchAccess.`indexEntry(ElasticsearchIndexAlias indexAlias, String id, VitamDocument<T> vitamDocument)`
  `final void`
  ElasticsearchAccess.`purgeIndexForTesting(ElasticsearchIndexAlias indexAlias)`
  `protected void`
  ElasticsearchAccess.`purgeIndexForTesting(ElasticsearchIndexAlias indexAlias, Integer tenantId)`
  `final void`
  ElasticsearchAccess.`refreshIndex(ElasticsearchIndexAlias indexAlias)`
  `ReindexationOK`
  IndexationHelper.`reindex(com.mongodb.client.MongoCollection<org.bson.Document> collection, ElasticsearchAccess esClient, ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, ElasticsearchCollections elasticsearchCollection, List<Integer> tenantIds, String tenantGroupName, String elasticsearchConfigurationFilePath)`
  reindex a collection on a tenant list with a esmapping file
  `final co.elastic.clients.elasticsearch.core.search.ResponseBody<com.fasterxml.jackson.databind.node.ObjectNode>`
  ElasticsearchAccess.`search(ElasticsearchIndexAlias indexAlias, co.elastic.clients.elasticsearch._types.query_dsl.Query query, String[] esProjection, List<co.elastic.clients.elasticsearch._types.SortOptions> sorts, int offset, Integer limit, Map<String,co.elastic.clients.elasticsearch._types.aggregations.Aggregation> facets)`
  `final co.elastic.clients.elasticsearch.core.search.ResponseBody<com.fasterxml.jackson.databind.node.ObjectNode>`
  ElasticsearchAccess.`search(ElasticsearchIndexAlias indexAlias, co.elastic.clients.elasticsearch._types.query_dsl.Query query, String[] esProjection, List<co.elastic.clients.elasticsearch._types.SortOptions> sorts, int offset, Integer limit, Map<String,co.elastic.clients.elasticsearch._types.aggregations.Aggregation> facets, String scrollId, Integer scrollTimeout, boolean trackTotalHits)`
  `final co.elastic.clients.elasticsearch.core.search.ResponseBody<com.fasterxml.jackson.databind.node.ObjectNode>`
  ElasticsearchAccess.`searchCrossIndices(Set<ElasticsearchIndexAlias> indexAliases, co.elastic.clients.elasticsearch._types.query_dsl.Query query, String[] esProjection, List<co.elastic.clients.elasticsearch._types.SortOptions> sorts, int offset, Integer limit, Map<String,co.elastic.clients.elasticsearch._types.aggregations.Aggregation> facets, String scrollId, Integer scrollTimeout, boolean trackTotalHits)`
  `final void`
  ElasticsearchAccess.`switchIndex(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexAlias indexNameToSwitchTo)`
  `SwitchIndexResult`
  IndexationHelper.`switchIndex(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexAlias newIndex, ElasticsearchAccess esClient)`
  switch index, attach a new index to an existing alias
  `<T> void`
  ElasticsearchAccess.`updateEntry(ElasticsearchIndexAlias indexAlias, String id, VitamDocument<T> vitamDocument)`
  Update one element fully

- ## Uses of DatabaseException in fr.gouv.vitam.common.exception

  Subclasses of DatabaseException in fr.gouv.vitam.common.exception
  Modifier and Type
  Class
  Description
  `class`
  `DocumentAlreadyExistsException`

- ## Uses of DatabaseException in fr.gouv.vitam.functional.administration.common.server

  Methods in fr.gouv.vitam.functional.administration.common.server that throw DatabaseException
  Modifier and Type
  Method
  Description
  `DbRequestResult`
  MongoDbAccessAdminImpl.`deleteCollectionForTesting(FunctionalAdminCollections collection)`
  `DbRequestResult`
  MongoDbAccessAdminImpl.`deleteCollectionForTesting(FunctionalAdminCollections collection, Delete delete)`
  `DbRequestResult`
  MongoDbAccessReferential.`deleteCollectionForTesting(FunctionalAdminCollections collection)`
  Delete FileFormat collections
  `DbRequestResult`
  MongoDbAccessReferential.`deleteCollectionForTesting(FunctionalAdminCollections collection, Delete delete)`
  `void`
  VitamElasticsearchReindex.`reindex(VitamCollection collections)`
  `void`
  MongoDbAccessAdminImpl.`replaceDocument(com.fasterxml.jackson.databind.JsonNode document, String identifierValue, String identifierKey, FunctionalAdminCollections vitamCollection)`
  `void`
  MongoDbAccessReferential.`replaceDocument(com.fasterxml.jackson.databind.JsonNode document, String identifier, String identifierName, FunctionalAdminCollections vitamCollection)`
  `void`
  MongoDbAccessAdminImpl.`replaceDocuments(Map<String,com.fasterxml.jackson.databind.JsonNode> documentByIdentifier, String identifierKey, FunctionalAdminCollections vitamCollection)`

- ## Uses of DatabaseException in fr.gouv.vitam.functional.administration.core.reconstruction

  Methods in fr.gouv.vitam.functional.administration.core.reconstruction that throw DatabaseException
  Modifier and Type
  Method
  Description
  `void`
  ReconstructionService.`reconstruct(FunctionalAdminCollections collection)`
  Reconstrut Vitam collection.
  `void`
  ReconstructionService.`reconstruct(FunctionalAdminCollections collection, Integer... tenant)`
  Reconstrut Vitam collection by tenant.
  `void`
  ReconstructionServiceImpl.`reconstruct(FunctionalAdminCollections collection)`
  `void`
  ReconstructionServiceImpl.`reconstruct(FunctionalAdminCollections collection, Integer... tenants)`
  purge collection content and reconstruct the content.

- ## Uses of DatabaseException in fr.gouv.vitam.logbook.common.server

  Methods in fr.gouv.vitam.logbook.common.server that throw DatabaseException
  Modifier and Type
  Method
  Description
  `void`
  LogbookDbAccess.`bulkInsert(String idOp, LogbookCollections lifecycleUnit, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels)`
  `void`
  LogbookDbAccess.`deleteCollectionForTesting(LogbookCollections collection)`
  Delete logbook collection

- ## Uses of DatabaseException in fr.gouv.vitam.logbook.common.server.database.collections

  Methods in fr.gouv.vitam.logbook.common.server.database.collections that throw DatabaseException
  Modifier and Type
  Method
  Description
  `void`
  LogbookMongoDbAccessImpl.`bulkInsert(String operationId, LogbookCollections lifecycleUnit, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels)`
  `void`
  LogbookMongoDbAccessImpl.`deleteCollectionForTesting(LogbookCollections collection)`
  `void`
  LogbookRepositoryService.`saveBulk(LogbookCollections collection, List<com.fasterxml.jackson.databind.JsonNode> logbookItems)`
  Save datas as bulk

- ## Uses of DatabaseException in fr.gouv.vitam.logbook.lifecycles.api

  Methods in fr.gouv.vitam.logbook.lifecycles.api that throw DatabaseException
  Modifier and Type
  Method
  Description
  `void`
  LogbookLifeCycles.`bulk(LogbookCollections collections, String idOp, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels)`
  Bulk method
  `void`
  LogbookLifeCycles.`deleteLifeCycleObjectGroups(List<String> objectGroupIds)`
  delete LifeCycle ObjectGroups
  `void`
  LogbookLifeCycles.`deleteLifeCycleUnits(List<String> unitsIdentifier)`
  delete LifeCycle Units

- ## Uses of DatabaseException in fr.gouv.vitam.logbook.lifecycles.core

  Methods in fr.gouv.vitam.logbook.lifecycles.core that throw DatabaseException
  Modifier and Type
  Method
  Description
  `void`
  LogbookLifeCyclesImpl.`bulk(LogbookCollections collections, String idOp, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels)`
  `void`
  LogbookLifeCyclesImpl.`deleteLifeCycleObjectGroups(List<String> objectGroupIds)`
  `void`
  LogbookLifeCyclesImpl.`deleteLifeCycleUnits(List<String> unitsIdentifier)`

- ## Uses of DatabaseException in fr.gouv.vitam.logbook.operations.api

  Methods in fr.gouv.vitam.logbook.operations.api that throw DatabaseException
  Modifier and Type
  Method
  Description
  `SwitchIndexResult`
  LogbookOperations.`switchIndex(String alias, String newIndexName)`
  Switch indexes for one or more collections

- ## Uses of DatabaseException in fr.gouv.vitam.logbook.operations.core

  Methods in fr.gouv.vitam.logbook.operations.core that throw DatabaseException
  Modifier and Type
  Method
  Description
  `SwitchIndexResult`
  LogbookOperationsDecorator.`switchIndex(String alias, String newIndexName)`
  `SwitchIndexResult`
  LogbookOperationsImpl.`switchIndex(String alias, String newIndexName)`

- ## Uses of DatabaseException in fr.gouv.vitam.metadata.core

  Methods in fr.gouv.vitam.metadata.core that throw DatabaseException
  Modifier and Type
  Method
  Description
  `SwitchIndexResult`
  MetaDataImpl.`switchIndex(String alias, String newIndexName)`

- ## Uses of DatabaseException in fr.gouv.vitam.metadata.core.database.collections

  Methods in fr.gouv.vitam.metadata.core.database.collections that throw DatabaseException
  Modifier and Type
  Method
  Description
  `List<PurgedPersistentIdentifier>`
  PersistentIdentifierRepositoryImpl.`findByPersistentIdentifierAndTenant(String persistentIdentifier, Integer tenant, String type)`
  `com.fasterxml.jackson.databind.JsonNode`
  MetadataRepositoryService.`getDocumentById(MetadataCollections collection, String id, Integer tenant)`
  Retrieve document by its ID in a given collection filtered by a tenant in mongo

- ## Uses of DatabaseException in fr.gouv.vitam.metadata.core.reconstruction.repository

  Methods in fr.gouv.vitam.metadata.core.reconstruction.repository that throw DatabaseException
  Modifier and Type
  Method
  Description
  `List<PurgedPersistentIdentifier>`
  PersistentIdentifierRepository.`findByPersistentIdentifierAndTenant(String persistentIdentifier, Integer tenant, String type)`