Class SchemaAdapterNotesJsonConverter


  • public final class SchemaAdapterNotesJsonConverter
    extends Object
    Converts schema adapter Notes into JSON format and back.
    • Method Detail

      • convertToJson

        public String convertToJson​(SchemaAdapterNotes schemaAdapterNotes)
        Converts schema adapter notes into a JSON format.
        Parameters:
        schemaAdapterNotes - schema adapter notes to be converted
        Returns:
        string representation of a JSON Object
      • convertFromJsonToSchemaAdapterNotes

        public SchemaAdapterNotes convertFromJsonToSchemaAdapterNotes​(String adapterNotes,
                                                                      String schemaName)
                                                               throws com.exasol.adapter.AdapterException
        Converts JSON representation of schema adapter notes into instance of SchemaAdapterNotes class.
        Parameters:
        adapterNotes - JSON representation of schema adapter notes
        schemaName - name of virtual schema
        Returns:
        instance of SchemaAdapterNotes
        Throws:
        com.exasol.adapter.AdapterException - if the adapter notes are missing or cannot be parsed