@VisitBeforeIf(condition="parameters.containsKey(\'executeBefore\') && parameters.executeBefore.value == \'true\'") @VisitAfterIf(condition="!parameters.containsKey(\'executeBefore\') || parameters.executeBefore.value != \'true\'") public class SQLExecutor extends Object implements org.milyn.cdr.SmooksResourceConfigurationFactory, org.milyn.delivery.sax.SAXVisitBefore, org.milyn.delivery.sax.SAXVisitAfter, org.milyn.delivery.dom.DOMElementVisitor, org.milyn.delivery.ordering.Producer, org.milyn.delivery.ordering.Consumer
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLExecutor.ResultSetScopeDecoder |
| Constructor and Description |
|---|
SQLExecutor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
consumes(Object object) |
org.milyn.cdr.SmooksResourceConfiguration |
createConfiguration() |
Set<? extends Object> |
getProducts() |
String |
getResultSetName() |
void |
intitialize() |
SQLExecutor |
setDatasource(org.milyn.db.AbstractDataSource datasource) |
SQLExecutor |
setExecuteBefore(boolean executeBefore) |
SQLExecutor |
setResultSetName(String resultSetName) |
SQLExecutor |
setResultSetScope(ResultSetScope resultSetScope) |
SQLExecutor |
setResultSetTTL(long resultSetTTL) |
SQLExecutor |
setStatement(String statement) |
void |
visitAfter(Element element,
org.milyn.container.ExecutionContext executionContext) |
void |
visitAfter(org.milyn.delivery.sax.SAXElement saxElement,
org.milyn.container.ExecutionContext executionContext) |
void |
visitBefore(Element element,
org.milyn.container.ExecutionContext executionContext) |
void |
visitBefore(org.milyn.delivery.sax.SAXElement saxElement,
org.milyn.container.ExecutionContext executionContext) |
public SQLExecutor setDatasource(org.milyn.db.AbstractDataSource datasource)
public SQLExecutor setStatement(String statement)
public SQLExecutor setResultSetName(String resultSetName)
public String getResultSetName()
public SQLExecutor setResultSetScope(ResultSetScope resultSetScope)
public SQLExecutor setResultSetTTL(long resultSetTTL)
public SQLExecutor setExecuteBefore(boolean executeBefore)
public org.milyn.cdr.SmooksResourceConfiguration createConfiguration()
createConfiguration in interface org.milyn.cdr.SmooksResourceConfigurationFactory@Initialize
public void intitialize()
throws org.milyn.cdr.SmooksConfigurationException
org.milyn.cdr.SmooksConfigurationExceptionpublic Set<? extends Object> getProducts()
getProducts in interface org.milyn.delivery.ordering.Producerpublic boolean consumes(Object object)
consumes in interface org.milyn.delivery.ordering.Consumerpublic void visitBefore(org.milyn.delivery.sax.SAXElement saxElement,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
visitBefore in interface org.milyn.delivery.sax.SAXVisitBeforeorg.milyn.SmooksExceptionIOExceptionpublic void visitAfter(org.milyn.delivery.sax.SAXElement saxElement,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
visitAfter in interface org.milyn.delivery.sax.SAXVisitAfterorg.milyn.SmooksExceptionIOExceptionpublic void visitBefore(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitBefore in interface org.milyn.delivery.dom.DOMVisitBeforeorg.milyn.SmooksExceptionpublic void visitAfter(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitAfter in interface org.milyn.delivery.dom.DOMVisitAfterorg.milyn.SmooksExceptionCopyright © 2016. All rights reserved.