Enum Class ListGridFetchType
- All Implemented Interfaces:
Serializable
,Comparable<ListGridFetchType>
,Constable
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ListGridFetchType
Returns the enum constant of this class with the specified name.static ListGridFetchType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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 parameterJBStrapParamType.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
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
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
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 nameNullPointerException
- if the argument is null
-
getFetchTypeName
- Returns:
- JavaScript name for fetch type.
-