Package org.dashbuilder.dataset.json
Class SQLDefJSONMarshaller
- java.lang.Object
-
- org.dashbuilder.dataset.json.SQLDefJSONMarshaller
-
- All Implemented Interfaces:
DataSetDefJSONMarshallerExt<SQLDataSetDef>
public class SQLDefJSONMarshaller extends Object implements DataSetDefJSONMarshallerExt<SQLDataSetDef>
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATA_SOURCEstatic StringDB_SCHEMAstatic StringDB_SQLstatic StringDB_TABLEstatic SQLDefJSONMarshallerINSTANCE
-
Constructor Summary
Constructors Constructor Description SQLDefJSONMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromJson(SQLDataSetDef def, org.dashbuilder.json.JsonObject json)Updates the given data set def instance with the status stored into the json object passed as a parameter.voidtoJson(SQLDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)Writes into the given json object the status of the data set def instance.
-
-
-
Field Detail
-
INSTANCE
public static SQLDefJSONMarshaller INSTANCE
-
DATA_SOURCE
public static final String DATA_SOURCE
- See Also:
- Constant Field Values
-
DB_SCHEMA
public static final String DB_SCHEMA
- See Also:
- Constant Field Values
-
DB_TABLE
public static final String DB_TABLE
- See Also:
- Constant Field Values
-
DB_SQL
public static final String DB_SQL
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromJson
public void fromJson(SQLDataSetDef def, org.dashbuilder.json.JsonObject json)
Description copied from interface:DataSetDefJSONMarshallerExtUpdates the given data set def instance with the status stored into the json object passed as a parameter.- Specified by:
fromJsonin interfaceDataSetDefJSONMarshallerExt<SQLDataSetDef>
-
toJson
public void toJson(SQLDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)
Description copied from interface:DataSetDefJSONMarshallerExtWrites into the given json object the status of the data set def instance.- Specified by:
toJsonin interfaceDataSetDefJSONMarshallerExt<SQLDataSetDef>
-
-