Class JdbcEndpointBuilderFactory.JdbcHeaderNameBuilder
- java.lang.Object
-
- org.apache.camel.builder.endpoint.dsl.JdbcEndpointBuilderFactory.JdbcHeaderNameBuilder
-
- Enclosing interface:
- JdbcEndpointBuilderFactory
public static class JdbcEndpointBuilderFactory.JdbcHeaderNameBuilder extends Object
The builder of headers' name for the JDBC component.
-
-
Constructor Summary
Constructors Constructor Description JdbcHeaderNameBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generatedColumns()
Set it to specify the expected generated columns.String
generatedKeysRowCount()
The number of rows in the header that contains generated keys.String
generatedKeysRows()
Rows that contains the generated keys.String
jdbcColumnNames()
The column names from the ResultSet as a java.util.Set type.String
jdbcParameters()
A java.util.Map which has the headers to be used if useHeadersAsParameters has been enabled.String
jdbcRowCount()
If the query is a SELECT, query the row count is returned in this OUT header.String
jdbcUpdateCount()
If the query is an UPDATE, query the update count is returned in this OUT header.String
retrieveGeneratedKeys()
Set its value to true to retrieve generated keys.
-
-
-
Method Detail
-
jdbcUpdateCount
public String jdbcUpdateCount()
If the query is an UPDATE, query the update count is returned in this OUT header. The option is a:int
type. Group: producer- Returns:
- the name of the header
JdbcUpdateCount
.
-
jdbcRowCount
public String jdbcRowCount()
If the query is a SELECT, query the row count is returned in this OUT header. The option is a:int
type. Group: producer- Returns:
- the name of the header
JdbcRowCount
.
-
jdbcColumnNames
public String jdbcColumnNames()
The column names from the ResultSet as a java.util.Set type. The option is a:Set<String>
type. Group: producer- Returns:
- the name of the header
JdbcColumnNames
.
-
jdbcParameters
public String jdbcParameters()
A java.util.Map which has the headers to be used if useHeadersAsParameters has been enabled. The option is a:Map
type. Group: producer- Returns:
- the name of the header
JdbcParameters
.
-
retrieveGeneratedKeys
public String retrieveGeneratedKeys()
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
RetrieveGeneratedKeys
.
-
generatedColumns
public String generatedColumns()
Set it to specify the expected generated columns. The option is a:String[] or int[]
type. Group: producer- Returns:
- the name of the header
GeneratedColumns
.
-
generatedKeysRowCount
public String generatedKeysRowCount()
The number of rows in the header that contains generated keys. The option is a:int
type. Group: producer- Returns:
- the name of the header
GeneratedKeysRowCount
.
-
generatedKeysRows
public String generatedKeysRows()
Rows that contains the generated keys. The option is a:List<Map<String, Object>>
type. Group: producer- Returns:
- the name of the header
GeneratedKeysRows
.
-
-