Sam Brannen
c36c6cbfaa
Introduce database-name in <jdbc:embedded-database>
...
Prior to this commit, the EmbeddedDatabaseBeanDefinitionParser set the
name of the embedded database that it configured to the value of its
'id'. This made it impossible to assign unique names to embedded
databases if the same bean 'id' (e.g, 'dataSource') was used across
multiple application contexts loaded within the same JVM, which is
often the case within an integration test suite. In contrast, the
EmbeddedDatabaseBuilder already provides support for setting the name
in Java Config. Thus there is a disconnect between XML and Java
configuration.
This commit addresses this issue by introducing a 'database-name'
attribute in <jdbc:embedded-database />. This allows developers to set
unique names for embedded databases -- for example, via a SpEL
expression or a property placeholder that is influenced by the current
active bean definition profiles.
Issue: SPR-12835
2015-03-20 16:42:04 +01:00
Sam Brannen
7e2f12cf9f
Allow <jdbc:embedded-database> to be declared w/o id
...
This commit modifies EmbeddedDatabaseBeanDefinitionParser so that the
<jdbc:embedded-database> XML namespace element can be declared as an
anonymous bean (i.e., without an explicit ID).
Issue: SPR-12834
2015-03-20 15:48:04 +01:00
Sam Brannen
85e4b24abb
Introduce spring-jdbc-4.2.xsd
...
This commit introduces spring-jdbc-4.2.xsd in order to support upcoming
changes to the JDBC XML namespace.
In addition, this commit polishes the XSD documentation with regard to
use cases for script execution.
2015-03-20 15:31:41 +01:00
Juergen Hoeller
bc6a98c144
Polishing (in particular updating javadoc references to Apache Commons)
2015-03-13 18:19:10 +01:00
Sam Brannen
23d52d5e35
Polish Javadoc for ScriptStatementFailedException constructor
...
Issue: SPR-12752
2015-02-28 00:12:53 +01:00
Juergen Hoeller
540d8792fe
Fixed javadoc warnings and revised FastByteArrayOutputStream code style
2015-02-27 23:49:55 +01:00
Sam Brannen
45a80fa3ed
Polish Javadoc for ScriptStatementFailedException.buildErrorMessage()
...
Issue: SPR-12752
2015-02-27 23:17:32 +01:00
Juergen Hoeller
2b3409461f
Polishing
2015-02-27 22:29:42 +01:00
Sam Brannen
448c99f224
Introduce buildErrorMessage() utility in ScriptStatementFailedException
...
To eliminate code duplication, ScriptStatementFailedException and
ScriptUtils now delegate to a new buildErrorMessage() utility method.
Issue: SPR-12752
2015-02-27 21:41:52 +01:00
Sam Brannen
291b3de72b
Refer to statement numbers in ScriptStatementFailedException
...
ScriptStatementFailedException now properly refers to statement numbers
instead of line numbers.
Issue: SPR-12752
2015-02-27 19:30:56 +01:00
Juergen Hoeller
8f228d1db4
ScriptUtils properly refers to statement numbers instead of line numbers
...
Issue: SPR-12752
2015-02-25 18:28:23 +01:00
Juergen Hoeller
9ac02b319d
Remove pre-3.2 deprecated classes and methods
...
Issue: SPR-12578
2014-12-30 20:05:15 +01:00
Juergen Hoeller
d6b16ffee3
Remove deprecated SimpleJdbcTemplate and supporting classes
...
Issue: SPR-11895
2014-12-30 14:59:38 +01:00
Juergen Hoeller
3b1584904f
Polishing
...
Issue: SPR-12476
2014-11-27 19:57:53 +01:00
Juergen Hoeller
fc92c0010e
Revised SqlRowSet javadoc and support for JDBC 4.x ResultSet additions
...
Issue: SPR-12476
Issue: SPR-12480
2014-11-27 19:07:01 +01:00
Juergen Hoeller
2b4004d176
Consistent Map<String, ?> declarations and use of LinkedHashMap for incoming JDBC operation parameters
...
Issue: SPR-12462
2014-11-24 13:59:09 +01:00
Juergen Hoeller
c0747a006a
JdbcUtils.getResultSetValue avoids re-retrieval from ResultSet for Blob/Clob content (for Derby compatibility)
...
Issue: SPR-8810
2014-10-28 16:19:16 +01:00
Juergen Hoeller
1ad7a03357
Polishing
2014-10-21 18:49:03 +02:00
Juergen Hoeller
8325b10080
Consistent formatting of license headers, package javadocs, and import declarations
2014-10-21 01:44:07 +02:00
Juergen Hoeller
57d63a1903
JdbcTemplate and JmsTemplate pass settings with 0 values on to the driver
...
Issue: SPR-12338
2014-10-17 19:54:30 +02:00
Juergen Hoeller
43597bfed4
Polishing
2014-10-16 17:26:10 +02:00
Juergen Hoeller
fb92934a7b
Extracted AbstractIdentityColumnMaxValueIncrementer and introduced deleteSpecificValues mode
...
Issue: SPR-12327
2014-10-16 17:25:40 +02:00
Juergen Hoeller
fd69ee541e
DataSourceTransactionManager resets ConnectionHolder on doBegin failure
...
Issue: SPR-12280
2014-10-02 14:33:21 +02:00
unpush
31391232f4
fix typo
2014-10-02 10:45:47 +02:00
Stephane Nicoll
b2d67914a8
Fix javadoc glitch
...
Issue: SPR-12282
2014-10-01 16:48:38 +02:00
Juergen Hoeller
3908804486
StatementCreatorUtils uses setClob/setNClob with stream argument in case of typed String value exceeding 4000 characters (for Oracle compatibility)
...
Issue: SPR-12240
2014-09-27 00:40:35 +02:00
Juergen Hoeller
3046fdd56a
DefaultLobCreator's streamAsLob mode supports JDBC 4.0 setBlob/Clob variants without length parameter as well
...
Issue: SPR-12265
2014-09-27 00:16:01 +02:00
Juergen Hoeller
d65db65fad
DefaultLobCreator supports JDBC 4.0 set-stream variants without length parameter
...
Issue: SPR-12265
2014-09-26 23:56:43 +02:00
Juergen Hoeller
62340d6ccf
Only release rolled-back database savepoints during managed nested transaction
...
Issue: SPR-12228
2014-09-22 17:29:10 +02:00
Juergen Hoeller
9c8f7d9246
Explicitly release rolled-back database savepoints during (long-running) transaction
...
Issue: SPR-12228
2014-09-22 14:59:04 +02:00
Sam Brannen
f27c7df004
Avoid Gradle compiler warnings
2014-09-21 21:23:54 +02:00
Juergen Hoeller
8922da3af6
Generalized workaround for JDBC 4.1 getObject(index, requiredType) failures on MySQL and Derby
...
Issue: SPR-12174
Issue: SPR-12157
2014-09-12 16:27:48 +02:00
Juergen Hoeller
1e7bfd91a7
Polishing
2014-09-10 01:28:54 +02:00
Juergen Hoeller
dedb04bd5c
Workaround for Derby's limited support for JDBC 4.1 getObject(index, requiredType)
...
Issue: SPR-12157
2014-09-07 22:43:09 +02:00
Sam Brannen
79c75df088
Updated copyright date range
2014-08-20 23:53:25 +02:00
Sam Brannen
b5216c5165
Merge pull request #624 from leizhiyuan/master
...
Stop using deprecated JdbcTemplate.queryFor*() methods
2014-08-20 23:48:17 +02:00
Juergen Hoeller
759f430ba5
StatementCreatorUtils avoids direct calls with SQL type argument in case of Types.OTHER
...
Issue: SPR-8571
2014-08-19 20:52:54 +02:00
leizhiyuan
3fcdae8ae8
Clean Up Deprecated Method Call
...
change all testcases in spring-jdbc those use queryForInt and
queryForLong methods to queryForObject
2014-08-17 08:17:46 +08:00
Juergen Hoeller
4db258b9e3
Polishing
2014-08-11 22:32:03 +02:00
Juergen Hoeller
ad475ffadf
Consistent vararg declarations for String array setters
2014-08-08 17:17:09 +02:00
Juergen Hoeller
8f484d382e
Polishing
2014-07-29 11:42:37 +02:00
Stephane Nicoll
dd2bf28a4f
Add missing XSDs
...
Commit b676c41805 should have added the 4.1 XSDs for the jdbc and oxm
modules.
Issue: SPR-12011
2014-07-19 18:42:05 +02:00
Juergen Hoeller
9d6c38bd54
Consistent bracket alignment
2014-07-18 17:21:58 +02:00
Juergen Hoeller
55c351523d
Polishing
2014-07-07 16:28:48 +02:00
Juergen Hoeller
4082274630
SQLStateSQLExceptionTranslator checks exception class name for timeout indication before resorting to UncategorizedSQLException
...
Issue: SPR-11959
2014-07-07 16:26:25 +02:00
Juergen Hoeller
ec4e6e0b0e
StatementCreatorUtils populates NVARCHAR, LONGNVARCHAR, NCLOB via setString as well
...
Issue: SPR-11938
2014-07-01 20:30:23 +02:00
Juergen Hoeller
0451232eb4
Polishing
...
(cherry picked from commit 86ea305 )
2014-07-01 15:14:31 +02:00
Juergen Hoeller
a6f3f101e4
Preparations for eventual removal of ParameterizedRowMapper along with SimpleJdbcTemplate
...
Issue: SPR-11895
2014-06-24 19:26:53 +02:00
Juergen Hoeller
18131bf611
Consistent declaration of private static final logger variables
...
Issue: SPR-11905
2014-06-24 14:02:05 +02:00
Sam Brannen
f442ce180e
Polish assertions and Javadoc for ResourceDatabasePopulator
2014-06-07 14:13:45 +02:00