Package com.basiscomponents.db.util
Class ResultSetJsonMapper
- java.lang.Object
-
- com.basiscomponents.db.util.ResultSetJsonMapper
-
public class ResultSetJsonMapper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResultSetfromJson(String js)Returns a ResultSet object created by processing the given JSON String.static StringtoJson(ResultSet rs, boolean meta, String addIndexColumn, boolean f_trimStrings, boolean writeDataRowAttributes)static StringtoJson(ResultSet rs, boolean meta, String addIndexColumn, boolean f_trimStrings, boolean writeDataRowAttributes, ConversionRuleSet crs)
-
-
-
Field Detail
-
ATTRIBUTES
public static final String ATTRIBUTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromJson
public static ResultSet fromJson(String js) throws com.fasterxml.jackson.core.JsonParseException, IOException, ParseException
Returns a ResultSet object created by processing the given JSON String.- Parameters:
js- The JSON String used to create the ResultSet object.- Returns:
- The ResultSet object created from the values provided in the given JSON String.
- Throws:
ParseExceptionIOExceptioncom.fasterxml.jackson.core.JsonParseException- throws an exception if can not parse the json string to a DataRow.
-
toJson
public static String toJson(ResultSet rs, boolean meta, String addIndexColumn, boolean f_trimStrings, boolean writeDataRowAttributes) throws IOException
- Throws:
IOException
-
toJson
public static String toJson(ResultSet rs, boolean meta, String addIndexColumn, boolean f_trimStrings, boolean writeDataRowAttributes, ConversionRuleSet crs) throws IOException
- Throws:
IOException
-
-