org.jbpm.services.api.query.model

## Interface QueryDefinition

- All Known Implementing Classes:
    SqlQueryDefinition

      public interface QueryDefinition

  Definition of a query that can be registered in the query service

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `QueryDefinition.Target`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getExpression()` Returns expression used to collect/fetch data as part of the query
    `String` | `getName()` Return unique name of this query
    `String` | `getSource()` Returns source location of this query Depends on exact type of the query definition (e.g. data base location - data source name)
    `QueryDefinition.Target` | `getTarget()` Returns target of this query definition
    `void` | `setExpression(String expression)` Sets expression used to collect/fetch data as part of the query
    `void` | `setName(String name)` Sets unique name for this query definition
    `void` | `setSource(String source)` Sets source location of this query Depends on exact type of the query definition (e.g. data base location - data source name)

- - ### Method Detail

    - #### getName

          String getName()

      Return unique name of this query
      Returns:

    - #### setName

          void setName(String name)

      Sets unique name for this query definition
      Parameters:
        `name` -

    - #### getSource

          String getSource()

      Returns source location of this query Depends on exact type of the query definition (e.g. data base location - data source name)
      Returns:

    - #### setSource

          void setSource(String source)

      Sets source location of this query Depends on exact type of the query definition (e.g. data base location - data source name)
      Parameters:
        `source` -

    - #### getExpression

          String getExpression()

      Returns expression used to collect/fetch data as part of the query
      Returns:

    - #### setExpression

          void setExpression(String expression)

      Sets expression used to collect/fetch data as part of the query
      Parameters:
        `expression` -

    - #### getTarget

          QueryDefinition.Target getTarget()

      Returns target of this query definition
      Returns:

Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.