David Syer
99e6c7c45d
SPR-6717: Added support for database destroy scripts
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4470 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-06 07:28:25 +00:00
Thomas Risberg
f52a34e5b3
Added batchUpdate method taking a Collection, a batch size and a ParameterizedPreparedStatementSetter as arguments (SPR-6334)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4457 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-05 16:42:24 +00:00
David Syer
1e249085d2
SPR-7364: added separator property to database populator to deal with things like PL/SQL
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4417 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-02 16:22:26 +00:00
David Syer
9c73be0869
SPR-6688: Add tests and explicit detection of \ in sql script extractor
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4410 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-02 14:28:58 +00:00
Thomas Risberg
9c39084b62
SPR-6922 deprecated SimpleJdbcTemplate/SimpleJdbcOperations/SimpleJdbcDaoSupport in favor of JdbcTemplate/NamedParameterJdbcTemplate and related interfaces support classes
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4225 50f2f4bb-b051-0410-bef5-90022cba6387
2011-04-14 18:44:40 +00:00
Thomas Risberg
7b25351288
switched to create the PreparedStatementCreatorFactory using a list of SqlParameters to preserve type names (SPR-7699)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3976 50f2f4bb-b051-0410-bef5-90022cba6387
2011-02-09 13:58:30 +00:00
Juergen Hoeller
f917704e61
fixed embedded database exception test
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3721 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-09 13:29:22 +00:00
Oliver Gierke
a54c4bd0cf
SPR-7604 - Support multiple embedded databases.
...
Added missing test configuration file.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3716 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-08 12:40:06 +00:00
Oliver Gierke
7a24e4116f
SPR-7604 - Support multiple embedded databases.
...
Embedded datasources now get their bean ids set as database name to allow multiple databases of the same type in parallel. Refactored tests a little and made BeanDefinitionParser package private to align with the other ones. Adapted changelog accordingly.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3712 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-02 06:30:05 +00:00
Thomas Risberg
4be9b83c31
Added support for looking up column values by column label to support CachedRowSetImpl which doesn't allow for column label use (SPR-7506); added some generics;
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3662 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-08 18:46:21 +00:00
Juergen Hoeller
5294db8e62
fixed yet another regression with respect to newlines (SPR-7449)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3560 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-10 22:36:36 +00:00
Sam Brannen
22a0850aca
[SPR-7449] @Ignore'd failing test for regression in ResourceDatabasePopulator.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3557 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-10 21:51:35 +00:00
Juergen Hoeller
90d1a297cb
polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3541 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-07 16:52:16 +00:00
Juergen Hoeller
22ab9d6ce8
DataSourceUtils lets timeout exceptions through even for setReadOnly calls (revised; SPR-7226)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3365 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-25 14:10:28 +00:00
David Syer
d4103d1168
RESOLVED - issue SPR-6668: Small Connection leak in DataSourceInitializer
...
http://jira.springframework.org/browse/SPR-6668
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2808 50f2f4bb-b051-0410-bef5-90022cba6387
2010-01-13 11:00:41 +00:00
David Syer
8dd8a2b451
RESOLVED - issue SPR-6365: spring-jdbc.xsd script element claims resource patterns can be used for any SQL resource location but this is only supported for initialize-database tag
...
Grr: classpath*: again...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2443 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-17 08:36:37 +00:00
David Syer
769bacfc28
RESOLVED - issue SPR-6365: spring-jdbc.xsd script element claims resource patterns can be used for any SQL resource location but this is only supported for initialize-database tag
...
Added resource pattern feature to embedded datasource XML parser.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2442 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-17 07:57:35 +00:00
Keith Donald
0be14b0974
removed new EmbeddedDatabaeBuilder methods that don't seem very useful for embedded scenarios; javadoc polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2441 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-17 00:47:34 +00:00
David Syer
27c1a578f4
OPEN - issue SPR-6346: NoSuchMethodException in DerbyEmbeddedDatabaseConfigurer
...
Added derby test case to EmbeddedDatabaseBuilderTests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2439 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-15 13:17:42 +00:00
David Syer
67932323ad
RESOLVED - issue SPR-6345: ResourceDatabasePopulator does not handle comments properly when ignoring failures
...
http://jira.springframework.org/browse/SPR-6345
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2436 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-14 09:02:03 +00:00
Keith Donald
254f477423
removed embedded databases factory in favor of new useDefaultScripts builder method
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2247 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-03 23:19:26 +00:00
Keith Donald
add8476160
embeddedd databases convenience factory; builder polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2246 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-03 23:05:41 +00:00
David Syer
d55d291313
RESOLVED - issue SPR-5917: fixed classpath pattern for ANT
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2231 50f2f4bb-b051-0410-bef5-90022cba6387
2009-10-30 11:51:50 +00:00
David Syer
4e2ebdf8e4
RESOLVED - issue SPR-5917: DataSourceInitializer and namespace support for creating and populating databases
...
Moved classes but not resources (fixed)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2230 50f2f4bb-b051-0410-bef5-90022cba6387
2009-10-30 11:26:45 +00:00
David Syer
8fba8e87ab
RESOLVED - issue SPR-5917: DataSourceInitializer and namespace support for creating and populating databases
...
Tweak initializer to allow placeholders for script locations
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2229 50f2f4bb-b051-0410-bef5-90022cba6387
2009-10-30 11:09:49 +00:00
David Syer
ba249fb1b1
RESOLVED - issue SPR-5917: DataSourceInitializer and namespace support for creating and populating databases
...
Moved populator to init package and added namespace features
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2227 50f2f4bb-b051-0410-bef5-90022cba6387
2009-10-30 10:31:37 +00:00
Juergen Hoeller
c459b7e905
"data.sql" instead of "test-data.sql" (SPR-6020)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1971 50f2f4bb-b051-0410-bef5-90022cba6387
2009-09-23 16:16:40 +00:00
Juergen Hoeller
2147e66d7c
changed NamedParameter/SimpleJdbcOperations parameter signatures to accept any Map value type (SPR-6046)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1781 50f2f4bb-b051-0410-bef5-90022cba6387
2009-08-27 13:53:00 +00:00
Mark Pollack
2f66da5293
SPR-5976 - Upgrade POMS to JUnit 4.6
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1696 50f2f4bb-b051-0410-bef5-90022cba6387
2009-08-05 17:48:53 +00:00
Thomas Risberg
49f6a8db65
added some additional tests (SPR-3322, SPR-5162)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1309 50f2f4bb-b051-0410-bef5-90022cba6387
2009-06-03 20:06:04 +00:00
Thomas Risberg
35d527f756
Updated BeanPropertyRowMapper to remove spaces from column names to improve matching to properties (SPR-5758)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1302 50f2f4bb-b051-0410-bef5-90022cba6387
2009-06-02 20:58:44 +00:00
Thomas Risberg
1a703b3a63
added convenience execute method that takes vararg of objects in the order of the parameters plus the corresponding executeFunction/executeObject methods (SPR-4739)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1287 50f2f4bb-b051-0410-bef5-90022cba6387
2009-06-01 20:43:39 +00:00
Thomas Risberg
b23704f0f2
added convenience method that takes vararg of objects in the order of the declared parameters (SPR-5696)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1286 50f2f4bb-b051-0410-bef5-90022cba6387
2009-06-01 20:40:08 +00:00
Thomas Risberg
1343f95a43
added batchUpdate methods to NamedParameterJdbcTemplate (SPR-3322)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1272 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-28 03:15:47 +00:00
Keith Donald
55694f5ca1
removed unused imports
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1202 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-16 22:13:21 +00:00
Keith Donald
4a727f391f
applied Joris's patch to shutdown Embedded Derby DB; adjusted manifest template to restrict derby version range from 10.5.1. to 10.6
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1201 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-16 22:11:18 +00:00
Keith Donald
2587e09b57
derby embedded db support initial commit; shutdown use case needs work
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1197 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-16 15:05:28 +00:00
Juergen Hoeller
8a49660e47
replaced Commons Collections dependency with Spring-provided LinkedCaseInsensitiveMap; revised CollectionFactory and Spring Map implementations for consistency
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1166 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-12 23:37:43 +00:00
Keith Donald
ad4c6710b5
polish
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1139 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-09 22:30:34 +00:00
Keith Donald
582b194061
h2 embedded db support; updated formatting conventions not to auto-format javadoc; added hsqldb and h2 to jdbc maven pom as optional deps
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1137 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-09 22:27:05 +00:00
Keith Donald
3f24357f96
spring-jdbc xsd initial commit; includes embedded-database tag
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1130 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-08 19:06:58 +00:00
Keith Donald
ee645318b8
polish
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1119 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-06 09:14:25 +00:00
Keith Donald
527bbf4c5e
eliminated dependency on jdbc core
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1111 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-06 07:36:24 +00:00
Keith Donald
539f9b3575
polish
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1060 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-23 19:01:41 +00:00
Keith Donald
28ae04ead2
added DataSourceFactory strategy; promoted EmbeddedDatabaseConfigurer strategy to public API; added ability to add any number of SQL scripts for db population
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1053 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-22 19:31:46 +00:00
Keith Donald
812e7272d5
embedded database support initial commit; moved from spring-test; ResourceDatabasePopulator duplicate code with test.jdbc package that needs review
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1050 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-22 17:07:20 +00:00
Thomas Risberg
c6bab66017
added a config property to control defaulting of primitive property when receiving null value from result (SPR-5588)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@822 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-25 15:26:39 +00:00
Thomas Risberg
b37a461eb0
added tests for custom SQLException translation, polished (SPR-4899)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@768 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-12 21:32:40 +00:00
Thomas Risberg
ee4c0e7101
switched tests to use JUnit4
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@765 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-12 06:29:33 +00:00
Thomas Risberg
d3c10437c4
added a concrete GenericSqlQuery class to make it possible to configure in application context (SPR-3986)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@764 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-12 04:38:56 +00:00