Package com.smartgwt.client.types
Enum SQLPagingStrategy
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<SQLPagingStrategy>
,Constable
The technique Smart GWT Server's SQL DataSource should use to select a "page" of data from a table.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionImplement 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.Implement the paging behavior by use of theabsolute()
method of the JDBCResultSet
.No paging behavior: we always return the entire resultset to the client.Specify the paging directly in the SQL query we generate. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static SQLPagingStrategy
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.
-
Enum Constant Details
-
SQLLIMIT
Specify the paging directly in the SQL query we generate. The way this is done varies considerably from database to database: with some it is a straightforward built-in facility while others require arcane tricks or simply don't support the idea. This is the most efficient method, where available. Note that this strategy is not supported for operations that make use of acustomSQL
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 acustomSQL
operation.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "sqlLimit". -
JDBCSCROLL
Implement the paging behavior by use of theabsolute()
method of the JDBCResultSet
.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "jdbcScroll". -
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. This approach is extremely inefficient, but also extremely straightforward; it is intended as a fallback option, for situations where the more sophisticated approaches cause problems (a JDBC driver that throws vague exceptions whenabsolute()
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". -
NONE
No paging behavior: we always return the entire resultset to the client.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "none".
-
-
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
-