OPENJPA-965 Open up FinderCacheImpl for non-JDBC or JDBC-like implementation of preparing statement/query execution

An approache not exposing FinderCacheImpl to jdbc kernel

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751301 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Catalina Wei 2009-03-07 17:49:31 +00:00
parent b612d64620
commit b45109cec3
2 changed files with 3 additions and 2 deletions

View File

@ -150,7 +150,8 @@ public class FinderQueryImpl
}
}
rs = _select.executeQuery(conn, stmnt, this, jstore, params);
rs = _select.executeQuery(conn, stmnt, getQueryString(), jstore,
params);
return _select.getEagerResult(conn, stmnt, rs, jstore,
(JDBCFetchConfiguration)fetch, forUpdate, _buffer);
} catch (SQLException se) {

View File

@ -484,7 +484,7 @@ public class SelectImpl
* implementation of executing query.
*/
public ResultSet executeQuery(Connection conn, PreparedStatement stmnt,
FinderQueryImpl finder, JDBCStore store, Object[] params)
String sql, JDBCStore store, Object[] params)
throws SQLException {
return stmnt.executeQuery();
}