Package org.apache.synapse.mediators.db
Class DBReportMediator
- java.lang.Object
-
- org.apache.synapse.mediators.AbstractMediator
-
- org.apache.synapse.mediators.db.AbstractDBMediator
-
- 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 Modifier and Type Field Description static String
MODIFIED_ROW_COUNT_PROP_NAME
-
Fields inherited from class org.apache.synapse.mediators.AbstractMediator
log, trace, traceState
-
-
Constructor Summary
Constructors Constructor Description DBReportMediator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeConnection(long key)
Close the connection of the current thread idboolean
isUseTransaction()
protected void
processStatement(Statement stmnt, MessageContext msgCtx)
Subclasses must specify how each SQL statement is processedvoid
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, isRegistryBasedDriverConfig, isRegistryBasedPassConfig, isRegistryBasedUrlConfig, isRegistryBasedUserConfig, mediate, setDataSource, setDataSourceInformation, setDataSourceName, setDbPoolView, setJndiProperties, setRegistryBasedDriverConfig, setRegistryBasedPassConfig, setRegistryBasedUrlConfig, setRegistryBasedUserConfig
-
Methods inherited from class org.apache.synapse.mediators.AbstractMediator
auditLog, auditWarn, configure, disableStatistics, disableTracing, divertMediationRoute, enableStatistics, enableTracing, getAspectConfiguration, getCommentsList, getDescription, getInputType, getLastSequenceFaultHandler, getLog, getMediatorName, getMediatorPosition, getOutputType, getRegisteredMediationFlowPoint, getShortDescription, getTraceState, getType, handleException, handleException, isBreakPoint, isContentAltering, isContentAware, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setComponentStatisticsId, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPoint
-
-
-
-
Field Detail
-
MODIFIED_ROW_COUNT_PROP_NAME
public static final String MODIFIED_ROW_COUNT_PROP_NAME
- See Also:
- Constant Field Values
-
-
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 classAbstractDBMediator
- Parameters:
stmnt
- the SQL statementmsgCtx
- current message
-
closeConnection
protected void closeConnection(long key)
Description copied from class:AbstractDBMediator
Close the connection of the current thread id- Specified by:
closeConnection
in classAbstractDBMediator
- Parameters:
key
- current thread id
-
-