KIE Internal 6.2.0.CR2

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

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

public interface VariableInstanceLogQueryBuilder
extends AuditQueryBuilder<VariableInstanceLogQueryBuilder>


Nested Class Summary
static class VariableInstanceLogQueryBuilder.OrderBy
           
 
Method Summary
 ParametrizedQuery<org.kie.api.runtime.manager.audit.VariableInstanceLog> buildQuery()
          Create the ParametrizedQuery instance that can be used to retrieve the results, a List instance.
 VariableInstanceLogQueryBuilder date(Date... date)
          Specify one or more dates as criteria in the query
 VariableInstanceLogQueryBuilder dateRangeEnd(Date rangeStart)
          Specify the end of a date range to be used as a criteria on the date field.
 VariableInstanceLogQueryBuilder dateRangeStart(Date rangeStart)
          Specify the begin of a date range to be used as a criteria on the date field.
 VariableInstanceLogQueryBuilder externalId(String... externalId)
          Specify one or more external ids to use as a criteria.
 VariableInstanceLogQueryBuilder last()
          Only retrieve the most recent ("last") variable instance logs per variable
 VariableInstanceLogQueryBuilder oldValue(String... oldVvalue)
          Specify one or more old (previous) variable values to use as a criteria.
 VariableInstanceLogQueryBuilder orderBy(VariableInstanceLogQueryBuilder.OrderBy field)
          Specify how the results of the query should be ordered.
 VariableInstanceLogQueryBuilder value(String... value)
          Specify one or more variable values to use as a criteria.
 VariableInstanceLogQueryBuilder variableId(String... variableId)
          Specify one or more variable ids to use as a criteria.
 VariableInstanceLogQueryBuilder variableInstanceId(String... variableInstanceId)
          Specify one or more variable instance ids to use as a criteria.
 VariableInstanceLogQueryBuilder variableValue(String variableId, String value)
          Specify the value that variable instance logs should have
 
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

date

VariableInstanceLogQueryBuilder date(Date... date)
Specify one or more dates as criteria in the query

Parameters:
date - one or more dates
Returns:
The current query builder instance

dateRangeStart

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

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

dateRangeEnd

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

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

variableInstanceId

VariableInstanceLogQueryBuilder variableInstanceId(String... variableInstanceId)
Specify one or more variable instance ids to use as a criteria.

Parameters:
variableInstanceId - one or more string variable instance ids
Returns:
The current query builder instance

variableId

VariableInstanceLogQueryBuilder variableId(String... variableId)
Specify one or more variable ids to use as a criteria.

Parameters:
variableId - one or more string variable ids
Returns:
The current query builder instance

value

VariableInstanceLogQueryBuilder value(String... value)
Specify one or more variable values to use as a criteria.

Parameters:
value - one or more string values
Returns:
The current query builder instance

oldValue

VariableInstanceLogQueryBuilder oldValue(String... oldVvalue)
Specify one or more old (previous) variable values to use as a criteria.

Parameters:
oldVvalue - one or more string old values
Returns:
The current query builder instance

variableValue

VariableInstanceLogQueryBuilder variableValue(String variableId,
                                              String value)
Specify the value that variable instance logs should have

Parameters:
variableId - the String variable id
value - the String value of the variable
Returns:
The current query builder instance

externalId

VariableInstanceLogQueryBuilder externalId(String... externalId)
Specify one or more external ids to use as a criteria. In some cases, the external id is the deployment unit id or runtime manager id.

Parameters:
externalId - one or more string external ids
Returns:
The current query builder instance

last

VariableInstanceLogQueryBuilder last()
Only retrieve the most recent ("last") variable instance logs per variable

Returns:
The current query builder instance

orderBy

VariableInstanceLogQueryBuilder orderBy(VariableInstanceLogQueryBuilder.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.VariableInstanceLog> buildQuery()
Create the ParametrizedQuery instance that can be used to retrieve the results, a List instance.

Further modifications to the VariableInstanceLogQueryBuilder 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.