Interface ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
-
- All Superinterfaces:
ElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
,ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
,org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
,org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
- ElsqlEndpointBuilderFactory
public static interface ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder extends ElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder, ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
Builder for endpoint for the ElSQL component.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder
advanced()
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
allowNamedParameters(boolean allowNamedParameters)
Whether to allow using named parameters in the queries.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
allowNamedParameters(String allowNamedParameters)
Whether to allow using named parameters in the queries.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
databaseVendor(String databaseVendor)
To use a vendor specific com.opengamma.elsql.ElSqlConfig.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
databaseVendor(ElsqlEndpointBuilderFactory.ElSqlDatabaseVendor databaseVendor)
To use a vendor specific com.opengamma.elsql.ElSqlConfig.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
dataSource(Object dataSource)
Sets the DataSource to use to communicate with the database.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
dataSource(String dataSource)
Sets the DataSource to use to communicate with the database.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
dataSourceRef(String dataSourceRef)
Deprecated.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
outputClass(String outputClass)
Specify the full package and class name to use as conversion when outputType=SelectOne.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
outputHeader(String outputHeader)
Store the query result in a header instead of the message body.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
outputType(String outputType)
Make the output of consumer or producer to SelectList as List of Map, or SelectOne as single Java object in the following way: a) If the query has only single column, then that JDBC Column object is returned.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
outputType(ElsqlEndpointBuilderFactory.SqlOutputType outputType)
Make the output of consumer or producer to SelectList as List of Map, or SelectOne as single Java object in the following way: a) If the query has only single column, then that JDBC Column object is returned.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
separator(char separator)
The separator to use when parameter values is taken from message body (if the body is a String type), to be inserted at # placeholders.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
separator(String separator)
The separator to use when parameter values is taken from message body (if the body is a String type), to be inserted at # placeholders.-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.ElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
backoffErrorThreshold, backoffErrorThreshold, backoffIdleThreshold, backoffIdleThreshold, backoffMultiplier, backoffMultiplier, breakBatchOnConsumeFail, breakBatchOnConsumeFail, bridgeErrorHandler, bridgeErrorHandler, delay, delay, expectedUpdateCount, expectedUpdateCount, greedy, greedy, initialDelay, initialDelay, maxMessagesPerPoll, maxMessagesPerPoll, onConsume, onConsumeBatchComplete, onConsumeFailed, repeatCount, repeatCount, routeEmptyResultSet, routeEmptyResultSet, runLoggingLevel, runLoggingLevel, scheduledExecutorService, scheduledExecutorService, scheduler, schedulerProperties, schedulerProperties, sendEmptyMessageWhenIdle, sendEmptyMessageWhenIdle, startScheduler, startScheduler, timeUnit, timeUnit, transacted, transacted, useFixedDelay, useFixedDelay, useIterator, useIterator
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
batch, batch, lazyStartProducer, lazyStartProducer, noop, noop, useMessageBodyForSql, useMessageBodyForSql
-
Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, getUri
-
-
-
-
Method Detail
-
advanced
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder advanced()
- Specified by:
advanced
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
advanced
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
allowNamedParameters
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder allowNamedParameters(boolean allowNamedParameters)
Whether to allow using named parameters in the queries. The option is a:boolean
type. Default: true Group: common- Specified by:
allowNamedParameters
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
allowNamedParameters
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
allowNamedParameters
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder allowNamedParameters(String allowNamedParameters)
Whether to allow using named parameters in the queries. The option will be converted to aboolean
type. Default: true Group: common- Specified by:
allowNamedParameters
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
allowNamedParameters
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
databaseVendor
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder databaseVendor(ElsqlEndpointBuilderFactory.ElSqlDatabaseVendor databaseVendor)
To use a vendor specific com.opengamma.elsql.ElSqlConfig. The option is a:org.apache.camel.component.elsql.ElSqlDatabaseVendor
type. Group: common- Specified by:
databaseVendor
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
databaseVendor
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
databaseVendor
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder databaseVendor(String databaseVendor)
To use a vendor specific com.opengamma.elsql.ElSqlConfig. The option will be converted to aorg.apache.camel.component.elsql.ElSqlDatabaseVendor
type. Group: common- Specified by:
databaseVendor
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
databaseVendor
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
dataSource
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder dataSource(Object dataSource)
Sets the DataSource to use to communicate with the database. The option is a:javax.sql.DataSource
type. Group: common- Specified by:
dataSource
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
dataSource
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
dataSource
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder dataSource(String dataSource)
Sets the DataSource to use to communicate with the database. The option will be converted to ajavax.sql.DataSource
type. Group: common- Specified by:
dataSource
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
dataSource
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
dataSourceRef
@Deprecated default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder dataSourceRef(String dataSourceRef)
Deprecated.Sets the reference to a DataSource to lookup from the registry, to use for communicating with the database. The option is a:java.lang.String
type. Group: common- Specified by:
dataSourceRef
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
dataSourceRef
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
outputClass
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder outputClass(String outputClass)
Specify the full package and class name to use as conversion when outputType=SelectOne. The option is a:java.lang.String
type. Group: common- Specified by:
outputClass
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
outputClass
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
outputHeader
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder 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. The option is a:java.lang.String
type. Group: common- Specified by:
outputHeader
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
outputHeader
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
outputType
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder outputType(ElsqlEndpointBuilderFactory.SqlOutputType outputType)
Make the output of consumer or producer to SelectList as List of Map, or SelectOne as single Java object in the following way: a) If the query has only single column, then that JDBC Column object is returned. (such as SELECT COUNT( ) FROM PROJECT will return a Long object. b) If the query has more than one column, then it will return a Map of that result. c) If the outputClass is set, then it will convert the query result into an Java bean object by calling all the setters that match the column names. It will assume your class has a default constructor to create instance with. d) If the query resulted in more than one rows, it throws an non-unique result exception. StreamList streams the result of the query using an Iterator. This can be used with the Splitter EIP in streaming mode to process the ResultSet in streaming fashion. The option is a:org.apache.camel.component.sql.SqlOutputType
type. Default: SelectList Group: common- Specified by:
outputType
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
outputType
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
outputType
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder outputType(String outputType)
Make the output of consumer or producer to SelectList as List of Map, or SelectOne as single Java object in the following way: a) If the query has only single column, then that JDBC Column object is returned. (such as SELECT COUNT( ) FROM PROJECT will return a Long object. b) If the query has more than one column, then it will return a Map of that result. c) If the outputClass is set, then it will convert the query result into an Java bean object by calling all the setters that match the column names. It will assume your class has a default constructor to create instance with. d) If the query resulted in more than one rows, it throws an non-unique result exception. StreamList streams the result of the query using an Iterator. This can be used with the Splitter EIP in streaming mode to process the ResultSet in streaming fashion. The option will be converted to aorg.apache.camel.component.sql.SqlOutputType
type. Default: SelectList Group: common- Specified by:
outputType
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
outputType
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
separator
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder separator(char separator)
The separator to use when parameter values is taken from message body (if the body is a String type), to be inserted at # placeholders. Notice if you use named parameters, then a Map type is used instead. The default value is comma. The option is a:char
type. Default: , Group: common- Specified by:
separator
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
separator
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
separator
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder separator(String separator)
The separator to use when parameter values is taken from message body (if the body is a String type), to be inserted at # placeholders. Notice if you use named parameters, then a Map type is used instead. The default value is comma. The option will be converted to achar
type. Default: , Group: common- Specified by:
separator
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
- Specified by:
separator
in interfaceElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
-