Interface MyBatisBeanEndpointBuilderFactory.MyBatisBeanEndpointBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
    Enclosing interface:
    MyBatisBeanEndpointBuilderFactory

    public static interface MyBatisBeanEndpointBuilderFactory.MyBatisBeanEndpointBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint for the MyBatis Bean component.
    • Method Detail

      • executorType

        default MyBatisBeanEndpointBuilderFactory.MyBatisBeanEndpointBuilder executorType​(org.apache.ibatis.session.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 MyBatisBeanEndpointBuilderFactory.MyBatisBeanEndpointBuilder 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 MyBatisBeanEndpointBuilderFactory.MyBatisBeanEndpointBuilder 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
      • outputHeader

        default MyBatisBeanEndpointBuilderFactory.MyBatisBeanEndpointBuilder 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