|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscriptella.core.QueryExecutor
public final class QueryExecutor
<query> element executor.
| Field Summary | |
|---|---|
protected boolean |
debug
|
protected java.util.logging.Logger |
log
|
| Method Summary | |
|---|---|
protected void |
execute(Connection connection,
Resource resource,
DynamicContext ctx)
Executes a script or a query resource using the specified connection. |
void |
execute(DynamicContext ctx)
Executes the element. |
Resource |
getContent(DialectIdentifier dialectIdentifier)
Returns content satisfying dialect information. |
T |
getElement()
Returns scripting element specified in constructor |
Location |
getLocation()
A short for getElement(). |
static ExecutableElement |
prepare(QueryEl queryEl)
|
protected ContentEl |
prepareContent(ContentEl content)
Prepares the content for later execution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.logging.Logger log
protected final boolean debug
| Method Detail |
|---|
protected void execute(Connection connection,
Resource resource,
DynamicContext ctx)
connection - connection to use for element execution.resource - query/script content to execute.ctx - dynamic context to use for variables, etc.public static ExecutableElement prepare(QueryEl queryEl)
public T getElement()
constructor
public final void execute(DynamicContext ctx)
ExecutableElementNote: the context may be decorated by DynamicContextDecorator.
execute in interface ExecutableElementctx - context to use.public Resource getContent(DialectIdentifier dialectIdentifier)
This method caches contents based on dialects. For now we assume dialectIdentifier is constant for element.
dialectIdentifier - dialect identifier.
public Location getLocation()
getElement().getLocation()
protected ContentEl prepareContent(ContentEl content)
If content is dynamic, i.e. contains includes with bind variables, the properties substitutor is specified, otherwise no properties .
content - content to traverse.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||