Package fr.gouv.vitam.worker.core.utils

# Class JsonLineDataBase

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

public class JsonLineDataBase extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JsonLineDataBase(HandlerIO handlerIO, String baseDir)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `com.fasterxml.jackson.databind.JsonNode`
  `read(String id)`
  Reads a JSON object from the database.
  `void`
  `write(String id, com.fasterxml.jackson.databind.JsonNode object)`
  Writes a JSON object to the database.

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

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

- ## 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