Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 object
        object - 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