Package fr.gouv.vitam.worker.core.utils
Class JsonLineDataBase
- java.lang.Object
-
- fr.gouv.vitam.worker.core.utils.JsonLineDataBase
-
public class JsonLineDataBase extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JsonLineDataBase(HandlerIO handlerIO, java.lang.String baseDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
read(java.lang.String id)
Reads a JSON object from the database.void
write(java.lang.String id, com.fasterxml.jackson.databind.JsonNode object)
Writes a JSON object to the database.
-
-
-
Constructor Detail
-
JsonLineDataBase
public JsonLineDataBase(HandlerIO handlerIO, java.lang.String baseDir)
-
-
Method Detail
-
write
public void write(java.lang.String id, com.fasterxml.jackson.databind.JsonNode object)
Writes a JSON object to the database.- Parameters:
id
- The ID of the objectobject
- The JSON object
-
read
public com.fasterxml.jackson.databind.JsonNode read(java.lang.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
-
-