org.milyn.routing.db
Class SQLExecutor
java.lang.Object
org.milyn.routing.db.SQLExecutor
- All Implemented Interfaces:
- SmooksResourceConfigurationFactory, ContentHandler, DOMElementVisitor, DOMVisitAfter, DOMVisitBefore, DOMVisitor, Consumer, Producer, SAXVisitAfter, SAXVisitBefore, SAXVisitor, Visitor
@VisitBeforeIf(condition="parameters.containsKey(\'executeBefore\') && parameters.executeBefore.value == \'true\'")
@VisitAfterIf(condition="!parameters.containsKey(\'executeBefore\') || parameters.executeBefore.value != \'true\'")
public class SQLExecutor
- extends Object
- implements SmooksResourceConfigurationFactory, SAXVisitBefore, SAXVisitAfter, DOMElementVisitor, Producer, Consumer
SQLExecutor Visitor.
Supports extraction and persistence to a Database.
- Author:
- tom.fennelly@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLExecutor
public SQLExecutor()
setDatasource
public SQLExecutor setDatasource(AbstractDataSource datasource)
setStatement
public SQLExecutor setStatement(String statement)
setResultSetName
public SQLExecutor setResultSetName(String resultSetName)
getResultSetName
public String getResultSetName()
setResultSetScope
public SQLExecutor setResultSetScope(ResultSetScope resultSetScope)
setResultSetTTL
public SQLExecutor setResultSetTTL(long resultSetTTL)
setExecuteBefore
public SQLExecutor setExecuteBefore(boolean executeBefore)
createConfiguration
public SmooksResourceConfiguration createConfiguration()
- Specified by:
createConfiguration in interface SmooksResourceConfigurationFactory
intitialize
@Initialize
public void intitialize()
throws SmooksConfigurationException
- Throws:
SmooksConfigurationException
getProducts
public Set<? extends Object> getProducts()
- Specified by:
getProducts in interface Producer
consumes
public boolean consumes(Object object)
- Specified by:
consumes in interface Consumer
visitBefore
public void visitBefore(SAXElement saxElement,
ExecutionContext executionContext)
throws SmooksException,
IOException
- Specified by:
visitBefore in interface SAXVisitBefore
- Throws:
SmooksException
IOException
visitAfter
public void visitAfter(SAXElement saxElement,
ExecutionContext executionContext)
throws SmooksException,
IOException
- Specified by:
visitAfter in interface SAXVisitAfter
- Throws:
SmooksException
IOException
visitBefore
public void visitBefore(Element element,
ExecutionContext executionContext)
throws SmooksException
- Specified by:
visitBefore in interface DOMVisitBefore
- Throws:
SmooksException
visitAfter
public void visitAfter(Element element,
ExecutionContext executionContext)
throws SmooksException
- Specified by:
visitAfter in interface DOMVisitAfter
- Throws:
SmooksException
Copyright © 2014. All Rights Reserved.