convertResultSetToAny
public static java.util.Collection<Record> convertResultSetToAny(java.sql.ResultSet resultSet,
long maxAttachmentSize,
MessageCollector messages)
throws java.sql.SQLException,
java.io.IOException
Data types that can be converted to an Any Value will be stored as record metadata, while binary data is appended
as an attachment.
The attachments will be kept in memory, so take please care of memory consumption.
When conversion fails, an exception will be thrown.
- Parameters:
resultSet - the result set to be converted into a collection of records.
- Returns:
- a list of records that have been created by the results contained in the resultSet, null, if resultSet also
was null.
- Throws:
java.sql.SQLException
java.io.IOException