diff --git a/org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/SqlRowSetResultSetExtractor.java b/org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/SqlRowSetResultSetExtractor.java index ba62017d27..2cfdc215ba 100644 --- a/org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/SqlRowSetResultSetExtractor.java +++ b/org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/SqlRowSetResultSetExtractor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,8 +28,8 @@ import org.springframework.jdbc.support.rowset.SqlRowSet; import org.springframework.util.ReflectionUtils; /** - * ResultSetExtractor implementation that returns a Spring SqlRowSet - * representation for each given ResultSet. + * {@link ResultSetExtractor} implementation that returns a Spring {@link SqlRowSet} + * representation for each given {@link ResultSet}. * *

The default implementation uses a standard JDBC CachedRowSet underneath. * This means that JDBC RowSet support needs to be available at runtime: @@ -88,8 +88,9 @@ public class SqlRowSetResultSetExtractor implements ResultSetExtractorcreateSqlRowSet implementation. - *

The default implementation creates a new instance of - * Sun's com.sun.rowset.CachedRowSetImpl class. + *

The default implementation uses JDBC 4.1's RowSetProvider + * when running on JDK 7 or higher, falling back to Sun's + * com.sun.rowset.CachedRowSetImpl class on older JDKs. * @return a new CachedRowSet instance * @throws SQLException if thrown by JDBC methods * @see #createSqlRowSet @@ -101,6 +102,17 @@ public class SqlRowSetResultSetExtractor implements ResultSetExtractor