org.mule.module.db.internal.processor
Class BulkExecuteMessageProcessor

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessorBase
      extended by org.mule.processor.AbstractInterceptingMessageProcessor
          extended by org.mule.module.db.internal.processor.AbstractDbMessageProcessor
              extended by org.mule.module.db.internal.processor.BulkExecuteMessageProcessor
All Implemented Interfaces:
AnnotatedObject, MuleContextAware, Initialisable, InterceptingMessageProcessor, MessageProcessor, MessageProcessorContainer, MessageSource, org.mule.common.Capability, org.mule.common.metadata.MetaDataDescriptor, org.mule.common.metadata.OperationMetaDataEnabled

public class BulkExecuteMessageProcessor
extends AbstractDbMessageProcessor

Executes an queries in bulk mode on a database *

Accepted queries are any query with no parameters and returning an update count as result.

Both database and bulk query are resolved, if required, using the MuleEvent being processed.


Field Summary
 
Fields inherited from class org.mule.module.db.internal.processor.AbstractDbMessageProcessor
dbConfigResolver
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
logger, muleContext, next, notificationHandler
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
BulkExecuteMessageProcessor(DbConfigResolver dbConfigResolver, BulkQueryResolver bulkQueryResolver, BulkQueryExecutorFactory bulkUpdateExecutorFactory, TransactionalAction transactionalAction)
           
 
Method Summary
protected  Object executeQuery(DbConnection connection, MuleEvent muleEvent)
           
protected  List<QueryType> getValidQueryTypes()
           
 
Methods inherited from class org.mule.module.db.internal.processor.AbstractDbMessageProcessor
getInputMetaData, getOutputMetaData, getQueryMetadataProvider, getSource, getTarget, initialise, mustCloseConnection, process, resolveSource, setQueryMetadataProvider, setSource, setTarget, validateQueryType
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
addMessageProcessorPathElements, getAnnotation, getAnnotations, getListener, getMuleContext, isEventValid, processNext, setAnnotations, setListener, setMuleContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.source.MessageSource
setListener
 

Constructor Detail

BulkExecuteMessageProcessor

public BulkExecuteMessageProcessor(DbConfigResolver dbConfigResolver,
                                   BulkQueryResolver bulkQueryResolver,
                                   BulkQueryExecutorFactory bulkUpdateExecutorFactory,
                                   TransactionalAction transactionalAction)
Method Detail

executeQuery

protected Object executeQuery(DbConnection connection,
                              MuleEvent muleEvent)
                       throws SQLException
Specified by:
executeQuery in class AbstractDbMessageProcessor
Throws:
SQLException

getValidQueryTypes

protected List<QueryType> getValidQueryTypes()
Specified by:
getValidQueryTypes in class AbstractDbMessageProcessor


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.