org.eclipse.stardust.engine.api.query
Class LogEntryQuery

java.lang.Object
  extended by org.eclipse.stardust.engine.api.query.Query
      extended by org.eclipse.stardust.engine.api.query.LogEntryQuery
All Implemented Interfaces:
Serializable

public class LogEntryQuery
extends Query

Version:
$Revision$
Author:
rsauer
See Also:
Serialized Form

Nested Class Summary
static class LogEntryQuery.Attribute
          Log entry attribute supporting filter operations.
 
Field Summary
static LogEntryQuery.Attribute ACTIVITY_INSTANCE_OID
           
static LogEntryQuery.Attribute CODE
           
static LogEntryQuery.Attribute OID
           
static LogEntryQuery.Attribute PROCESS_INSTANCE_OID
           
static LogEntryQuery.Attribute STAMP
           
static LogEntryQuery.Attribute SUBJECT
           
static LogEntryQuery.Attribute TYPE
           
 
Constructor Summary
LogEntryQuery()
           
 
Method Summary
static LogEntryQuery findAll(boolean descending)
          Creates a query for finding all log entries, ordering the result either by descending or ascending timestamps.
static LogEntryQuery findAll(int startIndex, int maxSize)
          Creates a query for finding a subset of all log entries.
static LogEntryQuery findForActivity(String activityID)
           
static LogEntryQuery findForActivityInstance(long activityInstanceOID)
          Creates a query for finding log entries belonging to the activity instance identified by the given OID.
static LogEntryQuery findForActivityInstance(long activityInstanceOID, boolean descending)
          Creates a query for finding log entries belonging to the activity instance identified by the given OID, ordering the result either by descending or ascending timestamps.
static LogEntryQuery findForProcessDefinition(String processDefinitionID)
           
static LogEntryQuery findForProcessInstance(long processInstanceOID)
          Creates a query for finding log entries belonging to the process instance identified by the given OID.
static LogEntryQuery findForProcessInstance(long processInstanceOID, boolean descending)
          Creates a query for finding log entries belonging to the process instance identified by the given OID, ordering the result either by descending or ascending timestamps.
 
Methods inherited from class org.eclipse.stardust.engine.api.query.Query
getFilter, getOrderCriteria, getPolicy, orderBy, orderBy, orderBy, removePolicy, setPolicy, toString, where
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OID

public static final LogEntryQuery.Attribute OID

TYPE

public static final LogEntryQuery.Attribute TYPE

CODE

public static final LogEntryQuery.Attribute CODE

SUBJECT

public static final LogEntryQuery.Attribute SUBJECT

STAMP

public static final LogEntryQuery.Attribute STAMP

PROCESS_INSTANCE_OID

public static final LogEntryQuery.Attribute PROCESS_INSTANCE_OID

ACTIVITY_INSTANCE_OID

public static final LogEntryQuery.Attribute ACTIVITY_INSTANCE_OID
Constructor Detail

LogEntryQuery

public LogEntryQuery()
Method Detail

findAll

public static LogEntryQuery findAll(boolean descending)
Creates a query for finding all log entries, ordering the result either by descending or ascending timestamps.

Parameters:
descending - Flag indicating if found log entries will be ordered by descending or ascending timestamps.
Returns:
The readily configured query.
See Also:
findForProcessInstance(long), Query.orderBy(FilterableAttribute, boolean), STAMP

findAll

public static LogEntryQuery findAll(int startIndex,
                                    int maxSize)
Creates a query for finding a subset of all log entries.

Parameters:
startIndex - The number of log entries to be skipped.
maxSize - The maximum number of log entries to be retrieved.
Returns:
The readily configured query.
See Also:
Query.setPolicy(org.eclipse.stardust.engine.api.query.EvaluationPolicy), SubsetPolicy

findForProcessDefinition

public static LogEntryQuery findForProcessDefinition(String processDefinitionID)

findForProcessInstance

public static LogEntryQuery findForProcessInstance(long processInstanceOID)
Creates a query for finding log entries belonging to the process instance identified by the given OID.

Parameters:
processInstanceOID - The OID of the process instance to find log entries for.
Returns:
The readily configured query.
See Also:
findForProcessInstance(long, boolean)

findForProcessInstance

public static LogEntryQuery findForProcessInstance(long processInstanceOID,
                                                   boolean descending)
Creates a query for finding log entries belonging to the process instance identified by the given OID, ordering the result either by descending or ascending timestamps.

Parameters:
processInstanceOID - The OID of the process instance to find log entries for.
descending - Flag indicating if found log entries will be ordered by descending or ascending timestamps.
Returns:
The readily configured query.
See Also:
findForProcessInstance(long)

findForActivity

public static LogEntryQuery findForActivity(String activityID)

findForActivityInstance

public static LogEntryQuery findForActivityInstance(long activityInstanceOID)
Creates a query for finding log entries belonging to the activity instance identified by the given OID.

Parameters:
activityInstanceOID - The OID of the activity instance to find log entries for.
Returns:
The readily configured query.
See Also:
findForActivityInstance(long, boolean)

findForActivityInstance

public static LogEntryQuery findForActivityInstance(long activityInstanceOID,
                                                    boolean descending)
Creates a query for finding log entries belonging to the activity instance identified by the given OID, ordering the result either by descending or ascending timestamps.

Parameters:
activityInstanceOID - The OID of the activity instance to find log entries for.
descending - Flag indicating if found log entries will be ordered by descending or ascending timestamps.
Returns:
The readily configured query.
See Also:
findForActivityInstance(long)


Copyright © 2017 Eclipse Stardust. All Rights Reserved.