Enum RowCountStatus
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<RowCountStatus>
,Constable
ResultSet.getRowCount()
row count for the data set. This is a feature associated with progressive loading of data
. When progressive loading is
active, the length
may not indicate the true size of the data set.
In this case a different total row count may be maintained by the ResultSet data object and retrieved via ResultSet.getRowCount()
. This status code indicates whether this row
count is an exact value or not.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe current row count is an approximation.The size of the data set is known and the current row count is accurate.This value indicates that the ResultSet is waiting for an activerow count fetch
to complete.The current row count is a maximum - there are no more than this many records in the data set.The current row count is a minimum - there are at least this many records in the data set.The data object knows the total number of records in the data set lies within a particular range.The current row count is unknown. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static RowCountStatus
Returns the enum constant of this type with the specified name.static RowCountStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EXACT
The size of the data set is known and the current row count is accurate. This always will be the case ifprogressiveLoading
is not active. If progressiveLoading is active, we may have an accurate row count in the following scenarios:ResultSet.setFullLength()
was explicitly invoked to tell the resultSet its total length.
In this caseResultSet.getLength()
will return the same value asResultSet.getRowCount()
- The
user has scrolled all the way to the true end of the progressively loaded data set such that the length is now
known.
In this caseResultSet.getLength()
will return the same value asResultSet.getRowCount()
- A successful row count
fetch was performed via
ResultSet.fetchRowCount()
.
In this caseResultSet.getLength()
will return the same value asResultSet.getRowCount()
ifResultSet.applyRowCountToLength
is true, otherwise the values may differ. - The dataSource fetch response to a request for rows within the resultSet included a
DSResponse.estimatedTotalRows
value with an exact value
In this caseResultSet.getLength()
will return the same value asResultSet.getRowCount()
ifResultSet.applyRowCountToLength
is true, otherwise the values may differ.
If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "exact". -
UNKNOWN
The current row count is unknown. This value indicatesResultSet.lengthIsKnown()
returns false.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "unknown". -
LOADING
This value indicates that the ResultSet is waiting for an activerow count fetch
to complete.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "loading". -
MINIMUM
The current row count is a minimum - there are at least this many records in the data set. Note that whenprogressiveLoading
is active, this will be the status if no explicitDSResponse.estimatedTotalRows
was available, soDSResponse.totalRows
is a minimum, or ifDSResponse.estimatedTotalRows
contained a value in the format"[rowCount]+"
.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "minimum". -
APPROXIMATE
The current row count is an approximation. This will be the status ifprogressiveLoading
is active and a fetch request contained an explicitDSResponse.estimatedTotalRows
in the format"~[rowCount]"
.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "approximate". -
MAXIMUM
The current row count is a maximum - there are no more than this many records in the data set. This will be the status ifprogressiveLoading
is active and a fetch request contained an explicitDSResponse.estimatedTotalRows
in the format"-[rowCount]"
.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "maximum". -
RANGE
The data object knows the total number of records in the data set lies within a particular range. In this caseListGrid.getRowCountRange()
may be used to retrieve the upper and lower bound of this range, andListGrid.getRowCount()
will return the lower bound. This will be the status ifprogressiveLoading
is active and a fetch request contained an explicitDSResponse.estimatedTotalRows
in the format"[minRowCount]-[maxRowCount]"
.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "range".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-