Juergen Hoeller
3038f03fee
Polishing
...
(cherry picked from commit 4db258b )
2014-08-11 23:34:49 +02:00
Juergen Hoeller
36918d6bb7
Polishing (includes varargs for selected setters)
2014-08-11 22:12:26 +02:00
Juergen Hoeller
c0a4631fd1
Polishing
2014-07-29 10:10:48 +02:00
Juergen Hoeller
44c61e5d5f
Consistent declaration of private static final logger variables
...
Issue: SPR-11905
(cherry picked from commit c16032b )
2014-07-01 14:22:56 +02:00
Juergen Hoeller
3ae6c0f401
ResultSetWrappingSqlRowSet preserves first matching column per name (as defined in ResultSet's javadoc)
...
Issue: SPR-11786
(cherry picked from commit 0728e32 )
2014-05-15 15:10:12 +02:00
Juergen Hoeller
a5606a6c46
Polishing
2014-04-29 23:39:17 +02:00
Juergen Hoeller
9e2060707a
General defensiveness about the bootstrap ClassLoader (i.e. null ClassLoader)
...
Issue: SPR-11721
2014-04-27 22:29:08 +02:00
Juergen Hoeller
ffaac0ecf3
Polishing
2014-04-18 13:23:05 +02:00
Juergen Hoeller
4ac4630b0b
Polishing
2014-02-12 15:15:05 +01:00
Juergen Hoeller
3da9a3193c
Polishing
...
(cherry picked from commit 749b65b )
2014-02-07 18:04:14 +01:00
Juergen Hoeller
036bd791f0
Introduced "spring.jdbc.getParameterType.ignore" property
...
Issue: SPR-11386
(cherry picked from commit 60c1905 )
2014-02-04 16:53:44 +01:00
Juergen Hoeller
62fd12c527
Restored Java 5 compatibility through avoiding Collections.newSetFromMap
...
Issue: SPR-11313
2014-01-15 14:14:50 +01:00
Juergen Hoeller
e08f743301
ResourceDatabasePopulator's setScripts takes varargs
...
(cherry picked from commit e3017c3 )
2013-12-23 23:05:34 +01:00
Juergen Hoeller
551364f668
Polishing
2013-12-20 00:40:14 +01:00
Juergen Hoeller
6fb10981b0
Fixed extractOutputParameters to properly extract ResultSet in all cases
...
Issue: SPR-11076
(cherry picked from commit 3ff3805 )
2013-12-11 17:45:51 +01:00
Juergen Hoeller
c3907cdae5
Added 546 to Sybase data integrity violation codes
...
Issue: SPR-11097
(cherry picked from commit 2d2226b )
2013-12-11 17:44:47 +01:00
Juergen Hoeller
2e15f94cf2
Optimized use of JDBC 3.0 ParameterMetaData.getParameterType, caching information about drivers which do not support that feature
...
Issue: SPR-11100
(cherry picked from commit 4c8a789 )
2013-12-10 13:14:13 +01:00
Juergen Hoeller
e1a065906e
Avoid unnecessary char[] allocation in NamedParameterUtils
...
Issue: SPR-11042
(cherry picked from commit 1dc7ff8 )
2013-11-01 23:02:56 +01:00
Juergen Hoeller
b62652aca1
Reduced "getParameterType call not supported" log message to single line
...
Issue: SPR-10185
(cherry picked from commit 41f041e )
2013-10-17 21:09:11 +02:00
Juergen Hoeller
a302c4ac45
Polishing
...
(cherry picked from commit 52cca48 )
2013-10-04 23:31:18 +02:00
Juergen Hoeller
30b3e24a32
Removed S0 from BadSqlGrammarException codes
...
S0 doesn't seem to be universally used for SQL grammar problems: see MS SQL Server's RAISERROR. This was reported years back; not sure why the fix didn't actually appear in the codebase back then.
Issue: SPR-10902
(cherry picked from commit d9b6203 )
2013-09-25 13:05:06 +02:00
Fedor Bobin
6fb2c72a55
Allow cursor returns from SQL functions
...
Update CallMetaDataContext to use the metaDataProvider
createDefaultOutParameter method when creating a SqlOutParameter as
a result of a SQL function call.
This change allows Spring to support Oracle cursor types when returned
from functions.
Issue: SPR-10606
(cherry picked from c16b21)
2013-09-24 16:09:09 -07:00
Grzegorz Rożniecki
8f4221deb3
Fix SimpleJdbcCall and SimpleJdbcInsert Javadoc
...
Change "fluid" interface to "fluent" and "string" to "chain", plus fix
few typos in Javadoc.
Issue: SPR-10792
(cherry picked from commit 2344412 )
2013-08-06 14:44:01 -07:00
Juergen Hoeller
c1dc4e2c75
Resource-based PlatformTransactionManager implementations defensively catch Throwable in doBegin in order to reliably close resource in case of OutOfMemoryError
...
Issue: SPR-10755
(cherry picked from commit 2e4eb9f )
2013-07-25 10:45:58 +02:00
Juergen Hoeller
615315728b
Fixed BeanPropertyRowMapper to only prefix actual upper-case letters with underscores
...
Issue: SPR-10547
(cherry picked from commit c8b071c )
2013-05-16 14:34:44 +02:00
Juergen Hoeller
cc4f1328ee
Introduced public ArgumentPreparedStatementSetter and ArgumentTypePreparedStatementSetter classes
...
Issue: SPR-10375
2013-03-19 11:28:25 +01:00
Juergen Hoeller
6b4c29cd24
Defensively uses JDBC 3.0 getParameterType call for Oracle driver compatibility
...
Issue: SPR-10385
2013-03-19 11:14:33 +01:00
Phillip Webb
05765d7520
Replace EasyMock with Mockito
...
Issue: SPR-10126
2013-03-06 11:06:15 -08:00
Juergen Hoeller
d3c0dd1c7e
Minor javadoc updates
2013-03-01 21:55:01 +01:00
Juergen Hoeller
99c7f25b05
Deprecated OracleLobHandler in favor of DefaultLobHandler for the Oracle 10g driver and higher
...
Issue: SPR-10339
2013-03-01 21:55:00 +01:00
Juergen Hoeller
2bd584ca75
Added "createTemporaryLob" flag to DefaultLobHandler, using JDBC 4.0's createBlob/Clob mechanism
...
Issue: SPR-10339
2013-03-01 21:54:59 +01:00
Juergen Hoeller
6a043e3ea1
Mentioning JDBC 4's unwrap method for obtaining the native connection now
2013-03-01 16:05:27 +01:00
Juergen Hoeller
1716c171d8
LazyConnectionDataSourceProxy catches setReadOnly exception analogous to DataSourceUtils
...
Also mentioning JDBC 4's unwrap method for obtaining the native connection now.
Issue: SPR-10312
2013-03-01 16:04:10 +01:00
Carson McDonald
6a45d5bfb0
Minor changes to fix typos
2013-02-21 10:37:51 -08:00
Juergen Hoeller
acffcdaa01
Polished *JdbcCall/Insert classes
2013-02-15 18:23:10 +01:00
Juergen Hoeller
c1c27e7142
Deprecated JdbcTemplate's queryForInt/Long operations in favor of queryForObject (following NamedParameterJdbcTemplate)
...
Issue: SPR-10257
2013-02-09 17:06:30 +01:00
Juergen Hoeller
3fa6723748
Added useful query variants without parameters to NamedParameterJdbcTemplate, for convenience in DAOs
...
Also deprecated NamedParameterJdbcTemplate's queryForInt/Long operations in favor of queryForObject.
Issue: SPR-10256
Issue: SPR-10257
2013-02-09 16:59:38 +01:00
Juergen Hoeller
8a4ce142c4
SQLErrorCodeSQLExceptionTranslator tries to find SQLException with actual error code, looping through the causes.
...
Issue: SPR-10260
2013-02-06 21:32:42 +01:00
Phillip Webb
f464a45ba4
Polish formatting
...
Minor formatting polish across that codebase. Primarily fixing
whitespace issues.
2013-02-04 10:35:25 -08:00
Phillip Webb
d89e30b864
Fix unnecessary @SupressWarnings annotations
2013-01-29 15:37:25 -08:00
Phillip Webb
065b1c0e46
Fix unused local variable warnings
2013-01-25 14:35:19 -08:00
Phillip Webb
6a1e841952
Fix unused type compiler warnings
2013-01-25 14:35:07 -08:00
Juergen Hoeller
0dcc0f2227
Added further MySQL error code for DataIntegrityViolationException
...
Issue: SPR-9237
2013-01-23 22:00:33 +01:00
Juergen Hoeller
5d9ad5b1d1
AbstractDriverBasedDataSource does not rely on Properties chaining anymore
...
Issue: SPR-9461
2013-01-18 19:07:30 +01:00
Juergen Hoeller
20c4ba40d8
AbstractDriverBasedDataSource does not rely on Properties chaining anymore
...
Issue: SPR-9461
2013-01-18 14:02:13 +01:00
Juergen Hoeller
f0a1ff2d76
JDBC parameter binding uses JDBC 3.0 ParameterMetaData (if available) for type determination
...
Forward-ported from 3.1.2, with minor modifications for defensiveness against the JDBC driver.
Issue: SPR-10084
2013-01-11 21:55:57 +01:00
Chris Beams
15e9fe638c
Remove duplicate test resources
...
The files deleted in this commit existed in identical form in two places
within a given module; typically in src/test/java and
src/test/resources. The version within src/test/resources has been
favored in all cases.
This change was prompted by associated Eclipse warnings, which have now
been quelled.
Issue: SPR-9431
2013-01-04 11:38:58 +01:00
Chris Beams
51b307681a
Fix warnings due to unused import statements
...
Issue: SPR-9431
2013-01-04 11:04:54 +01:00
Chris Beams
b836e14b5f
Merge branch 'cleanup-test-duplicates' into cleanup-3.2.x
...
* cleanup-test-duplicates:
Update Apache license headers for affected sources
Remove duplicate test classes
Replace test beans with test objects
Conflicts:
spring-beans/src/test/java/org/springframework/beans/factory/ConcurrentBeanFactoryTests.java
spring-beans/src/test/java/org/springframework/beans/support/PagedListHolderTests.java
2013-01-04 10:31:31 +01:00
Phillip Webb
42b5d6dd7e
Remove duplicate test classes
...
Prior to this commit many test utility classes and sample beans were
duplicated across projects. This was previously necessary due to the
fact that dependent test sources were not shared during a gradle
build. Since the introduction of the 'test-source-set-dependencies'
gradle plugin this is no longer the case.
This commit attempts to remove as much duplicate code as possible,
co-locating test utilities and beans in the most suitable project.
For example, test beans are now located in the 'spring-beans'
project.
Some of the duplicated code had started to drift apart when
modifications made in one project where not ported to others. All
changes have now been consolidated and when necessary existing tests
have been refactored to account for the differences.
Conflicts:
spring-beans/src/test/java/org/springframework/beans/factory/ConcurrentBeanFactoryTests.java
spring-beans/src/test/java/org/springframework/beans/factory/support/BeanFactoryGenericsTests.java
spring-beans/src/test/java/org/springframework/beans/support/PagedListHolderTests.java
2013-01-04 10:02:29 +01:00