public List doQuery(MappedStatement ms, Object parameter, int rowOffset, int rowLimit, ResultHandler resultHandler) throws SQLException {
Configuration configuration = ms.getConfiguration();
StatementHandler handler = configuration.newStatementHandler(this, ms, parameter, rowOffset, rowLimit, resultHandler);
Statement stmt = prepareStatement(handler);
return handler.query(stmt, resultHandler);
}
public List doFlushStatements()
throws SQLException {
for (Statement stmt : statementMap.values()) {