org.apache.synapse.mediators.db
Class DBReportMediator

java.lang.Object
  extended by org.apache.synapse.mediators.AbstractMediator
      extended by org.apache.synapse.mediators.db.AbstractDBMediator
          extended by org.apache.synapse.mediators.db.DBReportMediator
All Implemented Interfaces:
AspectConfigurable, ManagedLifecycle, Mediator, SynapseArtifact

public class DBReportMediator
extends AbstractDBMediator

A mediator that writes (i.e. inserts one row) to a table using message information


Field Summary
 
Fields inherited from class org.apache.synapse.mediators.AbstractMediator
log, trace, traceState
 
Constructor Summary
DBReportMediator()
           
 
Method Summary
 boolean isUseTransaction()
           
protected  void processStatement(Statement stmnt, MessageContext msgCtx)
          Subclasses must specify how each SQL statement is processed
 void setUseTransaction(boolean useTransaction)
           
 
Methods inherited from class org.apache.synapse.mediators.db.AbstractDBMediator
addDataSourceProperty, addDataSourceProperty, addStatement, createCustomDataSource, destroy, getDataSource, getDataSourceProps, getDbPoolView, getDSName, getPreparedStatement, getStatementList, handleException, init, mediate, setDataSource, setDataSourceInformation, setDataSourceName, setDbPoolView, setJndiProperties
 
Methods inherited from class org.apache.synapse.mediators.AbstractMediator
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBReportMediator

public DBReportMediator()
Method Detail

isUseTransaction

public boolean isUseTransaction()

setUseTransaction

public void setUseTransaction(boolean useTransaction)

processStatement

protected void processStatement(Statement stmnt,
                                MessageContext msgCtx)
Description copied from class: AbstractDBMediator
Subclasses must specify how each SQL statement is processed

Specified by:
processStatement in class AbstractDBMediator
Parameters:
stmnt - the SQL statement
msgCtx - current message


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.