@StableMinor(version="12.3", sinceVersion="4.0") public interface IQueryStatement
Modifier and Type | Method and Description |
---|---|
int |
executeUpdate()
Execute the update or delete query statement.
|
Object |
getSingleResult()
Return a single instance that matches
the query, or null if the query returns no results.
|
int |
getTotalRowCount()
Returns the total number of rows (ignoring
setMaxResults(int) ) available. |
List |
list()
Return the query results as a List.
|
IQueryStatement |
setFirstResult(int firstResult)
Set the first row to retrieve.
|
IQueryStatement |
setMaxResults(int maxResults)
Set the maximum number of rows to retrieve.
|
int executeUpdate() throws PortalException
PortalException
List list() throws PortalException
PortalException
Object getSingleResult() throws PortalException
PortalException
- if there is more than one matching resultIQueryStatement setMaxResults(int maxResults)
maxResults
- the maximum number of rowsIQueryStatement setFirstResult(int firstResult)
firstResult
- a row number, numbered from 0int getTotalRowCount() throws PortalException
setMaxResults(int)
) available.
For better performance, if the results will be accessed by the list()
method,
call the list()
method first.PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.