Enum Class ListGridFetchType

java.lang.Object
java.lang.Enum<ListGridFetchType>
com.jbstrap.ui.components.listgrid.enums.ListGridFetchType
All Implemented Interfaces:
Serializable, Comparable<ListGridFetchType>, Constable

public enum ListGridFetchType extends Enum<ListGridFetchType>
List grid data fetch types.
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • LAZY

      public static final ListGridFetchType LAZY

      Lazy fetch

      This is the default data fetch for the ListGrid. The lazy fetch type does not fetch all records from the list grid’s specified DataDescriptor, but only a part of it. The number of concurrent records to be fetched is set using the JBStrap parameter JBStrapParamType.PAGE_SIZE. The default value for this parameter is 50 records. If the user scrolls down to the bottom of the grid, the next page is automatically fetched from the database and appends it to the previous one, displaying two pages. This way of working ensures a low level of data transfer between the server and the client computer. It accelerates data retrieval and visualization, thereby making the user wait less to see the data.

    • FULL

      public static final ListGridFetchType FULL

      Fetch all data

      This solution fetches all data from the database and displays it on the interface. It is only advisable to use this solution if you expect only a small amount of data is to be displayed. If the DataDescriptor contains a large amount of data, this causes a long waiting time for the user to fetch/visualize the data. This is a possible performance problem for the user.

  • Method Details

    • values

      public static ListGridFetchType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ListGridFetchType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFetchTypeName

      public String getFetchTypeName()
      Returns:
      JavaScript name for fetch type.