Class JsonLineDataBase

java.lang.Object
fr.gouv.vitam.worker.core.utils.JsonLineDataBase

public class JsonLineDataBase extends Object
  • Constructor Details

    • JsonLineDataBase

      public JsonLineDataBase(HandlerIO handlerIO, String baseDir)
  • Method Details

    • write

      public void write(String id, com.fasterxml.jackson.databind.JsonNode object)
      Writes a JSON object to the database.
      Parameters:
      id - The ID of the object
      object - The JSON object
    • read

      public com.fasterxml.jackson.databind.JsonNode read(String id)
      Reads a JSON object from the database.
      Parameters:
      id - The ID of the object
      Returns:
      The JSON object, or `null` if the object does not exist