public enum SQLPagingStrategy extends java.lang.Enum<SQLPagingStrategy> implements ValueEnum
Enum Constant and Description |
---|
DROPATSERVER
Implement the paging behavior by fetching the entire resultset from the database and dropping any unnecessary rows on
the server before returning the data to the client.
|
JDBCSCROLL
Implement the paging behavior by use of the
absolute() method of the JDBC ResultSet . |
NONE
No paging behavior: we always return the entire resultset to the client.
|
SQLLIMIT
Specify the paging directly in the SQL query we generate.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static SQLPagingStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SQLPagingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SQLPagingStrategy SQLLIMIT
customSQL
clause, because
it depends upon being able to determine the size of the whole dataset without actually retrieving the whole dataset.
Ordinary operations do this by means of an automatically-generated "row count query", but we cannot generate such a
query for a customSQL
operation.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "sqlLimit".
public static final SQLPagingStrategy JDBCSCROLL
absolute()
method of the JDBC ResultSet
.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "jdbcScroll".
public static final SQLPagingStrategy DROPATSERVER
absolute()
is called, for example)
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "dropAtServer".
public static final SQLPagingStrategy NONE
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "none".
public static SQLPagingStrategy[] values()
for (SQLPagingStrategy c : SQLPagingStrategy.values()) System.out.println(c);
public static SQLPagingStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null