Class SpringJdbcEndpointBuilderFactory.SpringJdbcHeaderNameBuilder
java.lang.Object
org.apache.camel.builder.endpoint.dsl.SpringJdbcEndpointBuilderFactory.SpringJdbcHeaderNameBuilder
- Enclosing interface:
- SpringJdbcEndpointBuilderFactory
The builder of headers' name for the Spring JDBC component.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet it to specify the expected generated columns.The number of rows in the header that contains generated keys.Rows that contains the generated keys.The column names from the ResultSet as a java.util.Set type.A java.util.Map which has the headers to be used if useHeadersAsParameters has been enabled.If the query is a SELECT, query the row count is returned in this OUT header.If the query is an UPDATE, query the update count is returned in this OUT header.Set its value to true to retrieve generated keys.
-
Constructor Details
-
SpringJdbcHeaderNameBuilder
public SpringJdbcHeaderNameBuilder()
-
-
Method Details
-
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
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
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
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
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
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
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
Rows that contains the generated keys. The option is a:List<Map<String, Object>>
type. Group: producer- Returns:
- the name of the header
GeneratedKeysRows
.
-