org.kie.internal.task.api

## Interface TaskPersistenceContext

-     public interface TaskPersistenceContext

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.kie.api.task.model.Attachment` | `addAttachmentToTask(org.kie.api.task.model.Attachment attachment, org.kie.api.task.model.Task task)`
    `org.kie.api.task.model.Comment` | `addCommentToTask(org.kie.api.task.model.Comment comment, org.kie.api.task.model.Task task)`
    `HashMap<String,Object>` | `addParametersToMap(Object... parameterValues)`
    `void` | `close()`
    `List<org.kie.api.task.model.TaskSummary>` | `doTaskSummaryCriteriaQuery(String userId, org.kie.api.task.UserGroupCallback userGroupCallback, Object queryWhere)`
    `int` | `executeUpdate(String queryName, Map<String,Object> params)`
    `int` | `executeUpdateString(String updateString)`
    `<T> T` | `find(Class<T> entityClass, Object primaryKey)`
    `org.kie.api.task.model.Attachment` | `findAttachment(Long attachmentId)`
    `org.kie.api.task.model.Comment` | `findComment(Long commentId)`
    `org.kie.api.task.model.Content` | `findContent(Long contentId)`
    `Deadline` | `findDeadline(Long deadlineId)`
    `org.kie.api.task.model.Email` | `findEmail(String emailId)`
    `org.kie.api.task.model.Group` | `findGroup(String groupId)`
    `org.kie.api.task.model.OrganizationalEntity` | `findOrgEntity(String orgEntityId)`
    `org.kie.api.task.model.Task` | `findTask(Long taskId)`
    `Long` | `findTaskIdByContentId(Long contentId)`
    `org.kie.api.task.model.User` | `findUser(String userId)`
    `boolean` | `isOpen()`
    `void` | `joinTransaction()`
    `<T> T` | `merge(T entity)`
    `<T> T` | `persist(T object)`
    `org.kie.api.task.model.Attachment` | `persistAttachment(org.kie.api.task.model.Attachment attachment)`
    `org.kie.api.task.model.Comment` | `persistComment(org.kie.api.task.model.Comment comment)`
    `org.kie.api.task.model.Content` | `persistContent(org.kie.api.task.model.Content content)`
    `Deadline` | `persistDeadline(Deadline deadline)`
    `org.kie.api.task.model.Email` | `persistEmail(org.kie.api.task.model.Email email)`
    `org.kie.api.task.model.Group` | `persistGroup(org.kie.api.task.model.Group group)`
    `org.kie.api.task.model.OrganizationalEntity` | `persistOrgEntity(org.kie.api.task.model.OrganizationalEntity orgEntity)`
    `org.kie.api.task.model.Task` | `persistTask(org.kie.api.task.model.Task task)`
    `org.kie.api.task.model.User` | `persistUser(org.kie.api.task.model.User user)`
    `<T> T` | `queryAndLockStringWithParametersInTransaction(String queryName, Map<String,Object> params, boolean singleResult, Class<T> clazz)`
    `<T> T` | `queryAndLockWithParametersInTransaction(String queryName, Map<String,Object> params, boolean singleResult, Class<T> clazz)`
    `<T> T` | `queryInTransaction(String queryName, Class<T> clazz)`
    `<T> T` | `queryStringInTransaction(String queryString, Class<T> clazz)`
    `<T> T` | `queryStringWithParametersInTransaction(String queryString, boolean singleResult, Map<String,Object> params, Class<T> clazz)`
    `<T> T` | `queryStringWithParametersInTransaction(String queryString, Map<String,Object> params, Class<T> clazz)`
    `<T> T` | `queryWithParametersInTransaction(String queryName, boolean singleResult, Map<String,Object> params, Class<T> clazz)`
    `<T> T` | `queryWithParametersInTransaction(String queryName, Map<String,Object> params, Class<T> clazz)`
    `<T> T` | `remove(T entity)`
    `org.kie.api.task.model.Attachment` | `removeAttachment(org.kie.api.task.model.Attachment attachment)`
    `org.kie.api.task.model.Attachment` | `removeAttachmentFromTask(org.kie.api.task.model.Task task, long attachmentId)`
    `org.kie.api.task.model.Comment` | `removeComment(org.kie.api.task.model.Comment comment)`
    `org.kie.api.task.model.Comment` | `removeCommentFromTask(org.kie.api.task.model.Comment comment, org.kie.api.task.model.Task task)`
    `org.kie.api.task.model.Content` | `removeContent(org.kie.api.task.model.Content content)`
    `Deadline` | `removeDeadline(Deadline deadline)`
    `org.kie.api.task.model.Email` | `removeEmail(org.kie.api.task.model.Email email)`
    `org.kie.api.task.model.Group` | `removeGroup(org.kie.api.task.model.Group group)`
    `org.kie.api.task.model.OrganizationalEntity` | `removeOrgEntity(org.kie.api.task.model.OrganizationalEntity orgEntity)`
    `org.kie.api.task.model.Task` | `removeTask(org.kie.api.task.model.Task task)`
    `org.kie.api.task.model.User` | `removeUser(org.kie.api.task.model.User user)`
    `org.kie.api.task.model.Task` | `setDocumentToTask(org.kie.api.task.model.Content content, ContentData contentData, org.kie.api.task.model.Task task)`
    `org.kie.api.task.model.Task` | `setFaultToTask(org.kie.api.task.model.Content content, FaultData faultData, org.kie.api.task.model.Task task)`
    `org.kie.api.task.model.Task` | `setOutputToTask(org.kie.api.task.model.Content content, ContentData contentData, org.kie.api.task.model.Task task)`
    `org.kie.api.task.model.Attachment` | `updateAttachment(org.kie.api.task.model.Attachment attachment)`
    `org.kie.api.task.model.Comment` | `updateComment(org.kie.api.task.model.Comment comment)`
    `org.kie.api.task.model.Content` | `updateContent(org.kie.api.task.model.Content content)`
    `Deadline` | `updateDeadline(Deadline deadline)`
    `org.kie.api.task.model.Email` | `updateEmail(org.kie.api.task.model.Email email)`
    `org.kie.api.task.model.Group` | `updateGroup(org.kie.api.task.model.Group group)`
    `org.kie.api.task.model.OrganizationalEntity` | `updateOrgEntity(org.kie.api.task.model.OrganizationalEntity orgEntity)`
    `org.kie.api.task.model.Task` | `updateTask(org.kie.api.task.model.Task task)`
    `org.kie.api.task.model.User` | `updateUser(org.kie.api.task.model.User user)`

- - ### Method Detail

    - #### findTask

          org.kie.api.task.model.Task findTask(Long taskId)

    - #### persistTask

          org.kie.api.task.model.Task persistTask(org.kie.api.task.model.Task task)

    - #### updateTask

          org.kie.api.task.model.Task updateTask(org.kie.api.task.model.Task task)

    - #### removeTask

          org.kie.api.task.model.Task removeTask(org.kie.api.task.model.Task task)

    - #### findGroup

          org.kie.api.task.model.Group findGroup(String groupId)

    - #### persistGroup

          org.kie.api.task.model.Group persistGroup(org.kie.api.task.model.Group group)

    - #### updateGroup

          org.kie.api.task.model.Group updateGroup(org.kie.api.task.model.Group group)

    - #### removeGroup

          org.kie.api.task.model.Group removeGroup(org.kie.api.task.model.Group group)

    - #### findUser

          org.kie.api.task.model.User findUser(String userId)

    - #### persistUser

          org.kie.api.task.model.User persistUser(org.kie.api.task.model.User user)

    - #### updateUser

          org.kie.api.task.model.User updateUser(org.kie.api.task.model.User user)

    - #### removeUser

          org.kie.api.task.model.User removeUser(org.kie.api.task.model.User user)

    - #### findOrgEntity

          org.kie.api.task.model.OrganizationalEntity findOrgEntity(String orgEntityId)

    - #### persistOrgEntity

          org.kie.api.task.model.OrganizationalEntity persistOrgEntity(org.kie.api.task.model.OrganizationalEntity orgEntity)

    - #### updateOrgEntity

          org.kie.api.task.model.OrganizationalEntity updateOrgEntity(org.kie.api.task.model.OrganizationalEntity orgEntity)

    - #### removeOrgEntity

          org.kie.api.task.model.OrganizationalEntity removeOrgEntity(org.kie.api.task.model.OrganizationalEntity orgEntity)

    - #### findContent

          org.kie.api.task.model.Content findContent(Long contentId)

    - #### persistContent

          org.kie.api.task.model.Content persistContent(org.kie.api.task.model.Content content)

    - #### updateContent

          org.kie.api.task.model.Content updateContent(org.kie.api.task.model.Content content)

    - #### removeContent

          org.kie.api.task.model.Content removeContent(org.kie.api.task.model.Content content)

    - #### findTaskIdByContentId

          Long findTaskIdByContentId(Long contentId)

    - #### findAttachment

          org.kie.api.task.model.Attachment findAttachment(Long attachmentId)

    - #### persistAttachment

          org.kie.api.task.model.Attachment persistAttachment(org.kie.api.task.model.Attachment attachment)

    - #### updateAttachment

          org.kie.api.task.model.Attachment updateAttachment(org.kie.api.task.model.Attachment attachment)

    - #### removeAttachment

          org.kie.api.task.model.Attachment removeAttachment(org.kie.api.task.model.Attachment attachment)

    - #### removeAttachmentFromTask

          org.kie.api.task.model.Attachment removeAttachmentFromTask(org.kie.api.task.model.Task task,
                                                                     long attachmentId)

    - #### addAttachmentToTask

          org.kie.api.task.model.Attachment addAttachmentToTask(org.kie.api.task.model.Attachment attachment,
                                                                org.kie.api.task.model.Task task)

    - #### findComment

          org.kie.api.task.model.Comment findComment(Long commentId)

    - #### persistComment

          org.kie.api.task.model.Comment persistComment(org.kie.api.task.model.Comment comment)

    - #### updateComment

          org.kie.api.task.model.Comment updateComment(org.kie.api.task.model.Comment comment)

    - #### removeComment

          org.kie.api.task.model.Comment removeComment(org.kie.api.task.model.Comment comment)

    - #### removeCommentFromTask

          org.kie.api.task.model.Comment removeCommentFromTask(org.kie.api.task.model.Comment comment,
                                                               org.kie.api.task.model.Task task)

    - #### addCommentToTask

          org.kie.api.task.model.Comment addCommentToTask(org.kie.api.task.model.Comment comment,
                                                          org.kie.api.task.model.Task task)

    - #### findDeadline

          Deadline findDeadline(Long deadlineId)

    - #### persistDeadline

          Deadline persistDeadline(Deadline deadline)

    - #### updateDeadline

          Deadline updateDeadline(Deadline deadline)

    - #### removeDeadline

          Deadline removeDeadline(Deadline deadline)

    - #### setDocumentToTask

          org.kie.api.task.model.Task setDocumentToTask(org.kie.api.task.model.Content content,
                                                        ContentData contentData,
                                                        org.kie.api.task.model.Task task)

    - #### setFaultToTask

          org.kie.api.task.model.Task setFaultToTask(org.kie.api.task.model.Content content,
                                                     FaultData faultData,
                                                     org.kie.api.task.model.Task task)

    - #### setOutputToTask

          org.kie.api.task.model.Task setOutputToTask(org.kie.api.task.model.Content content,
                                                      ContentData contentData,
                                                      org.kie.api.task.model.Task task)

    - #### queryWithParametersInTransaction

          <T> T queryWithParametersInTransaction(String queryName,
                                                 Map<String,Object> params,
                                                 Class<T> clazz)

    - #### queryWithParametersInTransaction

          <T> T queryWithParametersInTransaction(String queryName,
                                                 boolean singleResult,
                                                 Map<String,Object> params,
                                                 Class<T> clazz)

    - #### queryAndLockWithParametersInTransaction

          <T> T queryAndLockWithParametersInTransaction(String queryName,
                                                        Map<String,Object> params,
                                                        boolean singleResult,
                                                        Class<T> clazz)

    - #### queryInTransaction

          <T> T queryInTransaction(String queryName,
                                   Class<T> clazz)

    - #### queryStringInTransaction

          <T> T queryStringInTransaction(String queryString,
                                         Class<T> clazz)

    - #### queryStringWithParametersInTransaction

          <T> T queryStringWithParametersInTransaction(String queryString,
                                                       boolean singleResult,
                                                       Map<String,Object> params,
                                                       Class<T> clazz)

    - #### queryStringWithParametersInTransaction

          <T> T queryStringWithParametersInTransaction(String queryString,
                                                       Map<String,Object> params,
                                                       Class<T> clazz)

    - #### queryAndLockStringWithParametersInTransaction

          <T> T queryAndLockStringWithParametersInTransaction(String queryName,
                                                              Map<String,Object> params,
                                                              boolean singleResult,
                                                              Class<T> clazz)

    - #### executeUpdateString

          int executeUpdateString(String updateString)

    - #### executeUpdate

          int executeUpdate(String queryName,
                            Map<String,Object> params)

    - #### addParametersToMap

          HashMap<String,Object> addParametersToMap(Object... parameterValues)

    - #### persist

          <T> T persist(T object)

    - #### find

          <T> T find(Class<T> entityClass,
                     Object primaryKey)

    - #### remove

          <T> T remove(T entity)

    - #### merge

          <T> T merge(T entity)

    - #### isOpen

          boolean isOpen()

    - #### joinTransaction

          void joinTransaction()

    - #### close

          void close()

    - #### doTaskSummaryCriteriaQuery

          List<org.kie.api.task.model.TaskSummary> doTaskSummaryCriteriaQuery(String userId,
                                                                              org.kie.api.task.UserGroupCallback userGroupCallback,
                                                                              Object queryWhere)

    - #### findEmail

          org.kie.api.task.model.Email findEmail(String emailId)

    - #### persistEmail

          org.kie.api.task.model.Email persistEmail(org.kie.api.task.model.Email email)

    - #### updateEmail

          org.kie.api.task.model.Email updateEmail(org.kie.api.task.model.Email email)

    - #### removeEmail

          org.kie.api.task.model.Email removeEmail(org.kie.api.task.model.Email email)

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