org.apache.ibatis.executor.result.DefaultResultHandler Maven / Gradle / Ivy
package org.apache.ibatis.executor.result;
import org.apache.ibatis.session.ResultContext;
import org.apache.ibatis.session.ResultHandler;
import java.util.ArrayList;
import java.util.List;
public class DefaultResultHandler implements ResultHandler {
private final List list = new ArrayList();
public void handleResult(ResultContext context) {
list.add(context.getResultObject());
}
public List getResultList() {
return list;
}
}