use of org.camunda.bpm.engine.impl.db.ListQueryParameterObject in project camunda-bpm-platform by camunda.
the class EventSubscriptionManager method findConditionalStartEventSubscription.
/**
* @return the conditional start event subscriptions (from any tenant)
*/
@SuppressWarnings("unchecked")
public List<EventSubscriptionEntity> findConditionalStartEventSubscription() {
ListQueryParameterObject parameter = new ListQueryParameterObject();
configurParameterObject(parameter);
return getDbEntityManager().selectList("selectConditionalStartEventSubscription", parameter);
}
use of org.camunda.bpm.engine.impl.db.ListQueryParameterObject in project camunda-bpm-platform by camunda.
the class HistoricBatchManager method findHistoricBatchIdsForCleanup.
@SuppressWarnings("unchecked")
public List<String> findHistoricBatchIdsForCleanup(Integer batchSize, Map<String, Integer> batchOperationsForHistoryCleanup) {
Map<String, Object> queryParameters = new HashMap<String, Object>();
queryParameters.put("currentTimestamp", ClockUtil.getCurrentTime());
queryParameters.put("map", batchOperationsForHistoryCleanup);
ListQueryParameterObject parameterObject = new ListQueryParameterObject();
parameterObject.setParameter(queryParameters);
parameterObject.getOrderingProperties().add(new QueryOrderingProperty(new QueryPropertyImpl("END_TIME_"), Direction.ASCENDING));
parameterObject.setFirstResult(0);
parameterObject.setMaxResults(batchSize);
return (List<String>) getDbEntityManager().selectList("selectHistoricBatchIdsForCleanup", parameterObject);
}
Aggregations