Package com.exasol.adapter.adapternotes
Class SchemaAdapterNotesJsonConverter
- java.lang.Object
-
- com.exasol.adapter.adapternotes.SchemaAdapterNotesJsonConverter
-
public final class SchemaAdapterNotesJsonConverter extends Object
Converts schema adapter Notes into JSON format and back.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaAdapterNotesconvertFromJsonToSchemaAdapterNotes(String adapterNotes, String schemaName)Converts JSON representation of schema adapter notes into instance ofSchemaAdapterNotesclass.StringconvertToJson(SchemaAdapterNotes schemaAdapterNotes)Converts schema adapter notes into a JSON format.static SchemaAdapterNotesJsonConvertergetInstance()Returns instance ofSchemaAdapterNotesJsonConvertersingleton class.
-
-
-
Method Detail
-
getInstance
public static SchemaAdapterNotesJsonConverter getInstance()
Returns instance ofSchemaAdapterNotesJsonConvertersingleton class.- Returns:
SchemaAdapterNotesJsonConverterinstance
-
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 ofSchemaAdapterNotesclass.- Parameters:
adapterNotes- JSON representation of schema adapter notesschemaName- name of virtual schema- Returns:
- instance of
SchemaAdapterNotes - Throws:
com.exasol.adapter.AdapterException- if the adapter notes are missing or cannot be parsed
-
-