Java Code Examples for org.springframework.jdbc.LobRetrievalFailureException

Following code examples demonstrate how to use org.springframework.jdbc.LobRetrievalFailureExceptionfrom spring-framework. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.springframework.jdbc.LobRetrievalFailureExceptionand various code implementation of this class.

	public final Object extractData(ResultSet rs) throws SQLException, DataAccessException {
		if (!rs.next()) {
			handleNoRowFound();
		}
		else {
			try {
				streamData(rs);
				if (rs.next()) {
					handleMultipleRowsFound();
				}
			}
			catch (IOException ex) {
				throw new LobRetrievalFailureException("Couldn't stream LOB content", ex);
			}
		}
		return null;
	} 


Advertisement
Javadoc
Exception to be thrown when a LOB could not be retrieved. @author Juergen Hoeller @since 1.0.2
Advertisement