Commit Graph

226 Commits

Author SHA1 Message Date
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
Chris Beams adc9400905 Include license.txt and notice.txt in module JARs
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3967 50f2f4bb-b051-0410-bef5-90022cba6387
2011-02-09 06:56:40 +00:00
Chris Beams 1ac7b56caf M1 cut of environment, profiles and property work (SPR-7508)
Decomposed Environment interface into PropertySources, PropertyResolver
objects

    Environment interface and implementations are still present, but
    simpler.

    PropertySources container aggregates PropertySource objects;
    PropertyResolver provides search, conversion, placeholder
    replacement. Single implementation for now is
    PropertySourcesPlaceholderResolver

Renamed EnvironmentAwarePropertyPlaceholderConfigurer to
PropertySourcesPlaceholderConfigurer

    <context:property-placeholder/> now registers PSPC by default, else
    PPC if systemPropertiesMode* settings are involved

Refined configuration and behavior of default profiles

    See Environment interface Javadoc for details

Added Portlet implementations of relevant interfaces:

    * DefaultPortletEnvironment
    * PortletConfigPropertySource, PortletContextPropertySource
    * Integrated each appropriately throughout Portlet app contexts

Added protected 'createEnvironment()' method to AbstractApplicationContext

    Subclasses can override at will to supply a custom Environment
    implementation.  In practice throughout the framework, this is how
    Web- and Portlet-related ApplicationContexts override use of the
    DefaultEnvironment and swap in DefaultWebEnvironment or
    DefaultPortletEnvironment as appropriate.

Introduced "stub-and-replace" behavior for Servlet- and Portlet-based
PropertySource implementations

    Allows for early registration and ordering of the stub, then
    replacement with actual backing object at refresh() time.

    Added AbstractApplicationContext.initPropertySources() method to
    support stub-and-replace behavior. Called from within existing
    prepareRefresh() method so as to avoid impact with
    ApplicationContext implementations that copy and modify AAC's
    refresh() method (e.g.: Spring DM).

    Added methods to WebApplicationContextUtils and
    PortletApplicationContextUtils to support stub-and-replace behavior

Added comprehensive Javadoc for all new or modified types and members

Added XSD documentation for all new or modified elements and attributes

    Including nested <beans>, <beans profile="..."/>, and changes for
    certain attributes type from xsd:IDREF to xsd:string

Improved fix for detecting non-file based Resources in
PropertiesLoaderSupport (SPR-7547, SPR-7552)

    Technically unrelated to environment work, but grouped in with
    this changeset for convenience.

Deprecated (removed) context:property-placeholder
'system-properties-mode' attribute from spring-context-3.1.xsd

    Functionality is preserved for those using schemas up to and including
    spring-context-3.0.  For 3.1, system-properties-mode is no longer
    supported as it conflicts with the idea of managing a set of property
    sources within the context's Environment object. See Javadoc in
    PropertyPlaceholderConfigurer, AbstractPropertyPlaceholderConfigurer
    and PropertySourcesPlaceholderConfigurer for details.

Introduced CollectionUtils.toArray(Enumeration<E>, A[])

Work items remaining for 3.1 M2:

    Consider repackaging PropertySource* types; eliminate internal use
    of SystemPropertyUtils and deprecate

    Further work on composition of Environment interface; consider
    repurposing existing PlaceholderResolver interface to obviate need
    for resolve[Required]Placeholder() methods currently in Environment.

    Ensure configurability of placeholder prefix, suffix, and value
    separator when working against an AbstractPropertyResolver

    Add JNDI-based Environment / PropertySource implementatinos

    Consider support for @Profile at the @Bean level

    Provide consistent logging for the entire property resolution
    lifecycle; consider issuing all such messages against a dedicated
    logger with a single category.

    Add reference documentation to cover the featureset.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3839 50f2f4bb-b051-0410-bef5-90022cba6387
2011-01-03 09:04:34 +00:00
Sam Brannen 924b8e11ea [SPR-7850][SPR-7851] Upgraded to JUnit 4.8.1 and TestNG 5.12.1; added changelog entries for 3.1.0.M1.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3838 50f2f4bb-b051-0410-bef5-90022cba6387
2010-12-30 08:00:58 +00:00
Chris Beams 45e5b46fc2 Merge 3.1.0 development branch into trunk
Branch in question is 'env' branch from git://git.springsource.org/sandbox/cbeams.git; merged into
git-svn repository with:

    git merge -s recursive -Xtheirs --no-commit env

No merge conflicts, but did need to

    git rm spring-build

prior to committing.

