Class CursorPagination.Config<TT>

java.lang.Object
com.flowlogix.jeedao.primefaces.CursorPagination.Config<TT>
All Implemented Interfaces:
Serializable
Enclosing interface:
CursorPagination<TT>

public static class CursorPagination.Config<TT> extends Object implements Serializable

Configuration class for cursor pagination, used to create a CursorPagination instance with specified supported fields and options. The following are configuration fields:

  • supportedFields: a list of fields that are supported for cursor pagination, each field consists of a name and a method to extract the comparable value from the entity
  • conditional: a supplier that determines whether cursor pagination should be enabled based on dynamic conditions, default is always true
  • defaultDescendingSort: a flag to indicate if the default sort order for the first supported field should be descending, default is false (ascending)
  • evictCursorCacheBehind: a flag to indicate whether to evict the cursor cache behind the current offset, defined by a window
  • evictCursorCacheAhead: a flag to indicate whether to evict the cursor cache ahead the current offset, defined by a window
  • behindCursorWindowSize: specified how wide the window behind the current offset should be for cursor cache eviction, default is 1000
  • aheadCursorWindowSize: specified how wide the window ahead of the current offset should be for cursor cache eviction, default is 1000
See Also:
  • Constructor Details

    • Config

      public Config()