Package fr.gouv.vitam.metadata.core.database.collections

# Class MongoDbMetadataRepository<T extends VitamDocument<T>>

java.lang.Object
fr.gouv.vitam.metadata.core.database.collections.MongoDbMetadataRepository<T>

public class MongoDbMetadataRepository<T extends VitamDocument<T>> extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MongoDbMetadataRepository(Supplier<com.mongodb.client.MongoCollection<T>> mongoCollectionSupplier)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `delete(List<T> metadataDocuments)`
  `void`
  `insert(List<T> metadataDocuments)`
  `List<T>`
  `selectByIds(Iterable<? extends String> ids, com.mongodb.BasicDBObject projection)`
  `void`
  `update(Map<String,org.bson.conversions.Bson> updates)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MongoDbMetadataRepository

    public MongoDbMetadataRepository(Supplier<com.mongodb.client.MongoCollection<T>> mongoCollectionSupplier)

- ## Method Details

  - ### selectByIds

    public List<T> selectByIds(Iterable<? extends String> ids, com.mongodb.BasicDBObject projection)

  - ### insert

    public void insert(List<T> metadataDocuments) throws MetaDataExecutionException
    Throws:
      `MetaDataExecutionException`

  - ### delete

    public void delete(List<T> metadataDocuments) throws MetaDataExecutionException
    Throws:
      `MetaDataExecutionException`

  - ### update

    public void update(Map<String,org.bson.conversions.Bson> updates) throws MetaDataExecutionException
    Throws:
      `MetaDataExecutionException`