|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SelectExecutor
Interface for configuring and executing a SQL select.
Method Summary | |
---|---|
Result |
execute(JDBCStore store,
JDBCFetchConfiguration fetch)
Execute this select in the context of the given store manager. |
Result |
execute(JDBCStore store,
JDBCFetchConfiguration fetch,
int lockLevel)
Execute this select in the context of the given store manager. |
Result |
execute(JDBCStore store,
JDBCFetchConfiguration fetch,
int lockLevel,
List params)
Execute this select in the context of the given store manager. |
Result |
execute(JDBCStore store,
JDBCFetchConfiguration fetch,
List params)
Execute this select in the context of the given store manager. |
boolean |
getAutoDistinct()
Whether to automatically make results distinct when relational joins would otherwise introduce duplicates. |
JDBCConfiguration |
getConfiguration()
Return the select configuration. |
int |
getCount(JDBCStore store)
Return the number of instances matching this select. |
int |
getExpectedResultCount()
The expected result count for the query. |
int |
getJoinSyntax()
The join syntax for this select, as one of the syntax constants from JoinSyntaxes . |
boolean |
isDistinct()
Whether this is a SELECT DISTINCT / UNION ALL. |
boolean |
isLRS()
Whether the result of this select should be treated as a large result set. |
void |
setAutoDistinct(boolean distinct)
Whether to automatically make results distinct when relational joins would otherwise introduce duplicates. |
void |
setDistinct(boolean distinct)
Whether this is a SELECT DISTINCT / UNION ALL. |
void |
setExpectedResultCount(int expectedResultCount,
boolean force)
The expected result count for the query. |
void |
setJoinSyntax(int joinSyntax)
The join syntax for this select, as one of the syntax constants from JoinSyntaxes . |
void |
setLRS(boolean lrs)
Whether the result of this select should be treated as a large result set. |
boolean |
supportsLocking()
Whether this select can be executed for update. |
boolean |
supportsRandomAccess(boolean forUpdate)
Return whether this select can support a random access result set type. |
SQLBuffer |
toSelect(boolean forUpdate,
JDBCFetchConfiguration fetch)
Return this select as a SQL statement formatted for the current dictionary. |
SQLBuffer |
toSelectCount()
Return this select as a COUNT SQL statement formatted for the current dictionary. |
Method Detail |
---|
JDBCConfiguration getConfiguration()
SQLBuffer toSelect(boolean forUpdate, JDBCFetchConfiguration fetch)
SQLBuffer toSelectCount()
boolean getAutoDistinct()
void setAutoDistinct(boolean distinct)
boolean isDistinct()
void setDistinct(boolean distinct)
boolean isLRS()
void setLRS(boolean lrs)
int getExpectedResultCount()
void setExpectedResultCount(int expectedResultCount, boolean force)
force
- if false, the count will be discarded if this select has
any to-many eager joins that would throw off the result countint getJoinSyntax()
JoinSyntaxes
.
void setJoinSyntax(int joinSyntax)
JoinSyntaxes
.
boolean supportsRandomAccess(boolean forUpdate)
boolean supportsLocking()
int getCount(JDBCStore store) throws SQLException
SQLException
Result execute(JDBCStore store, JDBCFetchConfiguration fetch) throws SQLException
SQLException
Result execute(JDBCStore store, JDBCFetchConfiguration fetch, List params) throws SQLException
SQLException
Result execute(JDBCStore store, JDBCFetchConfiguration fetch, int lockLevel, List params) throws SQLException
SQLException
Result execute(JDBCStore store, JDBCFetchConfiguration fetch, int lockLevel) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |