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

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

public class DeployedRuntimeArtifactQuery
extends Query

Query to search for DeployedRuntimeArtifact matching specified attributes.

To restrict the query to currently active artifacts use the findActive factory methods.

Author:
Roland.Stamm
See Also:
findAllActive(Date), findActive(String, Date), findActive(String, String, Date), Serialized Form

Nested Class Summary
static class DeployedRuntimeArtifactQuery.Attribute
          Log entry attribute supporting filter operations.
 
Field Summary
static DeployedRuntimeArtifactQuery.Attribute ARTIFACT_ID
           
static DeployedRuntimeArtifactQuery.Attribute ARTIFACT_NAME
           
static DeployedRuntimeArtifactQuery.Attribute ARTIFACT_TYPE_ID
           
static DeployedRuntimeArtifactQuery.Attribute OID
           
static DeployedRuntimeArtifactQuery.Attribute VALID_FROM
           
 
Constructor Summary
DeployedRuntimeArtifactQuery()
           
DeployedRuntimeArtifactQuery(boolean includeOnlyActive)
           
 
Method Summary
static DeployedRuntimeArtifactQuery findActive(String artifactType, Date activeAt)
          Creates a query for finding active runtime artifacts of a specified type ordered descending by a given date.
static DeployedRuntimeArtifactQuery findActive(String artifactId, String artifactType, Date activeAt)
          Creates a query for finding the active runtime artifact specified by artifact id and of the specified type.
static DeployedRuntimeArtifactQuery findAll()
          Creates a query for finding all runtime artifacts
static DeployedRuntimeArtifactQuery findAllActive(Date activeAt)
          Creates a query for finding all currently active runtime artifacts ordered descending by a given date.
 boolean isIncludeOnlyActive()
           
 
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 DeployedRuntimeArtifactQuery.Attribute OID

ARTIFACT_TYPE_ID

public static final DeployedRuntimeArtifactQuery.Attribute ARTIFACT_TYPE_ID

ARTIFACT_ID

public static final DeployedRuntimeArtifactQuery.Attribute ARTIFACT_ID

ARTIFACT_NAME

public static final DeployedRuntimeArtifactQuery.Attribute ARTIFACT_NAME

VALID_FROM

public static final DeployedRuntimeArtifactQuery.Attribute VALID_FROM
Constructor Detail

DeployedRuntimeArtifactQuery

public DeployedRuntimeArtifactQuery()

DeployedRuntimeArtifactQuery

public DeployedRuntimeArtifactQuery(boolean includeOnlyActive)
Method Detail

findAll

public static DeployedRuntimeArtifactQuery findAll()
Creates a query for finding all runtime artifacts

Returns:
The readily configured query.

findAllActive

public static DeployedRuntimeArtifactQuery findAllActive(Date activeAt)
Creates a query for finding all currently active runtime artifacts ordered descending by a given date.

Returns:
The readily configured query.

findActive

public static DeployedRuntimeArtifactQuery findActive(String artifactType,
                                                      Date activeAt)
Creates a query for finding active runtime artifacts of a specified type ordered descending by a given date.

Returns:
The readily configured query.

findActive

public static DeployedRuntimeArtifactQuery findActive(String artifactId,
                                                      String artifactType,
                                                      Date activeAt)
Creates a query for finding the active runtime artifact specified by artifact id and of the specified type.

Returns:
The readily configured query.

isIncludeOnlyActive

public boolean isIncludeOnlyActive()


Copyright © 2017 Eclipse Stardust. All Rights Reserved.