With this change, Spring 3.1.0 development is now happening on SVN
trunk. Further commits to the 3.0.x line will happen in an as-yet
uncreated SVN branch.  3.1.0 snapshots will be available
per the usual nightly CI build from trunk.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3782 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-25 19:48:20 +00:00
Thomas Risberg c6ca32a5d1 added additional parameter name matching using lowercase with Locale.ENGLISH (SPR-7658)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3769 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-15 15:56:59 +00:00
Juergen Hoeller ebdb4a19fc polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3767 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-15 08:44:03 +00:00
Juergen Hoeller 43e06bfe41 revised OracleTableMetaDataProvider for reliable Oracle Connection detection; autodetect JdbcTemplate's NativeJdbcExtractor (SPR-7611)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3763 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-14 21:25:14 +00:00
Thomas Risberg abe052a3db added a SybaseAnywhereMaxValueIncrementer since syntax is slightly different than for Sybase ASE (SPR-7623)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3734 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-11 14:17:09 +00:00
Juergen Hoeller 37b8aa325b added configurable Connection/Statement/ResultSet target types to Jdbc4NativeJdbcExtractor (SPR-7613); added OracleJdbc4NativeJdbcExtractor with pre-configured Oracle JDBC API types
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3722 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-09 23:04:50 +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
Juergen Hoeller e13610b959 consistent handling of unwrap/isWrapperFor/isClosed in JDBC proxies
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3720 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-09 12:38:37 +00:00
Juergen Hoeller e1ec1914d1 polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3719 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-09 12:35:38 +00:00
Juergen Hoeller 0827d38890 ResourceDatabasePopulator throws descriptive ScriptStatementFailedException with resource details (SPR-7546)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3718 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-09 12:35:21 +00:00
Thomas Risberg 52503cfbaf added a nativeJdbcExtractor property for the TableMetaDataProvider and a method to specify the one to use for SImpleJdbcInsert (SPR-7611)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3717 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-08 18:28:01 +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
Oliver Gierke bff49b4c0d SPR-7602 - Correctly shutdown Derby >= 10.6
The shutdown mechanism for in-memory databases has changed since 10.6. We now have to trigger 'drop' instead of 'shutdown'. Besides that we can skip purging the database manually in newer versions.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3700 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-30 17:56:41 +00:00
Thomas Risberg 34cd15c631 changed the access of the "reconcileColumnsToUse" and "reconcileParameters" methods to protected (SPR-7556)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3686 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-14 15:48:03 +00:00
Juergen Hoeller cfcff0249f EmbeddedDatabaseFactory shuts down database when failing to populate it in initDatabase (SPR-7536)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3675 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-10 09:07:20 +00:00
Juergen Hoeller 80d214fd95 polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3668 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-09 08:13:49 +00:00
Thomas Risberg cd7aece559 Polished the support for looking up column values by column label (SPR-7506)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3663 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-08 18:59:28 +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 58dab3f971 DefaultLobHandler's "wrapAsLob" mode works with PostgreSQL's getAsciiStream() requirement (SPR-7487)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3628 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-01 18:09:29 +00:00
Juergen Hoeller da758771fa consistent use of JDK 1.5's ThreadLocal.remove() over ThreadLocal.set(null), preventing leaks (SPR-7441)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3627 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-01 17:17:25 +00:00
Juergen Hoeller 6567fa437b JDBC bundle uses local ClassLoader as bean ClassLoader for "sql-error-codes.xml" parsing (SPR-7497)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3625 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-01 13:46:57 +00:00
Ben Hale 82e5f5f5d6 Publishing license and notice files
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3612 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-23 13:17:31 +00:00
Arjen Poutsma 750dc01862 Prepping for 3.0.5
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3611 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-19 11:04:04 +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 4a473e7e71 fixed accidental regression with respect to newlines
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3543 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-07 18:02:51 +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 9113a54381 ignore empty statements (SPR-7363)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3540 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-07 16:52:05 +00:00
Juergen Hoeller a4d48f721c HibernateJpaDialect correctly closes borrowed connections even for nested JDBC executions (SPR-7393)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3503 50f2f4bb-b051-0410-bef5-90022cba6387
2010-07-26 12:33:37 +00:00
Arjen Poutsma 7f54fe732f Upgrading version to 3.0.4
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3428 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-15 14:18:29 +00:00
Juergen Hoeller 34a65eb61a added limit for parsed SQL cache to NamedParameterJdbcTemplate (SPR-7237); added configurable cache limit to CachingMetadataReaderFactory
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3372 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-26 19:35:06 +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
Juergen Hoeller 626d75ff61 DataSourceUtils lets timeout exceptions through even for setReadOnly calls (revised; SPR-7226)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3364 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-25 13:57:56 +00:00
Juergen Hoeller db32d52375 expect user name to be null (SPR-7228)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3363 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-21 15:59:00 +00:00
Juergen Hoeller b261d6e634 expect user name to be null (SPR-7228)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3362 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-21 15:44:10 +00:00
Juergen Hoeller 64bbbc91ff DataSourceUtils lets timeout exceptions through even for setReadOnly calls (SPR-7226)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3361 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-20 20:58:02 +00:00
Thomas Risberg 27e6aa644f fixed index test for parameter types (SPR-7199)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3332 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-14 12:52:59 +00:00
Thomas Risberg b5588049aa added null check for parameter (SPR-7193)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3322 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-12 13:26:03 +00:00
Juergen Hoeller 949d8fa9da setTransactionIsolation on JDBC Connection only called when actually necessary (for PostgreSQL; SPR-7184)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3319 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-11 13:14:53 +00:00
David Syer faa0f29f0f Update version in POMs to 3.0.3
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3246 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-15 10:26:14 +00:00
Juergen Hoeller 7efec864e9 reintroduced two-arg constructor (making STS warning disappear); always use a ResourcePatternResolver (through ResourcePatternUtils)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3212 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-01 10:31:15 +00:00
Thomas Risberg 3478dec5f0 added metadata override to NUMERIC for NUMBER columns reported as DECIMAL but with zero decimal places (SPR-6912)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3116 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-18 14:19:30 +00:00
Christian Dupuis 8385bd804e made SortedResourcesFactoryBean ResourceLoaderAware to prevent specifying the ResourceLoader in the jdbc NamespaceHandlers; prevents leaking of class loader instances in tooling
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3113 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-17 17:35:27 +00:00
Juergen Hoeller 7c2c40b516 SimpleJdbcCall's "returningResultSet" accepts any plain RowMapper now (SPR-6963)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3073 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-10 12:54:52 +00:00
Juergen Hoeller 499a4ffdeb newArg(Type)PreparedStatementSetter declares PreparedStatementSetter interface as return type (SPR-6897)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3036 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-24 14:32:22 +00:00