|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="5.5", sinceVersion="4.0") public interface IQueryStatement
Instances of this interface represents a statement that can be executed using this interface's method.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |