Sam Brannen
ceba4162bb
Replace assertThat(!x).isTrue() with assertThat(x).isFalse()
...
Search for : assertThat\(!(.+)\).isTrue\(\)
Replace with : assertThat(\1).isFalse()
2 years ago
Juergen Hoeller
47fe61ef79
Introduce lazyTransactionalConnections flag on TransactionAwareDataSourceProxy
...
Includes revision of JDBC transaction tests.
Closes gh-29423
2 years ago
Sam Brannen
cb60f74556
Stop referring to JDO PersistenceManager in comments
2 years ago
Sam Brannen
d71853f105
Polish contribution
...
See gh-31531
2 years ago
Yanming Zhou
490b5c77fc
Use switch expression where feasible
2 years ago
Sam Brannen
6ea9fdbf77
Polishing
2 years ago
Juergen Hoeller
edfe179291
Polishing
2 years ago
Juergen Hoeller
5f9702b2a4
Introduce rollbackBeforeClose property and AutoCloseable implementation
...
Closes gh-27249
2 years ago
Juergen Hoeller
6ff75f157b
Detect current schema as indicated by JDBC Connection
...
Closes gh-28723
2 years ago
Stéphane Nicoll
34031ebea9
Escape schema and function name patterns if necessary
...
The JDBC API that retrieves a proedure or a function allows to specify
patterns for the schema and the procedure name. So far, we've called
this API with the value as is, which does not work if either contains
a wildcard characters that need to be escaped.
This commit updates GenericCallMetadataProvider to escape, if necessary,
the schema or procedure name using the search string escape from the
database metadata.
Closes gh-22725
2 years ago
Juergen Hoeller
c60926476a
Polishing
2 years ago
Juergen Hoeller
c373f496f3
Consistent ordering of overloaded operations
2 years ago
Juergen Hoeller
01fc1ee3bb
Introduce update variant with KeyHolder and explicit key column names
...
Closes gh-31607
2 years ago
Juergen Hoeller
99327b7db1
Preserve nested square brackets within parameter name
...
Closes gh-31596
2 years ago
Stéphane Nicoll
f5453cc445
Polish
2 years ago
Juergen Hoeller
9957bb6918
Check for procedure vs function constants in CallMetaDataContext
...
Closes gh-31550
2 years ago
Sam Brannen
c5bcfc7682
Polish contribution
...
See gh-31554
2 years ago
Sam Brannen
5752e03d97
Polishing
2 years ago
Stéphane Nicoll
50e55d5219
Polish "Add SAP HANA duplicate key exception error code"
...
See gh-31554
2 years ago
Fabrizio De Felice
fcd4ba2f1f
Add SAP HANA duplicate key exception error code
...
See gh-31554
2 years ago
Sam Brannen
54839a7126
Test quoted identifiers in schema in SimpleJdbcInsert
...
This commit introduces additional tests for "quoted identifier" support
in SimpleJdbcInsert when the schema itself is defined using quoted
identifiers -- for example, to use keywords as column names.
See gh-31208
3 years ago
Sam Brannen
71330ddb0f
Revise support for quoted identifiers in SimpleJdbcInsert
...
Closes gh-31208
3 years ago
Sam Brannen
a803206d5f
Polishing
3 years ago
Sam Brannen
2d792f000a
Polish "Apply SingleSpaceSeparator Checkstyle module"
...
See gh-31469
3 years ago
Johnny Lim
64e9fcad53
Apply SingleSpaceSeparator Checkstyle module
...
This commit also fixes its violations.
Closes gh-31469
3 years ago
Johnny Lim
919faa2ce2
Order modifiers to align with JLS
...
This commit also applies Checkstyle ModifierOrder to enforce it.
See gh-31368
3 years ago
Juergen Hoeller
c0d98fcc7a
Consistent Object result declarations for ResultQuerySpec
...
Closes gh-31403
3 years ago
Juergen Hoeller
8b5d993e61
Throw IllegalArgumentException for null SQL String
...
Closes gh-31391
3 years ago
Stéphane Nicoll
61f27dafee
Polish "Use schema-based config in sql-error-codes.xml"
...
See gh-31354
3 years ago
ralph.riedel
c52645905a
Use schema-based config in sql-error-codes.xml
...
This commit replaces the reference to the beans DTD in
sql-error-codes.xml with the preferred schema-based configuration
approach.
See gh-31354
3 years ago
Sam Brannen
147abc91a5
Polish BeanPropertyRowMapper Javadoc
3 years ago
Stéphane Nicoll
e12eb9436d
Fix description of default behavior in BeanPropertyRowMapper
...
Closes gh-29285
3 years ago
Juergen Hoeller
38a0e17ede
Prefer query(Class) method in javadoc example
...
See gh-26594
3 years ago
Sam Brannen
d50ec68ad7
Polish contribution
...
See gh-31248
3 years ago
Lee Jaeheon
6d2d8a36c2
Introduce initialize() in AbstractRouting[DataSource|ConnectionFactory]
...
This commit introduces initialize() methods in
AbstractRoutingDataSource and AbstractRoutingConnectionFactory as an
alternative to invoking afterPropertiesSet().
Closes gh-31248
3 years ago
Sam Brannen
64b4a3cf0d
Update KeyHolder in JdbcClient when using positional parameters
...
Prior to this commit, DefaultJdbcClient updated the supplied KeyHolder
when using named parameters but not for positional parameters.
This commit refactors the creation of the
PreparedStatementCreatorFactory so that the PreparedStatementCreator
properly creates a PreparedStatement which returns generated keys.
Closes gh-31297
3 years ago
Sam Brannen
4841e52205
Rename constants in JdbcClientIndexedParameterTests
3 years ago
Stéphane Nicoll
c21a9b94c5
Polish "Allow batch update to take a KeyHolder"
...
See gh-28132
3 years ago
Chirag Tailor
78db5dd516
Allow batch update to take a KeyHolder
...
See gh-28132
3 years ago
Juergen Hoeller
659500bc1f
Polishing
3 years ago
Juergen Hoeller
ae8a353041
Reject iterable/collection value for positional parameter
...
Closes gh-31215
3 years ago
Juergen Hoeller
db7654225e
Polishing
3 years ago
Sam Brannen
6ca01e15cf
Polishing
3 years ago
Toshiaki Maki
588b5a45f8
Pass correct SqlParameterSource to NamedParameterJdbcTemplate in DefaultJdbcClient
...
Prior to this commit, when using RowCallbackHandler or ResultSetExtractor in JdbcClient
and passing a parameter to paramSource(), an exception was thrown stating "No value
supplied for the SQL parameter 'xxxxxx'" because the SqlParameterSource used internally
was the wrong one.
Closes gh-31195
3 years ago
Sam Brannen
c9e13575ca
Use switch expression and constants in CallMetaDataProviderFactory
3 years ago
Sam Brannen
762d903aad
Convert TableMetaData to a record
...
This simplifies the code and also improves diagnostics while debugging.
3 years ago
Sam Brannen
47d760845b
Add missing @Nullable declaration
3 years ago
Sam Brannen
ab5d46411a
Introduce identifierNameToUse() in GenericCallMetaDataProvider
3 years ago
Sam Brannen
4df3eb4670
Polish Javadoc
3 years ago
Sam Brannen
5a87f555f8
Update copyright headers
3 years ago