172.4. 결과

기본적으로 결과는 OUT 본문에서 ArrayList<HashMap<String, Object>> 로서 반환됩니다. List 개체에는 행 목록 및 Map 개체에는 열 이름으로 String 키가 있는 각 행이 포함됩니다.The List object contains the list of rows and the Map objects contain each row with the String key as the column name. 옵션 outputType 을 사용하여 결과를 제어할 수 있습니다.

참고: 이 구성 요소는 ResultSetMetaData 를 가져와서 의 키로 열 이름을 반환할 수 있습니다.

172.4.1. 메시지 헤더

header설명

CamelJdbcRowCount

쿼리가 SELECT 이면 이 OUT 헤더에서 행 수가 반환됩니다.

CamelJdbcUpdateCount

쿼리가 UPDATE 인 경우 이 OUT 헤더에서 업데이트 수가 반환됩니다.If the query is an UPDATE , query the update count is returned in this OUT header.

CamelGeneratedKeysRows

Camel 2.10: 생성된 kets가 포함된 행.

CamelGeneratedKeysRowCount

Camel 2.10: 생성된 키가 포함된 헤더의 행 수입니다.

CamelJdbcColumnNames

Camel 2.11.1: java.util.Set 유형으로 ResultSet의 열 이름입니다.

CamelJdbcParametes

Camel 2.12: HeadersAsParameters를 사용하는 경우 사용할 헤더가 있는 java.util.Map 입니다.