Class SqlEndpointBuilderFactory.SqlHeaderNameBuilder
java.lang.Object
org.apache.camel.builder.endpoint.dsl.SqlEndpointBuilderFactory.SqlHeaderNameBuilder
- Enclosing interface:
- SqlEndpointBuilderFactory
The builder of headers' name for the SQL component.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet it to specify the expected generated columns.Rows that contains the generated keys (a list of maps of keys).The number of rows in the header that contains generated keys.The SQL parameters when using the option useMessageBodyForSql.sqlQuery()
Query to execute.Set its value to true to retrieve generated keys.The number of rows returned for select operations, returned as an Integer object.The number of rows updated for update operations, returned as an Integer object.
-
Constructor Details
-
SqlHeaderNameBuilder
public SqlHeaderNameBuilder()
-
-
Method Details
-
sqlQuery
Query to execute. This query takes precedence over the query specified in the endpoint URI. Note that query parameters in the header _are_ represented by a instead of a pass:# symbol. The option is a:String
type. Group: producer- Returns:
- the name of the header
SqlQuery
.
-
sqlUpdateCount
The number of rows updated for update operations, returned as an Integer object. This header is not provided when using outputType=StreamList. The option is a:Integer
type. Group: producer- Returns:
- the name of the header
SqlUpdateCount
.
-
sqlRowCount
The number of rows returned for select operations, returned as an Integer object. This header is not provided when using outputType=StreamList. The option is a:Integer
type. Group: producer- Returns:
- the name of the header
SqlRowCount
.
-
sqlRetrieveGeneratedKeys
Set its value to true to retrieve generated keys. The option is a:Boolean
type. Default: false Group: producer- Returns:
- the name of the header
SqlRetrieveGeneratedKeys
.
-
sqlGeneratedColumns
Set it to specify the expected generated columns. The option is a:String[] or int[]
type. Group: producer- Returns:
- the name of the header
SqlGeneratedColumns
.
-
sqlGeneratedKeysRowCount
The number of rows in the header that contains generated keys. The option is a:Integer
type. Group: producer- Returns:
- the name of the header
SqlGeneratedKeysRowCount
.
-
sqlGeneratedKeyRows
Rows that contains the generated keys (a list of maps of keys). The option is a:List<Map<String, Object>>
type. Group: producer- Returns:
- the name of the header
SqlGeneratedKeyRows
.
-
sqlParameters
The SQL parameters when using the option useMessageBodyForSql. The option is a:Iterator
type. Group: producer- Returns:
- the name of the header
SqlParameters
.
-