Class ResultSetCursor.FetchList<T>

java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.ArrayList<T>
org.tentackle.persist.ResultSetCursor.FetchList<T>
Type Parameters:
T - the element type
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess, SequencedCollection<T>
Enclosing class:
ResultSetCursor<T extends PersistentDomainObject<T>>

public static class ResultSetCursor.FetchList<T> extends ArrayList<T>
A list of fetched PDOs.
Adds a closed flag to save a round trip in remote sessions.
Author:
harald
See Also:
  • Constructor Details

    • FetchList

      public FetchList()
      Creates an empty non-closed fetch list.
  • Method Details

    • isClosed

      public boolean isClosed()
      Returns whether the list is closed.
      A closed list is the last block of the cursor, and the cursor has been closed.
      Returns:
      true if this is the last fetch
    • setClosed

      public void setClosed(boolean closed)
      Sets the list to be closed.
      Parameters:
      closed - true if this is the last fetch