org.jbpm.api
Interface DeploymentQuery


public interface DeploymentQuery

find existing deployments in the repository.

Author:
Tom Baeyens

Field Summary
static java.lang.String PROPERTY_STATE
           
static java.lang.String PROPERTY_TIMESTAMP
           
 
Method Summary
 long count()
          execute a count(*) query and returns number of results
 DeploymentQuery deploymentId(java.lang.String id)
          only include a specific deployment by id
 java.util.List<Deployment> list()
          execute the query and get the result list
 DeploymentQuery notSuspended()
          only select non-suspended deployments
 DeploymentQuery orderAsc(java.lang.String property)
          order results ascending for property PROPERTY_TIMESTAMP or PROPERTY_STATE
 DeploymentQuery orderDesc(java.lang.String property)
          order results descending for property PROPERTY_TIMESTAMP or PROPERTY_STATE
 DeploymentQuery page(int firstResult, int maxResults)
          only select a specific page
 DeploymentQuery suspended()
          only select suspended deployments
 Deployment uniqueResult()
          execute the query and get the unique result
 

Field Detail

PROPERTY_TIMESTAMP

static final java.lang.String PROPERTY_TIMESTAMP
See Also:
Constant Field Values

PROPERTY_STATE

static final java.lang.String PROPERTY_STATE
See Also:
Constant Field Values
Method Detail

deploymentId

DeploymentQuery deploymentId(java.lang.String id)
only include a specific deployment by id


suspended

DeploymentQuery suspended()
only select suspended deployments


notSuspended

DeploymentQuery notSuspended()
only select non-suspended deployments


orderAsc

DeploymentQuery orderAsc(java.lang.String property)
order results ascending for property PROPERTY_TIMESTAMP or PROPERTY_STATE


orderDesc

DeploymentQuery orderDesc(java.lang.String property)
order results descending for property PROPERTY_TIMESTAMP or PROPERTY_STATE


page

DeploymentQuery page(int firstResult,
                     int maxResults)
only select a specific page


list

java.util.List<Deployment> list()
execute the query and get the result list


uniqueResult

Deployment uniqueResult()
execute the query and get the unique result


count

long count()
execute a count(*) query and returns number of results



Copyright © 2010 JBoss Community. All Rights Reserved.