|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.wiki.plugin.query.QueryPlugin
org.ceryle.wiki.plugin.query.QueryExecutor
public class QueryExecutor
Subclass of the QueryPlugin so its functionality can be hijacked for non wiki-page display purposes.
| Field Summary |
|---|
| Fields inherited from class org.ceryle.wiki.plugin.query.QueryPlugin |
|---|
currentPageName, DIV_query, m_emptyText, m_executionError, m_queryManager, NoPagesFound, PARAM_ECHO, PARAM_EMPTY_TEXT, PARAM_NAMED, PARAM_OUTPUT, PARAM_PAGES, PARAM_PARSED_EXPRESSION, PROP_PREFIX_NAMED |
| Fields inherited from interface com.ecyrd.jspwiki.plugin.WikiPlugin |
|---|
CORE_PLUGINS_RESOURCEBUNDLE |
| Fields inherited from interface org.ceryle.wiki.plugin.util.PluginConstants |
|---|
ACL, AOP, APOS_ENT, ASTERISK, BCL, BOP, BR, CAPCL, CAPOP, CLATT, COLON, COMMA, DIV_class, DIV_style, DIVCL, DOT, EQ, EQQUO, EQSQUO, FALSE, FORMCL, FORMOP, GET, ICL, INPUTOP, IOP, LABELCL, LABELFOR, LABELOP, LCURL, LICL, LIOP, LPAR, LSBR, MT, NBSP, NL, OLCL, OLOP, P_class, PCL, PLUGCL, PLUGO, POP, POST, QUO, QUOCL, QUOETCL, RCURL, RPAR, RSBR, SEMI, SP, SPAN_class, SPANCL, SPANOP, SQUO, TABLECL, TABLEOP, TDCL, TDOP, THCL, THOP, TRCL, TROP, TRUE, TTCL, TTOP, ULCL, ULOP, UNDER |
| Constructor Summary | |
|---|---|
QueryExecutor()
|
|
| Method Summary | |
|---|---|
Set |
execute(WikiEngine engine,
String query)
Execute the given query and return the result set. |
String |
getOutput(WikiEngine engine)
This duplicates the basic output of the superclass, but if the user specified a unparsable query then the default behaviour of the QueryPlugin is to return a String message even while its result Set returns null. |
Set |
getResultSet()
For the purposes of this executor we assure that a null set can never be handed out. |
| Methods inherited from class org.ceryle.wiki.plugin.query.QueryPlugin |
|---|
error, execute, execute, getContext, getExpression, getOutputFormat, getQueryExpression, isDebug, isEcho, setResultSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryExecutor()
| Method Detail |
|---|
public Set execute(WikiEngine engine,
String query)
throws QueryException
engine - Must NOT be null.query - The query to be executed.
QueryException - if the given query could not be parsed or any other internal error occured.public Set getResultSet()
getResultSet in class QueryPluginpublic String getOutput(WikiEngine engine)
getOutput in class QueryPlugin
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||