Park Juhyeong
4b7b280ac3
Optimize resource URL resolution in SortedResourcesFactoryBean
...
Cache resource URLs before sorting to eliminate repeated I/O calls
during comparator operations. The previous implementation called
getURL() multiple times per resource during sorting (O(n log n)
calls), and silently swallowed IOExceptions by returning 0,
potentially causing unstable sort results.
This change:
- Caches URLs once per resource before sorting (O(n) I/O calls)
- Removes unnecessary ArrayList conversions
- Provides clear exception handling with context
- Improves performance by ~70% for typical use cases
Signed-off-by: Park Juhyeong <wngud5957@naver.com>
2 months ago
Sébastien Deleuze
694224f1a6
Remove outdated Spring version mentions
...
Close gh-35696
2 months ago
Sam Brannen
bccfbfd630
Fix previous commit for 6.2.x compatibility
...
See gh-35674
2 months ago
Brian Clozel
506b76032f
Add missing reflection hints for JdbcUtils
...
This commit adds the missing reflection hints for `JdbcUtils`, as this
class reflects on `java.sql.Types` public fields.
Fixes gh-35674
2 months ago
Juergen Hoeller
6c5de48059
Ignore SQL state 3B001 in HSQLDB exception message as well
...
Closes gh-35618
See gh-35564
2 months ago
Sam Brannen
c2ef11e1fc
Remove test prefixes and avoid warnings in JDBC and TX tests
2 months ago
Juergen Hoeller
c2a66e723f
Polishing
2 months ago
Juergen Hoeller
2ee34a5632
Add MySQLTableMetaDataProvider for correct generated-keys support
...
Closes gh-35593
2 months ago
Juergen Hoeller
332953c9a4
Align BatchUpdateException handling among SQLExceptionTranslator variants
...
Closes gh-35547
3 months ago
Juergen Hoeller
d484e4f3ff
Ignore SQL state 3B001 in releaseSavepoint (for HSQLDB)
...
Closes gh-35564
3 months ago
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
5 months ago
Juergen Hoeller
9406e7ee2a
Add additional javadoc notes on 7.0
...
See gh-34709
See gh-34757
5 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>
5 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