Class DatabaseResultSetHelper
java.lang.Object
org.eclipse.dirigible.databases.helpers.DatabaseResultSetHelper
public class DatabaseResultSetHelper extends Object
The Database Result SetHelper.
-
Constructor Summary
Constructors Constructor Description DatabaseResultSetHelper() -
Method Summary
Modifier and Type Method Description static Stringprint(ResultSet resultSet, boolean limited)Prints the provided ResultSet to theResultSetMonospacedWriterwriter.static StringtoJson(ResultSet resultSet, boolean limited)Prints the provided ResultSet to theResultSetJsonWriterwriter.
-
Constructor Details
-
DatabaseResultSetHelper
public DatabaseResultSetHelper()
-
-
Method Details
-
print
Prints the provided ResultSet to theResultSetMonospacedWriterwriter.- Parameters:
resultSet- the result setlimited- the limited- Returns:
- the string
- Throws:
SQLException- the SQL exception
-
toJson
Prints the provided ResultSet to theResultSetJsonWriterwriter.- Parameters:
resultSet- the result setlimited- the limited- Returns:
- the string
- Throws:
SQLException- the SQL exception
-