Class JpaIteratorSource<R,T>

java.lang.Object
org.duracloud.common.collection.jpa.JpaIteratorSource<R,T>
Type Parameters:
R -
T -
All Implemented Interfaces:
IteratorSource<T>

public abstract class JpaIteratorSource<R,T> extends Object implements IteratorSource<T>
Author:
Daniel Bernstein Date: Sep 3, 2014
  • Constructor Details

    • JpaIteratorSource

      public JpaIteratorSource(R repo, int maxResults)
    • JpaIteratorSource

      public JpaIteratorSource(R repo)
  • Method Details

    • getNext

      public Collection<T> getNext()
      Specified by:
      getNext in interface IteratorSource<R>
    • getNextPage

      protected abstract org.springframework.data.domain.Page<T> getNextPage(org.springframework.data.domain.Pageable pageable, R repo)
      Specific Jpa call goes here.
      Parameters:
      pageable -
      Returns:
    • getMaxResults

      public int getMaxResults()
    • setMaxResults

      public void setMaxResults(int maxResults)