Package org.apache.synapse.mediators.db
Class DBLookupMediator
- java.lang.Object
-
- org.apache.synapse.mediators.AbstractMediator
-
- org.apache.synapse.mediators.db.AbstractDBMediator
-
- org.apache.synapse.mediators.db.DBLookupMediator
-
- All Implemented Interfaces:
AspectConfigurable
,ManagedLifecycle
,Mediator
,SynapseArtifact
public class DBLookupMediator extends AbstractDBMediator
Simple database table lookup mediator. Designed only for read/lookup
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.mediators.AbstractMediator
log, trace, traceState
-
-
Constructor Summary
Constructors Constructor Description DBLookupMediator()
-
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
isContentAltering()
This is used to indicate whether message payload get modified during mediationprotected void
processStatement(Statement stmnt, MessageContext msgCtx)
Subclasses must specify how each SQL statement is processed-
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, isContentAware, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setComponentStatisticsId, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPoint
-
-
-
-
Method Detail
-
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
-
isContentAltering
public boolean isContentAltering()
Description copied from interface:Mediator
This is used to indicate whether message payload get modified during mediation- Specified by:
isContentAltering
in interfaceMediator
- Overrides:
isContentAltering
in classAbstractMediator
- Returns:
- whether mediator modify the payload
-
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
-
-