|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.redhat.rhn.common.db.datasource.BaseMode
com.redhat.rhn.common.db.datasource.SelectMode
public class SelectMode
A cached set of query/elaborator strings and the parameterMap hash maps.
| Constructor Summary | |
|---|---|
SelectMode()
Constructs a new SelectMode |
|
SelectMode(SelectMode modeIn)
Copy constructor |
|
| Method Summary | |
|---|---|
void |
addElaborator(CachedStatement q)
Adds an elaborator query. |
void |
elaborate(java.util.List resultList,
java.util.Map 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 parameters)
Executes the query with an IN clause. |
DataResult |
execute(java.util.Map parameters)
Executes the query using the given parameters. |
DataResult |
execute(java.util.Map parameters,
java.util.List inClause)
Executes the query with the given parameters an an IN clause. |
DataResult |
execute(java.util.Map parameters,
java.lang.String sortColumn,
java.lang.String order)
Executes the query using the given paramters and sort options. |
java.lang.String |
getClassString()
get the class |
java.util.List |
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()
|
| Methods inherited from class com.redhat.rhn.common.db.datasource.BaseMode |
|---|
getArity, getName, getQuery, setName, setQuery |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelectMode()
public SelectMode(SelectMode modeIn)
modeIn - The mode to copy into new SelectMode object| Method Detail |
|---|
public java.lang.String getClassString()
public void addElaborator(CachedStatement q)
q - Elaborator query to execute.public java.util.List getElaborators()
public DataResult execute(java.util.Map parameters,
java.lang.String sortColumn,
java.lang.String order)
parameters - Query paramters.sortColumn - column used for sorting.order - Sorting order ASC or DESC
public DataResult execute(java.util.Map parameters)
parameters - Query parameters.
public DataResult execute(java.util.List parameters)
parameters - Query parameters.
public DataResult execute()
public DataResult execute(java.util.Map 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 parameters)
resultList - The resultList that has items from the driving
query results.parameters - named query parameters for elaborators.public java.lang.String toString()
toString in class BaseModepublic void setMaxRows(int max)
max - maximum number of rows to be returned, zero (0) is unlimited.public int getMaxRows()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||