Class VitamCollection<T>

java.lang.Object
fr.gouv.vitam.common.database.collections.VitamCollection<T>

public class VitamCollection<T> extends Object
Vitam Collection for mongodb
  • Constructor Details

  • Method Details

    • initialize

      public void initialize(com.mongodb.client.MongoDatabase db, boolean recreate)
      Initialize the collection
      Parameters:
      db - mongodb database
      recreate - boolean if recreate the database
    • initialize

      public void initialize(ElasticsearchAccess esClient)
      Initialize the ES Client
      Parameters:
      esClient - ElasticsearchAccess ES Client
    • getName

      public String getName()
      Returns:
      the name of the collection
    • setName

      public void setName(String name)
    • getCollection

      public com.mongodb.client.MongoCollection<T> getCollection()
      Returns:
      the associated MongoCollection
    • getClasz

      public Class<T> getClasz()
      Returns:
      the associated class
    • getEsClient

      public ElasticsearchAccess getEsClient()
      Returns:
      the esClient
    • isMultiTenant

      public boolean isMultiTenant()
      Returns:
      isMultiTenant value
    • isUseScore

      public boolean isUseScore()
      Returns:
      the useScore
    • getVitamDescriptionResolver

      public VitamDescriptionResolver getVitamDescriptionResolver()