Sébastien Deleuze
da0a36bfd6
Upgrade to NullAway 0.12.10 and refine nullability
...
Closes gh-35492
3 months ago
Juergen Hoeller
b8f71b2321
Add DataFieldMaxValueIncrementer for SQLite (migrated from Spring Batch)
...
Closes gh-35440
3 months ago
Lukáš Kvídera
db9e938ec4
Detect Informix error codes as DuplicateKeyException
...
Closes gh-35400
Signed-off-by: Lukáš Kvídera <kvideral@qwsome.eu>
4 months ago
Sébastien Deleuze
7a2a167f34
Upgrade nullability plugin to 0.0.4
...
This commit also includes related refinements of
JdbcTemplate#getSingleColumnRowMapper and
ObjectUtils#addObjectToArray.
Closes gh-35340
4 months ago
Sam Brannen
15d3692669
Update assertion in JdbcClientIntegrationTests
4 months ago
Sam Brannen
37b076be51
Support multiple result sets in ScriptUtils.executeSqlScript()
...
Prior to this commit, ScriptUtils.executeSqlScript() treated every
statement within the script as if it were a single insert/update/delete
statement. This disregarded the fact that the execution of a JDBC
Statement can result in multiple individual statements, some of which
result in a ResultSet and others that result in an update count.
For example, when executing a stored procedure on Sybase, ScriptUtils
did not execute all statements within the stored procedure.
To address that, this commit revises the implementation of
ScriptUtils.executeSqlScript() so that it handles multiple results and
differentiates between result sets and update counts.
Closes gh-35248
4 months ago
Juergen Hoeller
f3832c7262
Add note on SQL types with SqlBinaryValue/SqlCharacterValue
...
Closes gh-34786
5 months ago
Juergen Hoeller
16e99f289c
Accept support for generated keys column name array on HSQLDB/Derby
...
Closes gh-34790
5 months ago
Juergen Hoeller
dacaf7fd56
Align @Nullable annotation
5 months ago
Juergen Hoeller
642e554c52
Process PostgreSQL-returned catalog/schema names in given case
...
Closes gh-35064
5 months ago
Sébastien Deleuze
a61b297967
Specify flexible generics nullness in spring-jdbc
...
This commit leverages flexible generics nullness at method and
type level when relevant in spring-jdbc.
Due to https://github.com/uber/NullAway/issues/1075 , some related
`@SuppressWarnings("NullAway")` have been added.
JdbcOperations Kotlin extensions have been refined accordingly.
Closes gh-34911
6 months ago
Juergen Hoeller
9406e7ee2a
Add additional javadoc notes on 7.0
...
See gh-34709
See gh-34757
6 months ago
Yanming Zhou
88257f7dfd
Discard further rows once maxRows has been reached
...
See https://github.com/spring-projects/spring-framework/issues/34666#issuecomment-2773151317
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
6 months ago
Juergen Hoeller
65e5c14245
Polishing
6 months ago
Juergen Hoeller
842f582afc
Specify fetchSize/maxRows/queryTimeout per statement in JdbcClient
...
Closes gh-35155
6 months ago
Juergen Hoeller
196b7ec275
Deprecate (Jdbc)DaoSupport classes (including JmsGatewaySupport)
...
Closes gh-35145
6 months ago
Sébastien Deleuze
294406dae9
Remove `@Suppress("EXTENSION_SHADOWED_BY_MEMBER")`
...
Fixed in Kotlin 2.2.0 and IntelliJ IDEA IDEA 2024.2 EAP, see
https://youtrack.jetbrains.com/issue/KT-75169 related issue.
See gh-34453
6 months ago
Juergen Hoeller
e33adadc62
Detect SQL state 57014 as QueryTimeoutException
...
Closes gh-35073
6 months ago
Sam Brannen
74ee1b991a
Apply consistent copyright headers in Kotlin source code
...
See gh-35070
6 months ago
Spring Builds
16edf9867a
Update copyright headers in source files
...
This commit updates Java, Kotlin, and Groovy source files to use the
"<year>-present" pattern in copyright headers.
Closes gh-35070
6 months ago
Sam Brannen
103a7e58bb
Apply consistent copyright headers in Kotlin source code
...
See gh-35070
6 months ago
Spring Builds
aee29b7f30
Update copyright headers in source files
...
This commit updates Java, Kotlin, and Groovy source files to use the
"<year>-present" pattern in copyright headers.
Closes gh-35070
6 months ago
rstoyanchev
230540b6da
Polishing contribution
...
Closes gh-34942
7 months ago
Yanming Zhou
f9fa7cc93b
Add missing "since" in `@Deprecated`
...
See gh-34942
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
7 months ago
Sam Brannen
f4f0e52003
Stop declaring parameters as final in JdbcTemplate
...
The affected parameters are "effectively final" and are therefore no
longer required to be declared as "final" on modern JDKs.
7 months ago
Sam Brannen
d0bf8faf48
Implement PreparedStatementCallback as lambda expression
7 months ago
Sam Brannen
2f60083cd5
Add integration tests for reused named parameters from bean properties
...
See gh-34768
8 months ago
Sam Brannen
018d3c9ef2
Add integration tests for reused named parameters
...
See gh-34768
8 months ago
Juergen Hoeller
eea6addd26
Avoid lenient locking for additional external bootstrap threads
...
Includes spring.locking.strict revision to differentiate between true, false, not set.
Includes checkFlag accessor on SpringProperties, also used in StatementCreatorUtils.
Closes gh-34729
See gh-34303
8 months ago
Juergen Hoeller
cc5ae23915
Suppress rollback attempt in case of timeout (connection closed)
...
Closes gh-34714
9 months ago
Yanming Zhou
5be83e9223
Stop calling deprecated JdbcOperations methods
...
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
9 months ago
Juergen Hoeller
7d5b3892c4
Add since 7.0 tags for stream methods
...
See gh-34623
9 months ago
Yanming Zhou
8819c749ce
Introduce Stream variant methods for SqlQuery
...
Closes GH-34474
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
9 months ago
Juergen Hoeller
47651350f3
Polishing
9 months ago
Juergen Hoeller
0e1422820f
JdbcClient holds ConversionService for queries with mapped classes
...
Closes gh-33467
9 months ago
Sam Brannen
c6a9aa59a3
Remove BDDMockito Checkstyle rule
...
This commit removes the BDDMockito Checkstyle rule, since it did not
actually enforce the use of BDDMockito.
This commit also updates static imports to use Mockito instead of
BDDMockito where appropriate (automated via the Eclipse IDE Organize
Imports clean-up task).
Closes gh-34616
9 months ago
Sam Brannen
5ffd88cd89
Remove deprecated rowsExpected property of SqlQuery
...
Closes gh-34530
Co-authored-by: Yanming Zhou <zhouyanming@gmail.com>
10 months ago
Sam Brannen
30d793cefe
Revise deprecation of SqlQuery.rowsExpected
...
Closes gh-34526
10 months ago
Yanming Zhou
78cc5df748
Deprecate unused "rowsExpected" property of SqlQuery for removal
...
See gh-34526
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
10 months ago
Juergen Hoeller
c64dae3623
Avoid getTargetConnection call on transaction-aware Connection close
...
Closes gh-34484
10 months ago
Yanming Zhou
7f020118eb
Polish JdbcTemplate to use getter instead of field
...
1. align with others in the same source file
2. allow subclass to override
Closes: gh-34501
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
10 months ago
Stéphane Nicoll
35dea59ce4
Polish "Prevent further configuration once SqlCall is compiled"
...
See gh-33729
11 months ago
Dan Sievewright
8810913f30
Prevent further configuration once SqlCall is compiled
...
This commit prevents AbstractJdbcCall to be further configured once it
is compiled.
See gh-33729
11 months ago
Johnny Lim
042b78f609
Fix Javadoc @code tags
...
Signed-off-by: Johnny Lim <izeye@naver.com>
11 months ago
Sébastien Deleuze
8299a617b9
Specify generic type nullness in spring-jdbc
...
See gh-34140
11 months ago
Brian Clozel
d28c0396c9
Update runtime hints predicates after GraalVM changes
...
As of gh-33847, method and field introspection is included by default
when a type is registered for reflection.
Many methods in ReflectionHintsPredicates are now mostly useless as their
default behavior checks for introspection.
This commit deprecates those methods and promotes instead invocation
variants. During the upgrade, developers should replace it for an
`onType` check if only reflection is required. If they were checking for
invocation, they should use the new 'onXInvocation` method.
Closes gh-34239
11 months ago
Juergen Hoeller
25287205ba
Use ReentrantLock for compilation without synchronization
...
Closes gh-34133
11 months ago
Juergen Hoeller
2bb4df79c3
Ignore SQLServerException with "not supported" message
...
Closes gh-34233
11 months ago
Sébastien Deleuze
a73a819c82
Refine `@SuppressWarnings("NullAway")`
...
See gh-28797
12 months ago
Sébastien Deleuze
1c37e7092e
Use `@SuppressWarnings("NullAway.Init")``
...
This commit uses `@SuppressWarnings("NullAway.Init")` when
relevant.
See gh-34147
See gh-34151
12 months ago