You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JIRA https://jira.spring.io/browse/INT-4499Fixes#2483
To allow to reconfigure a `SELECT ... FOR UPDATE` for particular RDBMS
vendor, we need an option to specify possible hint for the target data base.
**Cherry-pick to 5.0.x**
Copy file name to clipboardExpand all lines: spring-integration-file/src/test/java/org/springframework/integration/file/filters/PersistentAcceptOnceFileListFilterExternalStoreTests.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2014-2017 the original author or authors.
2
+
* Copyright 2014-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -58,7 +58,7 @@ public class PersistentAcceptOnceFileListFilterExternalStoreTests extends RedisA
Copy file name to clipboardExpand all lines: spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/metadata/JdbcMetadataStore.java
+37-22Lines changed: 37 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2017 the original author or authors.
2
+
* Copyright 2017-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -49,32 +49,24 @@ public class JdbcMetadataStore implements ConcurrentMetadataStore, InitializingB
Copy file name to clipboardExpand all lines: src/reference/asciidoc/jdbc.adoc
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -320,6 +320,7 @@ The following example show to use the `query` attribute:
320
320
reply-channel="output"
321
321
data-source="dataSource"/>
322
322
----
323
+
====
323
324
324
325
[IMPORTANT]
325
326
====
@@ -328,10 +329,6 @@ You can adjust this behavior with the `max-rows` option.
328
329
If you need to return all the rows from the SELECT, consider specifying `max-rows="0"`.
329
330
====
330
331
331
-
IMPORTANT: By default, the component for the `SELECT` query returns only the first row from the cursor.
332
-
You can adjust this by setting the `max-rows-per-poll` option.
333
-
If you need to return all the rows from the `SELECT`, you can set `max-rows-per-poll="0"`.
334
-
335
332
As with the channel adapters, you can also provide `SqlParameterSourceFactory` instances for request and reply.
336
333
The default is the same as for the outbound adapter, so the request message is available as the root of an expression.
337
334
If `keys-generated="true"`, the root of the expression is the generated keys (a map if there is only one or a list of maps if multi-valued).
@@ -1111,3 +1108,7 @@ Transaction management must use `JdbcMetadataStore`.
1111
1108
Inbound channel adapters can be supplied with a reference to the `TransactionManager` in the poller configuration.
1112
1109
Unlike non-transactional `MetadataStore` implementations, with `JdbcMetadataStore`, the entry appears in the target table only after the transaction commits.
1113
1110
When a rollback occurs, no entries are added to the `INT_METADATA_STORE` table.
1111
+
1112
+
Since version 5.0.7, the `JdbcMetadataStore` can be configured with the RDBMS vendor-specific `lockHint` option for lock-based queries on metadata store entries.
1113
+
It is `FOR UPDATE` by default and can be configured with an empty string, if the target data base doesn't support row locking functionality.
1114
+
Please, consult with your vendor for particular possible hint in the `SELECT` expression for locking rows before updates.
0 commit comments