Package wt.query
Class PageableQuerySpec
java.lang.Object
wt.query.PageableQuerySpec
- All Implemented Interfaces:
Externalizable,Serializable,StatementSpec
- Direct Known Subclasses:
BasicPageableQuerySpec,PagingSessionSpec
This abstract class provides common APIs and functionality for queries
that support paging. The primary statement is the source of the results
that can be paged. The offset and range values specify the page offset
and size.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from interface wt.pds.StatementSpec
ADVANCED_QUERY_ENABLED, USE_BIND -
Method Summary
Modifier and TypeMethodDescriptionintGets the value of the attribute: offset; Paging offset into the original result set.intgetRange()Gets the value of the attribute: range; Paging range that specifies the number of requested elements.booleanGets the value of the attribute: advancedQueryEnabled; Indicates if advanced query capabilities are enabled.booleanGets the value of the attribute: useBind; Indicates if bind parameters should be used for this statement.voidsetAdvancedQueryEnabled(boolean a_AdvancedQueryEnabled) Sets the value of the attribute: advancedQueryEnabled; Indicates if advanced query capabilities are enabled.voidSet the client locale.voidsetOffset(int a_Offset) Sets the value of the attribute: offset; Paging offset into the original result set.voidsetRange(int a_Range) Sets the value of the attribute: range; Paging range that specifies the number of requested elements.voidsetUseBind(boolean a_UseBind) Sets the value of the attribute: useBind; Indicates if bind parameters should be used for this statement.
-
Method Details
-
getOffset
public int getOffset()Gets the value of the attribute: offset; Paging offset into the original result set.
Supported API: true- Returns:
- int
-
setOffset
Sets the value of the attribute: offset; Paging offset into the original result set.
Supported API: true- Parameters:
a_Offset-- Throws:
WTPropertyVetoException
-
getRange
public int getRange()Gets the value of the attribute: range; Paging range that specifies the number of requested elements. If the range is less than or equal to zero, then all elements are returned.
Supported API: true- Returns:
- int
-
setRange
Sets the value of the attribute: range; Paging range that specifies the number of requested elements. If the range is less than or equal to zero, then all elements are returned.
Supported API: true- Parameters:
a_Range-- Throws:
WTPropertyVetoException
-
isAdvancedQueryEnabled
public boolean isAdvancedQueryEnabled()Gets the value of the attribute: advancedQueryEnabled; Indicates if advanced query capabilities are enabled. By design, this attribute is transient and its value is not passed between Java Virtual Machine (JVM) processes. The value should be set within the same JVM process that executes the statement.
Supported API: true- Specified by:
isAdvancedQueryEnabledin interfaceStatementSpec- Returns:
- boolean
-
setAdvancedQueryEnabled
public void setAdvancedQueryEnabled(boolean a_AdvancedQueryEnabled) Sets the value of the attribute: advancedQueryEnabled; Indicates if advanced query capabilities are enabled. By design, this attribute is transient and its value is not passed between Java Virtual Machine (JVM) processes. The value should be set within the same JVM process that executes the statement.
Supported API: true- Specified by:
setAdvancedQueryEnabledin interfaceStatementSpec- Parameters:
a_AdvancedQueryEnabled-
-
setLocale
Set the client locale.
Supported API: true- Specified by:
setLocalein interfaceStatementSpec- Parameters:
a_locale-- Throws:
WTException
-
isUseBind
public boolean isUseBind()Gets the value of the attribute: useBind; Indicates if bind parameters should be used for this statement.
Supported API: true- Specified by:
isUseBindin interfaceStatementSpec- Returns:
- boolean
-
setUseBind
Sets the value of the attribute: useBind; Indicates if bind parameters should be used for this statement.
Supported API: true- Specified by:
setUseBindin interfaceStatementSpec- Parameters:
a_UseBind-- Throws:
WTPropertyVetoException
-