Class Select.ExecutableContext<E>

java.lang.Object
com.atlassian.jira.entity.Select.ExecutableContext<E>
All Implemented Interfaces:
SelectQuery<E>
Direct Known Subclasses:
Select.LimitContext, Select.OrderByContext, Select.WhereClauseAwareContext
Enclosing class:
Select

public abstract static class Select.ExecutableContext<E> extends Object implements SelectQuery<E>
Partially constructed query that has enough information supplied to form a complete query.

If no further modifications are needed, use runWith(EntityEngine) or runWith(OfBizDelegator) to specify the execution method, then use one of the return methods from SelectQuery.ExecutionContext to collect the results. When both components are available, EntityEngine should be preferred, but the two mechanisms are functionally equivalent.

  • Field Details

    • queryBuilder

      protected final com.atlassian.jira.entity.Select.QueryBuilder<E> queryBuilder
  • Constructor Details

    • ExecutableContext

      protected ExecutableContext(com.atlassian.jira.entity.Select.QueryBuilder<E> queryBuilder)
  • Method Details

    • runWith

      public final SelectQuery.ExecutionContext<E> runWith(OfBizDelegator ofBizDelegator)
      Specifies the entity engine implementation to use for running the query.
      Specified by:
      runWith in interface SelectQuery<E>
      Parameters:
      ofBizDelegator - the OfBizDelegator to use for running the query
      Returns:
      the fully constructed query, complete with execution context. Use one of the return methods specified by SelectQuery.ExecutionContext to collect the results.
    • runWith

      public final SelectQuery.ExecutionContext<E> runWith(EntityEngine entityEngine)
      Specifies the entity engine implementation to use for running the query.
      Specified by:
      runWith in interface SelectQuery<E>
      Parameters:
      entityEngine - the EntityEngine to use for running the query
      Returns:
      the fully constructed query, complete with execution context. Use one of the return methods specified by SelectQuery.ExecutionContext to collect the results.