Package wt.query

Class PagingSessionSpec

java.lang.Object
wt.query.PageableQuerySpec
wt.query.PagingSessionSpec
All Implemented Interfaces:
Externalizable, Serializable, StatementSpec

public final class PagingSessionSpec extends PageableQuerySpec implements Externalizable
This class can be used to fetch pages from an established paging session.

Supported API: true

Extendable: false
See Also:
  • Constructor Details

    • PagingSessionSpec

      public PagingSessionSpec(long a_sessionId)


      Supported API: true

      Conditional Support: This is supported for sessionId of PagingQueryResult sessionId.

      Example:
                 // queryResult is nothing but PagingQueryResult
                 long sessionId = queryResult.getSessionId();
         
      Parameters:
      a_sessionId - Identifier a persistent paging session
  • Method Details

    • getTotalSize

      public int getTotalSize()
      Gets the value of the attribute: totalSize; Specifies the total number of results that can be paged through.

      Supported API: true
      Returns:
      int
    • getSessionId

      public long getSessionId()
      Gets the value of the attribute: sessionId; Identifies a persistent paging session.

      Supported API: true
      Returns:
      long