org.jbpm.kie.services.impl.query.mapper

## Class TaskSummaryQueryMapper

- java.lang.Object
- - org.jbpm.kie.services.impl.query.mapper.AbstractQueryMapper<org.kie.api.task.model.TaskSummary>
  - - org.jbpm.kie.services.impl.query.mapper.TaskSummaryQueryMapper

- All Implemented Interfaces:
    Serializable, QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>

      public class TaskSummaryQueryMapper
      extends AbstractQueryMapper<org.kie.api.task.model.TaskSummary>
      implements QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>

  Dedicated mapper that transform data set into List of TaskSummary
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from interface org.jbpm.services.api.query.QueryResultMapper

      `COLUMN_ACTIVATIONTIME, COLUMN_ACTUALOWNER, COLUMN_CORRELATIONKEY, COLUMN_CREATEDBY, COLUMN_CREATEDON, COLUMN_DEPLOYMENTID, COLUMN_DESCRIPTION, COLUMN_DUEDATE, COLUMN_DURATION, COLUMN_END, COLUMN_EXTERNALID, COLUMN_IDENTITY, COLUMN_JOB_BUSINESSKEY, COLUMN_JOB_COMMANDNAME, COLUMN_JOB_ID, COLUMN_JOB_MESSAGE, COLUMN_JOB_STATUS, COLUMN_JOB_TIMESTAMP, COLUMN_NAME, COLUMN_ORGANIZATIONAL_ENTITY, COLUMN_OUTCOME, COLUMN_PARENTID, COLUMN_PARENTPROCESSINSTANCEID, COLUMN_PRIORITY, COLUMN_PROCESSID, COLUMN_PROCESSINSTANCEDESCRIPTION, COLUMN_PROCESSINSTANCEID, COLUMN_PROCESSNAME, COLUMN_PROCESSVERSION, COLUMN_START, COLUMN_STATUS, COLUMN_SUBJECT, COLUMN_TASK_PROCESSID, COLUMN_TASK_PROCESSINSTANCEID, COLUMN_TASK_STATUS, COLUMN_TASK_VAR_NAME, COLUMN_TASK_VAR_TYPE, COLUMN_TASK_VAR_VALUE, COLUMN_TASKID, COLUMN_VAR_NAME, COLUMN_VAR_VALUE, COLUMN_WORKITEMID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TaskSummaryQueryMapper()` Dedicated for ServiceLoader to create instance, use `get()` method instead

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected org.kie.api.task.model.TaskSummary` | `buildInstance(org.dashbuilder.dataset.DataSet dataSetResult, int index)`
    `QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>` | `forColumnMapping(Map<String,String> columnMapping)` Returns new instance of the mapper for given column mapping
    `static TaskSummaryQueryMapper` | `get()`
    `String` | `getName()` Returns unique name of this query result mapper implementation
    `Class<?>` | `getType()` Returns type of the data produced by this mapper.
    `List<org.kie.api.task.model.TaskSummary>` | `map(Object result)` Based on raw data set returns mapped/transformed data.

    - ### Methods inherited from class org.jbpm.kie.services.impl.query.mapper.AbstractQueryMapper

      `getColumnDateValue, getColumnDoubleValue, getColumnIntValue, getColumnLongValue, getColumnStringValue, readVariables`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TaskSummaryQueryMapper

          public TaskSummaryQueryMapper()

      Dedicated for ServiceLoader to create instance, use `get()` method instead

  - ### Method Detail

    - #### get

          public static TaskSummaryQueryMapper get()

    - #### map

          public List<org.kie.api.task.model.TaskSummary> map(Object result)

      Description copied from interface: `QueryResultMapper`
      Based on raw data set returns mapped/transformed data. Usually it will get set of raw data and return list (or collection in general) of custom object like ProcessInstance or UserTaskInstance
      Specified by:
        `map` in interface `QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>`
      Parameters:
        `result` - raw data set in custom format
      Returns:
        mapped result of raw data set

    - #### buildInstance

          protected org.kie.api.task.model.TaskSummary buildInstance(org.dashbuilder.dataset.DataSet dataSetResult,
                                                                     int index)

      Specified by:
        `buildInstance` in class `AbstractQueryMapper<org.kie.api.task.model.TaskSummary>`

    - #### getName

          public String getName()

      Description copied from interface: `QueryResultMapper`
      Returns unique name of this query result mapper implementation
      Specified by:
        `getName` in interface `QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>`
      Returns:

    - #### getType

          public Class<?> getType()

      Description copied from interface: `QueryResultMapper`
      Returns type of the data produced by this mapper. If the type is collection then the returned type should be type of the elements in collection e.g.:
      `List<ProcessInstanceDesc> returned type should be ProcessInstanceDesc.class`
      Specified by:
        `getType` in interface `QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>`
      Returns:

    - #### forColumnMapping

          public QueryResultMapper<List<org.kie.api.task.model.TaskSummary>> forColumnMapping(Map<String,String> columnMapping)

      Description copied from interface: `QueryResultMapper`
      Returns new instance of the mapper for given column mapping
      Specified by:
        `forColumnMapping` in interface `QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>`
      Parameters:
        `columnMapping` - provides column mapping (name to type) that can be shipped to mapper for improved transformation - can be null (accepted types: string, long, integer, date, double)
      Returns:
        new instance of the mapper configured with column mapping

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