Juergen Hoeller
341ac76209
Rely on HashSet for uniqueness of mapped names
...
See gh-32199
2 years ago
Juergen Hoeller
8ff102115a
Let BeanPropertyRowMapper subclasses customize mapped names
...
Closes gh-32199
2 years ago
Juergen Hoeller
00577ed80a
Polishing
2 years ago
Juergen Hoeller
d586513d66
Introduce SqlBinaryValue/SqlCharacterValue as alternative to SqlLobValue
...
Includes direct byte array support via setBytes in StatementCreatorUtils.
Closes gh-32161
2 years ago
Stéphane Nicoll
ef2cae36ac
Polish contribution
...
See gh-32164
2 years ago
Yanming Zhou
efaf41862c
Polish StatementCreatorUtilsTests
...
See gh-32164
2 years ago
Juergen Hoeller
a44341ece3
Consistent method declaration order in Call/TableMetaDataProvider
2 years ago
Juergen Hoeller
2e9d6a1d4e
Polishing
2 years ago
Stéphane Nicoll
ad7c090f4c
Use catalog name in SimpleJdbcInsert
...
This commit harmonizes SimpleJdbcCall and SimpleJdbcInsert to
consistently use a catalog name if one is set. Previously,
SimpleJdbcInsert only used the catalog name to retrieve database
metadata.
Closes gh-32124
2 years ago
Stéphane Nicoll
f5b0d9509d
Polish
2 years ago
Juergen Hoeller
4d11307b84
Polishing
2 years ago
Stéphane Nicoll
1f2d29ee08
Polish
2 years ago
Stéphane Nicoll
2d3b02a89d
Polish
2 years ago
Stéphane Nicoll
87b35e7d8e
Polish
2 years ago
Stéphane Nicoll
534d3229fe
Polish
2 years ago
Stéphane Nicoll
3c5d46166e
Polish "Replace if with switch where feasible"
...
See gh-31916
2 years ago
Yanming Zhou
cfa3aa001f
Replace if with switch where feasible
...
See gh-31916
2 years ago
Stéphane Nicoll
7e5afc8bbb
Update copyright year of changed files
...
See gh-31913
2 years ago
Yanming Zhou
7474af4f09
Cleanup kotlin sources
...
1. remove unused import
2. remove redundant semicolon
3. remove redundant empty constructor and SAM-constructor
4. remove unnecessary type argument
5. adjust indent
See gh-31913
2 years ago
Juergen Hoeller
a428955438
Avoid unnecessary DatabasePopulator init/destroy processing
...
Closes gh-23405
2 years ago
Juergen Hoeller
a23375c49d
Document JDBC driver requirement for KeyHolder-based update methods
...
Closes gh-31486
2 years ago
Sam Brannen
c0683cd30b
Update copyright headers
2 years ago
Sam Brannen
b6364e3665
Polish Javadoc
2 years ago
Juergen Hoeller
77b0382a6c
Bypass getParameterType by default for PostgreSQL and SQL Server drivers
...
Closes gh-25679
2 years ago
Juergen Hoeller
69bc4e2828
Delegation support for JDBC 4.3 ConnectionBuilder and ShardingKeyBuilder
...
Also moves ShardingKeyProvider to datasource package and declares getSuperShardingKey as default method.
Closes gh-31795
See gh-31506
2 years ago
Mohammed Bekraoui
e4e2224449
Support direct shard database operation routing in Spring JDBC ( #31506 )
...
Introduce ShardingKeyDataSourceAdapter to get shard connections.
This commit introduces a DataSource proxy, that changes the behavior of the getConnection method to use the `createConnectionBuilder()` api to acquire direct shard connections. The shard connection is acquired by specifying a `ShardingKey` that is correspondent to the wanted shard.
2 years ago
Juergen Hoeller
afc1f37616
Support for SQL Server named parameter binding (aligned with Sybase)
...
Closes gh-26072
See gh-30231
2 years ago
Giuseppe Milicia
748dd94dab
Fix Sybase SimpleJdbcCall named parameter binding
2 years ago
Henning Poettker
b3a3b79b44
Adds `MySQLIdentityColumnMaxValueIncrementer`
...
The new `DataFieldMaxValueIncrementer` can be used with identity columns in MySQL 8.0 or later.
2 years ago
Juergen Hoeller
3b4c7a8906
Revise LazyConnectionDataSourceProxy for late connection properties check
...
Includes special support for a read-only DataSource in addition to the regular target DataSource, avoiding the overhead of switching the Connection's read-only flag at the beginning and end of every transaction.
Closes gh-29931
Closes gh-31785
Closes gh-19688
Closes gh-21415
2 years ago
Sam Brannen
302cdeeee6
Clean up warnings in JdbcTransactionManagerTests
2 years ago
Yanming Zhou
afcd03bddc
Replace assertThat(x.isEmpty()).isTrue() with assertThat(x).isEmpty()
...
Search for : assertThat\((.+).isEmpty\(\)\).isTrue\(\)
Replace with : assertThat($1).isEmpty()
Search for : assertThat\((.+).isEmpty\(\)\).isFalse\(\)
Replace with : assertThat($1).isNotEmpty()
Closes gh-31758
2 years ago
Yanming Zhou
e2852e7355
Replace assertThat(x.contains(y)).isTrue() with assertThat(x).contains(y)
...
Search for : assertThat\((.+)\.contains\((.+)\)\)\.isTrue\(\)
Replace with : assertThat($1).contains($2)
Search for : assertThat\((.+)\.contains\((.+)\)\)\.isFalse\(\)
Replace with : assertThat($1).doesNotContain($2)
Closes gh-31762
2 years ago
Yanming Zhou
59815cefce
Replace assertThat(x.get(i)). with assertThat(x).element(i).
...
Search for : assertThat\((.+)\.get\((\d+)\)\)\.
Replace with : assertThat($1).element($2).
Closes gh-31759
2 years ago
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