|
Oracle Application Server TopLink API Reference 10g (9.0.4) B10491-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--oracle.toplink.queryframework.DatabaseQuery
|
+--oracle.toplink.queryframework.ReadQuery
Purpose: Abstract class for all read queries.
Responsibilities:
| Field Summary |
| Fields inherited from class oracle.toplink.queryframework.DatabaseQuery |
CascadeAggregateDelete, CascadeAllParts, CascadeDependentParts, CascadePrivateParts, NoCascading, QUERY_PREPARE |
| Constructor Summary | |
ReadQuery()PUBLIC: Initialize the state of the query | |
| Method Summary | |
void |
cacheQueryResults()PUBLIC: Indicate to the query to cache all query results |
void |
clearQueryResults()PUBLIC: Clears the current cached results, the next execution with read from the database. |
void |
doNotCacheQueryResults()PUBLIC: Indicate to the query to not cache any query results |
int |
getMaxRows()PUBLIC: Return the limit for the maximum number of rows that any ResultSet can contain to the given number. |
boolean |
isReadQuery()PUBLIC: Return if this is a read query. |
void |
setMaxRows(int maxRows)PUBLIC: Used to set the limit for the maximum number of rows that any ResultSet can contain to the given number. |
void |
setShouldCacheQueryResults(boolean shouldCacheQueryResults)PUBLIC: Set if the query should cache the results of the next execution or not. |
boolean |
shouldCacheQueryResults()PUBLIC: Return if the query should cache the results of the next execution or not. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ReadQuery()
| Method Detail |
public void cacheQueryResults()
public void clearQueryResults()
public void doNotCacheQueryResults()
public int getMaxRows()
public boolean isReadQuery()
isReadQuery in class DatabaseQuerypublic void setMaxRows(int maxRows)
public void setShouldCacheQueryResults(boolean shouldCacheQueryResults)
public boolean shouldCacheQueryResults()
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||