public class SelectMode extends BaseMode implements java.io.Serializable
Modifier | Constructor and Description |
---|---|
protected |
SelectMode()
Only used by DataListTest
|
Modifier and Type | Method and Description |
---|---|
void |
addElaborator(CachedStatement q)
Adds an elaborator query.
|
void |
elaborate(java.util.List resultList,
java.util.Map<java.lang.String,?> parameters)
Elaborates a list by calling the elaboration queries with the given
parameters.
|
DataResult |
execute()
Executes the query with no parameters.
|
DataResult |
execute(java.util.List<?> inClause)
Executes the query with an IN clause.
|
DataResult |
execute(java.util.Map<java.lang.String,?> parameters)
Executes the query using the given parameters.
|
DataResult |
execute(java.util.Map<java.lang.String,?> parameters,
java.util.List<?> inClause)
Executes the query with the given parameters an an IN clause.
|
java.lang.String |
getClassString()
get the class
|
java.util.List<CachedStatement> |
getElaborators()
Returns the list of elaborator queries.
|
int |
getMaxRows()
Returns maximum number of rows to be returned by this query.
|
void |
setMaxRows(int max)
The maximum number of rows to be returned by the query.
|
java.lang.String |
toString() |
public java.lang.String getClassString()
public void addElaborator(CachedStatement q)
q
- Elaborator query to execute.public java.util.List<CachedStatement> getElaborators()
public DataResult execute(java.util.Map<java.lang.String,?> parameters)
parameters
- Query parameters.public DataResult execute(java.util.List<?> inClause)
inClause
- values to be included in the IN clause.public DataResult execute()
public DataResult execute(java.util.Map<java.lang.String,?> parameters, java.util.List<?> inClause)
parameters
- named parameters for the Query.inClause
- values to be included in the IN clause.public void elaborate(java.util.List resultList, java.util.Map<java.lang.String,?> parameters)
resultList
- The resultList that has items from the driving query
results.parameters
- named query parameters for elaborators.public void setMaxRows(int max)
max
- maximum number of rows to be returned, zero (0) is unlimited.public int getMaxRows()