Interface ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
    All Known Subinterfaces:
    ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder
    Enclosing interface:
    ElsqlEndpointBuilderFactory

    public static interface ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Advanced builder for endpoint producers for the ElSQL component.
    • Method Detail

      • alwaysPopulateStatement

        default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder alwaysPopulateStatement​(boolean alwaysPopulateStatement)
        If enabled then the populateStatement method from org.apache.camel.component.sql.SqlPrepareStatementStrategy is always invoked, also if there is no expected parameters to be prepared. When this is false then the populateStatement is only invoked if there is 1 or more expected parameters to be set; for example this avoids reading the message body/headers for SQL queries with no parameters. The option is a: boolean type. Default: false Group: advanced
      • alwaysPopulateStatement

        default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder alwaysPopulateStatement​(String alwaysPopulateStatement)
        If enabled then the populateStatement method from org.apache.camel.component.sql.SqlPrepareStatementStrategy is always invoked, also if there is no expected parameters to be prepared. When this is false then the populateStatement is only invoked if there is 1 or more expected parameters to be set; for example this avoids reading the message body/headers for SQL queries with no parameters. The option will be converted to a boolean type. Default: false Group: advanced
      • parametersCount

        default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder parametersCount​(int parametersCount)
        If set greater than zero, then Camel will use this count value of parameters to replace instead of querying via JDBC metadata API. This is useful if the JDBC vendor could not return correct parameters count, then user may override instead. The option is a: int type. Group: advanced
      • parametersCount

        default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder parametersCount​(String parametersCount)
        If set greater than zero, then Camel will use this count value of parameters to replace instead of querying via JDBC metadata API. This is useful if the JDBC vendor could not return correct parameters count, then user may override instead. The option will be converted to a int type. Group: advanced
      • placeholder

        default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder placeholder​(String placeholder)
        Specifies a character that will be replaced to in SQL query. Notice, that it is simple String.replaceAll() operation and no SQL parsing is involved (quoted strings will also change). The option is a: java.lang.String type. Default: # Group: advanced
      • prepareStatementStrategy

        default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder prepareStatementStrategy​(Object prepareStatementStrategy)
        Allows to plugin to use a custom org.apache.camel.component.sql.SqlPrepareStatementStrategy to control preparation of the query and prepared statement. The option is a: org.apache.camel.component.sql.SqlPrepareStatementStrategy type. Group: advanced
      • prepareStatementStrategy

        default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder prepareStatementStrategy​(String prepareStatementStrategy)
        Allows to plugin to use a custom org.apache.camel.component.sql.SqlPrepareStatementStrategy to control preparation of the query and prepared statement. The option will be converted to a org.apache.camel.component.sql.SqlPrepareStatementStrategy type. Group: advanced
      • templateOptions

        default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder templateOptions​(String key,
                                                                                                 Object value)
        Configures the Spring JdbcTemplate with the key/values from the Map. The option is a: java.util.Map<java.lang.String, java.lang.Object> type. The option is multivalued, and you can use the templateOptions(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced
      • templateOptions

        default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder templateOptions​(Map values)
        Configures the Spring JdbcTemplate with the key/values from the Map. The option is a: java.util.Map<java.lang.String, java.lang.Object> type. The option is multivalued, and you can use the templateOptions(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced