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 voidcloseConnection(long key)Close the connection of the current thread idbooleanisContentAltering()This is used to indicate whether message payload get modified during mediationprotected voidprocessStatement(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:AbstractDBMediatorSubclasses must specify how each SQL statement is processed- Specified by:
processStatementin classAbstractDBMediator- Parameters:
stmnt- the SQL statementmsgCtx- current message
-
isContentAltering
public boolean isContentAltering()
Description copied from interface:MediatorThis is used to indicate whether message payload get modified during mediation- Specified by:
isContentAlteringin interfaceMediator- Overrides:
isContentAlteringin classAbstractMediator- Returns:
- whether mediator modify the payload
-
closeConnection
protected void closeConnection(long key)
Description copied from class:AbstractDBMediatorClose the connection of the current thread id- Specified by:
closeConnectionin classAbstractDBMediator- Parameters:
key- current thread id
-
-