From b654e566eb6f3f2ddf9a4e33ca3b712cf3e371e3 Mon Sep 17 00:00:00 2001 From: David Syer Date: Wed, 1 Sep 2010 14:09:02 +0000 Subject: [PATCH] Add gateway to schema --- .../config/spring-integration-jdbc-2.0.xsd | 343 +++++++++++------- 1 file changed, 213 insertions(+), 130 deletions(-) diff --git a/spring-integration-jdbc/src/main/resources/org/springframework/integration/jdbc/config/spring-integration-jdbc-2.0.xsd b/spring-integration-jdbc/src/main/resources/org/springframework/integration/jdbc/config/spring-integration-jdbc-2.0.xsd index bf79702f87..6179338d01 100644 --- a/spring-integration-jdbc/src/main/resources/org/springframework/integration/jdbc/config/spring-integration-jdbc-2.0.xsd +++ b/spring-integration-jdbc/src/main/resources/org/springframework/integration/jdbc/config/spring-integration-jdbc-2.0.xsd @@ -1,15 +1,12 @@ - - + - + @@ -67,7 +63,7 @@ share the same database tables. The default is "DEFAULT". - + @@ -89,8 +85,7 @@ ]]> - + @@ -109,23 +104,8 @@ - + - - - - - A select query to execute when a message is - polled. In general - the query can return multiple - rows, because - the result will be a List (of type determined by the - row - mapper). - - - - @@ -138,45 +118,8 @@ - + - - - - - A select query to execute when a message is - polled. In general the query can return multiple - rows, because - the result will be a List (of type determined by the row - mapper). The query can also be specified as a nested element. - - - - - - - - - Reference to a row mapper to use to convert - JDBC result set rows to message payloads. - Optional - with default - that maps - result set row to a map (column name to column value). - Other simple - use cases can - be handled - with out-of-the box - implementations from Spring JDBC. Others require a custom row - mapper. - - - - - - - @@ -184,13 +127,12 @@ An update query to execute when a message is polled. If the poll is in a transaction then the update will - roll back if the transaction does. The update can also be specified as a nested element. - + roll back if the transaction does. The update can also be specified as a nested element. + - + @@ -207,7 +149,8 @@ Limits the number of rows extracted per query (otherwise all rows - are extracted into the outgoing message). + are extracted into the + outgoing message). @@ -220,23 +163,42 @@ sent. - + - + - Reference to a SqlParameterSource for the SELECT query used for polling. If - that query has placeholders (e.g. "SELECT * from FOO where KEY=:key") they + Reference to a SqlParameterSourceFactory. The input is the result of the + query. The + default factory creates a bean + property parameter source that treats a List in a special + way: the List is + assumed to contain entities with a field called + "id" and these are collected and copied to a field in the + parameter + source called "idList". + + + + + + + + + + + + Reference to a static SqlParameterSource for the SELECT query used for polling. If + that query has + placeholders (e.g. "SELECT * from FOO where KEY=:key") they will be bound from this source by name. - + @@ -255,37 +217,20 @@ - - - - - - - An SQL update query to execute (INSERT, - UPDATE - or DELETE). Bean properties of the outgoing - message can be - referenced in named parameters, e.g. "INSERT into FOOS (ID, - NAME) values (:headers[business.key], - :payload)". More complex - requirements can be implemented by specifying a sql-parameter-source-factory. - - - - - - + + - An SQL update query to execute (INSERT, - UPDATE - or DELETE). Bean properties of the outgoing - message can be - referenced in named parameters, e.g. "INSERT into FOOS (ID, - NAME) values (:headers[business.key], - :payload)". The query can also be specified as a nested element. - + Reference to a SqlParameterSourceFactory. The input is the whole + outgoing message. The + default factory creates a bean + property parameter source so the query can specify named + parameters like :payload and :headers[foo]. + + + + @@ -299,8 +244,7 @@ to be executed. - + @@ -310,6 +254,100 @@ + + + + Defines an outbound Channel Gateway for updating a + database in response to a message on the request + channel and getting a response + on the reply channel. + + + + + + + + + + + An update query to execute when a message is + received. If this is in a transaction then the + update will + roll back when the transaction does. + + + + + + + + + + An update query to execute when a message is + received. If this is in a transaction then the + update will + roll back when the transaction does. The update can also be specified as a nested element. + + + + + + + + + Reference to a SqlParameterSourceFactory. The input is the whole + outgoing message. The + default factory creates a bean + property parameter source so the query can specify named + parameters like :payload and :headers[foo]. + + + + + + + + + + + + Reference to a SqlParameterSourceFactory. The input is the whole + outgoing message. The + default factory creates a bean + property parameter source so the query can specify named + parameters like :payload and :headers[foo]. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -345,29 +383,74 @@ - - - - - Reference to a SqlParameterSourceFactory. For an - inbound adapter the input is the result of the - query, and for an - outbound adapter the input is the whole outgoing message. The - default factory creates a bean - property parameter source for a - generic input (like a Message), and treats a List in a special - way: the List is - assumed to contain entities with a field called - "id" and these are collected and copied to a field in the - parameter source called "idList". + + + + + + + + + + + A select query to execute when a message is + polled. In general + the query can return multiple + rows, because + the result will be a List (of type determined by the + row + mapper). + + + + + + + + + + A select query to execute when a message is + polled. In general the query can return multiple + rows, because + the result will be a List (of type determined by the row + mapper). The query can also be specified as + a nested element. - - - - - - + + + + + + + + + + + + + + + Reference to a row mapper to use to convert + JDBC result set rows to message payloads. + Optional + with default + that maps + result set row to a map (column name to column value). + Other simple + use cases can + be handled + with out-of-the box + implementations from Spring JDBC. Others require a custom row + mapper. + + + + + + + + + \ No newline at end of file