Class ApiJpaCollectionResultImpl<T>

  • Type Parameters:
    T - type of the data transfer object for the records found.
    All Implemented Interfaces:
    com.totvs.tjf.core.api.jpa.repository.ApiJpaCollectionResult<T>

    public class ApiJpaCollectionResultImpl<T>
    extends Object
    implements com.totvs.tjf.core.api.jpa.repository.ApiJpaCollectionResult<T>
    Standard implementation for the record JPA collection result.
    Author:
    Marcos Paulo dos Santos
    • Method Detail

      • hasNext

        public boolean hasNext()
        Return if the query has more items.
        Specified by:
        hasNext in interface com.totvs.tjf.core.api.jpa.repository.ApiJpaCollectionResult<T>
        Returns:
        true if the query has more items to handle, otherwise, false
      • getItems

        public Collection<T> getItems()
        Return the collection of records found.
        Specified by:
        getItems in interface com.totvs.tjf.core.api.jpa.repository.ApiJpaCollectionResult<T>
        Returns:
        collection of records