org.milyn.persistence
Class DaoFlusher

java.lang.Object
  extended by org.milyn.persistence.DaoFlusher
All Implemented Interfaces:
org.milyn.delivery.ContentHandler, org.milyn.delivery.dom.DOMElementVisitor, org.milyn.delivery.dom.DOMVisitAfter, org.milyn.delivery.dom.DOMVisitBefore, org.milyn.delivery.dom.DOMVisitor, org.milyn.delivery.sax.SAXVisitAfter, org.milyn.delivery.sax.SAXVisitBefore, org.milyn.delivery.sax.SAXVisitor, org.milyn.delivery.Visitor

@VisitBeforeIf(condition="parameters.containsKey(\'flushBefore\') && parameters.flushBefore.value == \'true\'")
@VisitAfterIf(condition="!parameters.containsKey(\'flushBefore\') || parameters.flushBefore.value != \'true\'")
public class DaoFlusher
extends Object
implements org.milyn.delivery.dom.DOMElementVisitor, org.milyn.delivery.sax.SAXVisitBefore, org.milyn.delivery.sax.SAXVisitAfter

DAO Flusher

This DAO flusher calls the flush method of a DAO.

Configuration

Namespace: http://www.milyn.org/xsd/smooks/persistence-1.2.xsd
Element: flusher
Attributes:

Configuration Example

 <?xml version="1.0"?>
 <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
   xmlns:dao="http://www.milyn.org/xsd/smooks/persistence-1.2.xsd">

      <dao:flusher dao="dao" flushOnElement="root" flushBefore="false" />
 </smooks-resource-list>
 

Author:
maurice.zeijen@smies.com

Constructor Summary
DaoFlusher()
           
 
Method Summary
 void initialize()
           
 void visitAfter(Element element, org.milyn.container.ExecutionContext executionContext)
           
 void visitAfter(org.milyn.delivery.sax.SAXElement element, org.milyn.container.ExecutionContext executionContext)
           
 void visitBefore(Element element, org.milyn.container.ExecutionContext executionContext)
           
 void visitBefore(org.milyn.delivery.sax.SAXElement element, org.milyn.container.ExecutionContext executionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoFlusher

public DaoFlusher()
Method Detail

initialize

@Initialize
public void initialize()

visitBefore

public void visitBefore(Element element,
                        org.milyn.container.ExecutionContext executionContext)
                 throws org.milyn.SmooksException
Specified by:
visitBefore in interface org.milyn.delivery.dom.DOMVisitBefore
Throws:
org.milyn.SmooksException

visitAfter

public void visitAfter(Element element,
                       org.milyn.container.ExecutionContext executionContext)
                throws org.milyn.SmooksException
Specified by:
visitAfter in interface org.milyn.delivery.dom.DOMVisitAfter
Throws:
org.milyn.SmooksException

visitBefore

public void visitBefore(org.milyn.delivery.sax.SAXElement element,
                        org.milyn.container.ExecutionContext executionContext)
                 throws org.milyn.SmooksException,
                        IOException
Specified by:
visitBefore in interface org.milyn.delivery.sax.SAXVisitBefore
Throws:
org.milyn.SmooksException
IOException

visitAfter

public void visitAfter(org.milyn.delivery.sax.SAXElement element,
                       org.milyn.container.ExecutionContext executionContext)
                throws org.milyn.SmooksException,
                       IOException
Specified by:
visitAfter in interface org.milyn.delivery.sax.SAXVisitAfter
Throws:
org.milyn.SmooksException
IOException


Copyright © 2018. All rights reserved.