Search in sources :

Example 1 with QueryCriteriaType

use of org.jbpm.query.jpa.data.QueryWhere.QueryCriteriaType in project jbpm by kiegroup.

the class ErrorInfoQueryBuilderImpl method stackTraceRegex.

@Override
public ErrorInfoQueryBuilder stackTraceRegex(String... stackTraceRegex) {
    QueryWhere queryWhere = getQueryWhere();
    QueryCriteriaType origCriteriaType = queryWhere.getCriteriaType();
    queryWhere.setToLike();
    addObjectParameter(STACK_TRACE_LIST, "stack trace regex", stackTraceRegex);
    switch(origCriteriaType) {
        case NORMAL:
            queryWhere.setToNormal();
            break;
        case RANGE:
            queryWhere.setToRange();
            break;
        case GROUP:
            queryWhere.setToGroup();
            break;
        case REGEXP:
    }
    return this;
}
Also used : QueryWhere(org.jbpm.query.jpa.data.QueryWhere) QueryCriteriaType(org.jbpm.query.jpa.data.QueryWhere.QueryCriteriaType)

Aggregations

QueryWhere (org.jbpm.query.jpa.data.QueryWhere)1 QueryCriteriaType (org.jbpm.query.jpa.data.QueryWhere.QueryCriteriaType)1