Interface MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
MyBatisEndpointBuilderFactory.MyBatisEndpointBuilder
- Enclosing interface:
- MyBatisEndpointBuilderFactory
public static interface MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the MyBatis component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default MyBatisEndpointBuilderFactory.AdvancedMyBatisEndpointProducerBuilder
advanced()
default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder
executorType(String executorType)
The executor type to be used while executing statements.default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder
executorType(MyBatisEndpointBuilderFactory.ExecutorType executorType)
The executor type to be used while executing statements.default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder
inputHeader(String inputHeader)
User the header value for input parameters instead of the message body.default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder
outputHeader(String outputHeader)
Store the query result in a header instead of the message body.default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder
statementType(String statementType)
Mandatory to specify for the producer to control which kind of operation to invoke.default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder
statementType(MyBatisEndpointBuilderFactory.StatementType statementType)
Mandatory to specify for the producer to control which kind of operation to invoke.
-
-
-
Method Detail
-
advanced
default MyBatisEndpointBuilderFactory.AdvancedMyBatisEndpointProducerBuilder advanced()
-
executorType
default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder executorType(MyBatisEndpointBuilderFactory.ExecutorType executorType)
The executor type to be used while executing statements. simple - executor does nothing special. reuse - executor reuses prepared statements. batch - executor reuses statements and batches updates. The option is a: <code>org.apache.ibatis.session.ExecutorType</code> type. Default: SIMPLE Group: producer- Parameters:
executorType
- the value to set- Returns:
- the dsl builder
-
executorType
default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder executorType(String executorType)
The executor type to be used while executing statements. simple - executor does nothing special. reuse - executor reuses prepared statements. batch - executor reuses statements and batches updates. The option will be converted to a <code>org.apache.ibatis.session.ExecutorType</code> type. Default: SIMPLE Group: producer- Parameters:
executorType
- the value to set- Returns:
- the dsl builder
-
inputHeader
default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder inputHeader(String inputHeader)
User the header value for input parameters instead of the message body. By default, inputHeader == null and the input parameters are taken from the message body. If outputHeader is set, the value is used and query parameters will be taken from the header instead of the body. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
inputHeader
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
outputHeader
default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder outputHeader(String outputHeader)
Store the query result in a header instead of the message body. By default, outputHeader == null and the query result is stored in the message body, any existing content in the message body is discarded. If outputHeader is set, the value is used as the name of the header to store the query result and the original message body is preserved. Setting outputHeader will also omit populating the default CamelMyBatisResult header since it would be the same as outputHeader all the time. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
outputHeader
- the value to set- Returns:
- the dsl builder
-
statementType
default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder statementType(MyBatisEndpointBuilderFactory.StatementType statementType)
Mandatory to specify for the producer to control which kind of operation to invoke. The option is a: <code>org.apache.camel.component.mybatis.StatementType</code> type. Group: producer- Parameters:
statementType
- the value to set- Returns:
- the dsl builder
-
statementType
default MyBatisEndpointBuilderFactory.MyBatisEndpointProducerBuilder statementType(String statementType)
Mandatory to specify for the producer to control which kind of operation to invoke. The option will be converted to a <code>org.apache.camel.component.mybatis.StatementType</code> type. Group: producer- Parameters:
statementType
- the value to set- Returns:
- the dsl builder
-
-