Skip to content

Commit

Permalink
replace JDK internal API
Browse files Browse the repository at this point in the history
fixes #644
  • Loading branch information
darkv committed Nov 3, 2015
1 parent 0f30a2a commit e70a1b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
import java.util.Enumeration;

import javax.sql.rowset.CachedRowSet;
import javax.sql.rowset.RowSetProvider;

import org.apache.log4j.Logger;

import com.sun.rowset.CachedRowSetImpl;
import com.webobjects.appserver.WOApplication;
import com.webobjects.eoaccess.EOAdaptor;
import com.webobjects.eoaccess.EOAdaptorChannel;
Expand Down Expand Up @@ -947,7 +947,7 @@ public void processResultSet(EOAdaptorChannel innerAdaptorChannel, ResultSet rs)
* if something goes wrong
*/
public static CachedRowSet fetchRowSet(EOAdaptorChannel adaptorChannel, String query) throws Exception {
final CachedRowSetImpl rowSet = new CachedRowSetImpl();
final CachedRowSet rowSet = RowSetProvider.newFactory().createCachedRowSet();
ERXJDBCUtilities.executeQuery(adaptorChannel, query, new IResultSetDelegate() {
public void processResultSet(EOAdaptorChannel innerAdaptorChannel, ResultSet rs) throws Exception {
rowSet.populate(rs);
Expand Down

0 comments on commit e70a1b7

Please sign in to comment.