org.activiti.engine.impl.NativeHistoricDetailQueryImpl Maven / Gradle / Ivy
package org.activiti.engine.impl;
import java.util.List;
import java.util.Map;
import org.activiti.engine.history.HistoricDetail;
import org.activiti.engine.history.NativeHistoricDetailQuery;
import org.activiti.engine.impl.interceptor.CommandContext;
import org.activiti.engine.impl.interceptor.CommandExecutor;
public class NativeHistoricDetailQueryImpl extends AbstractNativeQuery implements NativeHistoricDetailQuery {
private static final long serialVersionUID = 1L;
public NativeHistoricDetailQueryImpl(CommandContext commandContext) {
super(commandContext);
}
public NativeHistoricDetailQueryImpl(CommandExecutor commandExecutor) {
super(commandExecutor);
}
// results ////////////////////////////////////////////////////////////////
public List executeList(CommandContext commandContext, Map parameterMap, int firstResult, int maxResults) {
return commandContext.getHistoricDetailEntityManager().findHistoricDetailsByNativeQuery(parameterMap, firstResult, maxResults);
}
public long executeCount(CommandContext commandContext, Map parameterMap) {
return commandContext.getHistoricDetailEntityManager().findHistoricDetailCountByNativeQuery(parameterMap);
}
}