public class ResultSetReader extends StringLineReader
PS: remember this is a Reader not InputStream, so all the fields read going to be converted to strings before they returned.
| Constructor and Description |
|---|
ResultSetReader(ResultSet in) |
ResultSetReader(ResultSet in,
String delimiter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getRowCount() |
protected String |
nextLine()
Get the next line of results from the ResultSet.
|
static String |
prettyPrint(SQLXML xml) |
static String |
resultSetMetaDataToString(ResultSetMetaData metadata,
String delimiter)
Get the first line from the result set.
|
readpublic ResultSetReader(ResultSet in)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class StringLineReaderIOExceptionReader.close()protected String nextLine() throws IOException
nextLine in class StringLineReaderIOExceptionpublic int getRowCount()
public static String resultSetMetaDataToString(ResultSetMetaData metadata, String delimiter) throws SQLException
SQLExceptionpublic static String prettyPrint(SQLXML xml) throws SQLException
SQLExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.