public interface ResponseSerializer
Modifier and Type | Method and Description |
---|---|
String |
getSupportedMediaType()
Returns supported media type.
|
String |
serializeReadFlat(SqlResource sqlResource,
ResultSet resultSet)
Converts flat select results to a string.
|
String |
serializeReadHierarchical(SqlResource sqlResource,
List<Map<String,Object>> results)
Converts hierarchical select results to a string.
|
String |
serializeWrite(SqlResource sqlResource,
WriteResponse response)
Converts write response to a string.
|
String getSupportedMediaType()
String serializeReadFlat(SqlResource sqlResource, ResultSet resultSet) throws SQLException
sqlResource
- SQL resourceresultSet
- resultsSQLException
String serializeReadHierarchical(SqlResource sqlResource, List<Map<String,Object>> results)
sqlResource
- SQL resourceresults
- resultsString serializeWrite(SqlResource sqlResource, WriteResponse response)
sqlResource
- SQL resourceresponse
- responseCopyright © 2011-2018 restSQL Project Contributors