KIE Internal 6.2.0.CR2

org.kie.internal.runtime.manager.audit.query
Interface ProcessInstanceLogQueryBuilder

All Superinterfaces:
AuditQueryBuilder<ProcessInstanceLogQueryBuilder>, ParametrizedQueryBuilder<ProcessInstanceLogQueryBuilder>

public interface ProcessInstanceLogQueryBuilder
extends AuditQueryBuilder<ProcessInstanceLogQueryBuilder>


Nested Class Summary
static class ProcessInstanceLogQueryBuilder.OrderBy
           
 
Method Summary
 ParametrizedQuery<org.kie.api.runtime.manager.audit.ProcessInstanceLog> buildQuery()
          Create the ParametrizedQuery instance that can be used to retrieve the results, a List instance.
 ProcessInstanceLogQueryBuilder duration(long... duration)
          Specify one or more (process instance) durations as a criteria.
 ProcessInstanceLogQueryBuilder durationMax(long durationMax)
          Specify the end (maximum) of a range to be used as a criteria on the (process instance) duration field
 ProcessInstanceLogQueryBuilder durationMin(long durationMin)
          Specify the begin (minimum) of a range to be used as a criteria on the (process instance) duration field
 ProcessInstanceLogQueryBuilder endDate(Date... date)
          Specify one or more (process instance) end dates as a criteria
 ProcessInstanceLogQueryBuilder endDateRangeEnd(Date rangeEnd)
          Specify the end of a date range to be used as a criteria on the end date field.
 ProcessInstanceLogQueryBuilder endDateRangeStart(Date rangeStart)
          Specify the begin of a date range to be used as a criteria on the end date field.
 ProcessInstanceLogQueryBuilder identity(String... identity)
          Specify one or more identiies (who started the process instance) as a criteria
 ProcessInstanceLogQueryBuilder orderBy(ProcessInstanceLogQueryBuilder.OrderBy field)
          Specify how the results of the query should be ordered.
 ProcessInstanceLogQueryBuilder outcome(String... outcome)
          Specify one or more (process instance) outcomes as a criteria.
 ProcessInstanceLogQueryBuilder processName(String... processName)
          Specify one or more process names as a criteria
 ProcessInstanceLogQueryBuilder processVersion(String... version)
          Specify one or more process versions as a criteria
 ProcessInstanceLogQueryBuilder startDate(Date... date)
          Specify one or more (process instance) start dates as a criteria
 ProcessInstanceLogQueryBuilder startDateRangeEnd(Date rangeEnd)
          Specify the end of a date range to be used as a criteria on the start date field.
 ProcessInstanceLogQueryBuilder startDateRangeStart(Date rangeStart)
          Specify the begin of a date range to be used as a criteria on the start date field.
 ProcessInstanceLogQueryBuilder status(int... status)
          Specify one more statuses (in the form of an int) as criteria.
 
Methods inherited from interface org.kie.internal.runtime.manager.audit.query.AuditQueryBuilder
processId, processInstanceId
 
Methods inherited from interface org.kie.internal.query.ParametrizedQueryBuilder
ascending, clear, descending, equals, intersect, like, maxResults, offset, union
 

Method Detail

status

ProcessInstanceLogQueryBuilder status(int... status)
Specify one more statuses (in the form of an int) as criteria.

Parameters:
status - one or more int statuses
Returns:
The current instance of this query builder

outcome

ProcessInstanceLogQueryBuilder outcome(String... outcome)
Specify one or more (process instance) outcomes as a criteria.

Parameters:
outcome - one or more string outcomes
Returns:
The current instance of this query builder

duration

ProcessInstanceLogQueryBuilder duration(long... duration)
Specify one or more (process instance) durations as a criteria.

This duration is in milliseconds.

Parameters:
duration - one or more long durations
Returns:
The current instance of this query builder

durationMin

ProcessInstanceLogQueryBuilder durationMin(long durationMin)
Specify the begin (minimum) of a range to be used as a criteria on the (process instance) duration field

Parameters:
durationMin - the begin (minimum) of the long range
Returns:
The current instance of this query builder

durationMax

ProcessInstanceLogQueryBuilder durationMax(long durationMax)
Specify the end (maximum) of a range to be used as a criteria on the (process instance) duration field

Parameters:
durationMax - the end (maximum) of the long range
Returns:
The current instance of this query builder

identity

ProcessInstanceLogQueryBuilder identity(String... identity)
Specify one or more identiies (who started the process instance) as a criteria

Parameters:
identity - one or more string identities
Returns:
The current instance of this query builder

processVersion

ProcessInstanceLogQueryBuilder processVersion(String... version)
Specify one or more process versions as a criteria

Parameters:
version - one or more string process versions
Returns:
The current instance of this query builder

processName

ProcessInstanceLogQueryBuilder processName(String... processName)
Specify one or more process names as a criteria

Parameters:
processName - one or more string process names
Returns:
The current instance of this query builder

startDate

ProcessInstanceLogQueryBuilder startDate(Date... date)
Specify one or more (process instance) start dates as a criteria

Parameters:
date - one or more Date start dates
Returns:
The current instance of this query builder

startDateRangeStart

ProcessInstanceLogQueryBuilder startDateRangeStart(Date rangeStart)
Specify the begin of a date range to be used as a criteria on the start date field. The date range includes the date specified.

Parameters:
rangeStart - the start (early end) of the date range
Returns:
The current query builder instance

startDateRangeEnd

ProcessInstanceLogQueryBuilder startDateRangeEnd(Date rangeEnd)
Specify the end of a date range to be used as a criteria on the start date field. The date range includes this date.

Parameters:
rangeEnd - the end (later end) of the date range
Returns:
The current query builder instance

endDate

ProcessInstanceLogQueryBuilder endDate(Date... date)
Specify one or more (process instance) end dates as a criteria

Parameters:
date - one or more Date end dates
Returns:
The current instance of this query builder

endDateRangeStart

ProcessInstanceLogQueryBuilder endDateRangeStart(Date rangeStart)
Specify the begin of a date range to be used as a criteria on the end date field. The date range includes this date.

Parameters:
date - the begin (later end) of the date range
Returns:
The current query builder instance

endDateRangeEnd

ProcessInstanceLogQueryBuilder endDateRangeEnd(Date rangeEnd)
Specify the end of a date range to be used as a criteria on the end date field. The date range includes this date.

Parameters:
date - the end (later end) of the date range
Returns:
The current query builder instance

orderBy

ProcessInstanceLogQueryBuilder orderBy(ProcessInstanceLogQueryBuilder.OrderBy field)
Specify how the results of the query should be ordered.

If this method is not used, the results will be ordered by the id field.

Parameters:
field - the field by which the query results should be ordered
Returns:
The current instance of this query builder

buildQuery

ParametrizedQuery<org.kie.api.runtime.manager.audit.ProcessInstanceLog> buildQuery()
Create the ParametrizedQuery instance that can be used to retrieve the results, a List instance.

Further modifications to the ProcessInstanceLogQueryBuilder instance will not affect the query criteria used in the ParametrizedQuery produced by this method.

Returns:
The results of the query

KIE Internal 6.2.0.CR2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.