Juergen Hoeller
e20bff9c64
Consistent data class constructor resolution with clear error message
...
MVC data class processor constructs target instance even in case of binding failure, as long as the corresponding method parameter is not marked as optional.
Closes gh-24372
4 years ago
Сергей Цыпанов
1f3e52d932
gh-25650 Replace remaining usage of LinkedList with ArrayList in tests
4 years ago
Juergen Hoeller
bb9e79daa7
Polishing
4 years ago
Juergen Hoeller
d37eaa5941
Introduce DataClassRowMapper with record-style constructor binding support
...
Closes gh-24695
4 years ago
Juergen Hoeller
874574513c
Replace remaining usage of LinkedList with ArrayList/ArrayDeque
...
Closes gh-25650
4 years ago
Juergen Hoeller
d198c4426f
Extract ConcurrentLruCache for reuse in NamedParameterJdbcTemplate
...
Closes gh-24197
4 years ago
Juergen Hoeller
ff11467a0c
Avoid resizing of fixed-size HashMap/LinkedHashMap variants
...
Closes gh-25349
4 years ago
Juergen Hoeller
94eee6a32a
Provide access to AbstractRoutingDataSource's resolved target DataSources
...
Closes gh-25544
4 years ago
Sébastien Deleuze
5c456db3cc
Upgrade to Kotlin 1.4 RC
...
- The compiler is configured to retain compatibility with Kotlin 1.3.
- Explicit API mode is not yet enabled but could be in the future.
- Some exceptions thrown by Kotlin have changed to NullPointerException,
see https://youtrack.jetbrains.com/issue/KT-22275 for more details.
Closes gh-24171
4 years ago
Juergen Hoeller
43e315f10c
Unwrap SqlParameterValue for disposable value detection in cleanupParameters
...
Closes gh-22972
4 years ago
Juergen Hoeller
4f2aaa49a9
Replace javadoc references to deprecated query methods
...
See gh-25272
4 years ago
Juergen Hoeller
30bf870810
Check JDBC 4 getFunctions (for compatibility with PostgreSQL driver 42.2.11)
...
Closes gh-25399
4 years ago
Johnny Lim
364939b2a3
Remove redundant Character.toLowerCase() in BeanPropertyRowMapper
...
This commit removes a redundant Character.toLowerCase() invocation in
BeanPropertyRowMapper.underscoreName().
Closes gh-25361
4 years ago
Sébastien Deleuze
06b364fefe
Leverage spring.ignore.xml flag to avoid SQLStateSQLExceptionTranslator
...
Closes gh-25335
4 years ago
Sam Brannen
b33d2fe683
Clean up warnings in Gradle build, polishing, etc.
4 years ago
Sam Brannen
751739442b
Polishing
4 years ago
Sam Brannen
0e83aaa756
Fix hanging test
...
Partially reverts 1edc08fb84
4 years ago
Sam Brannen
1edc08fb84
Polishing
4 years ago
Juergen Hoeller
d0209e5f1f
Nullability refinements and related polishing
4 years ago
Marten Deinum
8eedd9d5cc
Use JDBC 4 API for connection validation
...
With this commit use the JDBC 4.0 isValid method to
validate the connection. This is favorable over a
validation query.
4 years ago
Marten Deinum
6316a353bb
Reduce String creation in BeanPropertyRowMapper
...
Prior to this commit the BeanPropertyRowMapper used
String.substring and String.toLowerCase to parse the
field names. This would generate more String than needed.
Instead one could iterate over the internal char[] of the
String and use the Character methods instead. This reduces
the String creation.
Closes gh-25301
4 years ago
Sam Brannen
9d5881e0ad
Suppress warnings, remove unused code, etc.
4 years ago
Juergen Hoeller
2d5f9723fa
Deprecate superseded Object[] signatures in JdbcOperations/JdbcTemplate
...
Closes gh-25272
4 years ago
Sébastien Deleuze
6b355df903
Revert "Upgrade to Kotlin 1.4 M2"
...
This reverts commit 2a74eff10f
.
Some regressions require to wait at least Kotlin 1.4 M3.
4 years ago
Sam Brannen
30263137c4
Suppress warnings in Gradle build
4 years ago
Juergen Hoeller
17cab9660c
Deprecate TransactionSynchronizationAdapter
...
Closes gh-21725
4 years ago
Juergen Hoeller
d36407d585
Deprecate rarely used bean definition variants
...
Closes gh-24875
4 years ago
Сергей Цыпанов
7949937655
Remove redundant assignment of default values to volatile fields
4 years ago
Sam Brannen
8099fc8178
Use try-with-resources language construct where feasible
...
Closes gh-2063
Co-authored-by: igor-suhorukov <igor.suhorukov@gmail.com>
4 years ago
Sam Brannen
456d2c46e3
Suppress warnings in Gradle build
...
See gh-24655
4 years ago
Sam Brannen
50391ad3d7
Add @author tags for JDBC KeyHolder support
...
See gh-24655
4 years ago
Sébastien Deleuze
2a74eff10f
Upgrade to Kotlin 1.4 M2
...
- The compiler is configured to retain compatibility with Kotlin 1.3.
- Explicit API mode is not yet enabled but could be in the future.
- A workaround for Gradle build is required for now, see
https://youtrack.jetbrains.com/issue/KT-39610 for more details.
- Some exceptions thrown by Kotlin have changed to NullPointerException,
see https://youtrack.jetbrains.com/issue/KT-22275 for more details.
Closes gh-24171
4 years ago
Sam Brannen
cc301011b2
Polish JDBC KeyHolder support
...
See gh-24655
4 years ago
eXsio
b50cf9dad2
Support user-defined key type in JDBC KeyHolder
...
Prior to this commit, the JDBC KeyHolder API only supported keys of
type Number. However, a generated key can be a UUID or something else,
and developers shouldn't have to go manually through complex
collections to access it.
This commit adds a new getKeyAs(Class<T> keyType) method to the
KeyHolder API that allows the user to specify the key type.
Closes gh-24655
4 years ago
Juergen Hoeller
e955e52f2f
Refactor method name dispatching to switch statements
...
Closes gh-25163
5 years ago
Juergen Hoeller
08474aa921
Clarify JDBC-defined negative values returned from batchUpdate
...
Closes gh-25138
5 years ago
Juergen Hoeller
27d5fdc5aa
Polishing
5 years ago
Juergen Hoeller
4018b462f1
JdbcOperations polishing (backported from master)
5 years ago
Juergen Hoeller
d56ca04162
Introduce queryForStream on JdbcTemplate and NamedParameterJdbcTemplate
...
Closes gh-18474
5 years ago
Juergen Hoeller
fe33822fa7
Polishing
5 years ago
Juergen Hoeller
e9cded560d
Introduce JdbcTransactionManager with SQLExceptionTranslator support
...
Closes gh-24064
5 years ago
Juergen Hoeller
251501587b
Consistent nullability of arguments array in JdbcOperations/Template
...
Closes gh-24839
5 years ago
Juergen Hoeller
6177e38eb6
Close-suppressing Connection proxy exposes target isClosed() state
...
Closes gh-24853
5 years ago
Sam Brannen
e26764d249
Remove duplicate words in documentation and polish Javadoc
5 years ago
Qimiao Chen
7c831d2ef4
Replace anonymous inner classes with lambdas in tests
...
Closes gh-24808
5 years ago
Juergen Hoeller
910d2788e9
Polishing
5 years ago
Sam Brannen
5e1e689739
Polishing
5 years ago
Qimiao Chen
5f2e298c08
Extract isDebugEnabled() checks to local variables
...
Closes gh-24683
5 years ago
Juergen Hoeller
6db20eb773
Avoid package import cycles
5 years ago
Sam Brannen
c2367b3ad2
Polish contribution
...
See gh-24383
5 years ago