Class AbstractQuery<T extends Query<?,​?>,​U>

    • Field Detail

      • databaseType

        protected java.lang.String databaseType
      • orderBy

        protected java.lang.String orderBy
      • resultType

        protected org.activiti.engine.impl.AbstractQuery.ResultType resultType
    • Constructor Detail

      • AbstractQuery

        protected AbstractQuery()
      • AbstractQuery

        protected AbstractQuery​(CommandExecutor commandExecutor)
      • AbstractQuery

        public AbstractQuery​(CommandContext commandContext)
    • Method Detail

      • asc

        public T asc()
        Description copied from interface: Query
        Order the results ascending on the given property as defined in this class (needs to come after a call to one of the orderByXxxx methods).
        Specified by:
        asc in interface Query<T extends Query<?,​?>,​U>
      • desc

        public T desc()
        Description copied from interface: Query
        Order the results descending on the given property as defined in this class (needs to come after a call to one of the orderByXxxx methods).
        Specified by:
        desc in interface Query<T extends Query<?,​?>,​U>
      • direction

        public T direction​(Direction direction)
      • checkQueryOk

        protected void checkQueryOk()
      • singleResult

        public U singleResult()
        Description copied from interface: Query
        Executes the query and returns the resulting entity or null if no entity matches the query criteria.
        Specified by:
        singleResult in interface Query<T extends Query<?,​?>,​U>
      • list

        public java.util.List<U> list()
        Description copied from interface: Query
        Executes the query and get a list of entities as the result.
        Specified by:
        list in interface Query<T extends Query<?,​?>,​U>
      • listPage

        public java.util.List<U> listPage​(int firstResult,
                                          int maxResults)
        Description copied from interface: Query
        Executes the query and get a list of entities as the result.
        Specified by:
        listPage in interface Query<T extends Query<?,​?>,​U>
      • count

        public long count()
        Description copied from interface: Query
        Executes the query and returns the number of results
        Specified by:
        count in interface Query<T extends Query<?,​?>,​U>
      • executeCount

        public abstract long executeCount​(CommandContext commandContext)
      • executeList

        public abstract java.util.List<U> executeList​(CommandContext commandContext,
                                                      Page page)
        Executes the actual query to retrieve the list of results.
        Parameters:
        page - used if the results must be paged. If null, no paging will be applied.
      • executeSingleResult

        public U executeSingleResult​(CommandContext commandContext)