From: Juergen H. <jho...@us...> - 2008-10-16 19:28:26
|
Update of /cvsroot/springframework/spring In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24906 Modified Files: changelog.txt Log Message: SQL exception translation, etc Index: changelog.txt =================================================================== RCS file: /cvsroot/springframework/spring/changelog.txt,v retrieving revision 1.735 retrieving revision 1.736 diff -C2 -d -r1.735 -r1.736 *** changelog.txt 8 Oct 2008 16:34:04 -0000 1.735 --- changelog.txt 16 Oct 2008 19:28:11 -0000 1.736 *************** *** 4,8 **** ! Changes in version 2.5.6 (2008-10-13) ------------------------------------- --- 4,8 ---- ! Changes in version 2.5.6 (2008-10-20) ------------------------------------- *************** *** 27,30 **** --- 27,32 ---- * AbstractFactoryBean's early singleton proxy handles equals, hashCode and toString calls locally (avoiding eager init) * PropertyPathFactoryBean logs a warning if the target bean is still in creation at the time of obtaining the property + * exposed public "copyRegisteredEditorsTo" method on ConfigurableBeanFactory interface + * fixed corner case in AbstractBeanDefinition where a ClassCastException could arise in "getBeanClass(Name)" * DefaultSingletonBeanRegistry eagerly cleans up cached dependency information when destroying a bean * AbstractBeanFactory rejects getBean request with arguments in case of a pre-existing singleton of same name as well *************** *** 33,36 **** --- 35,39 ---- * ServiceLocatorFactoryBean handles equals and hashCode based on proxy object identity * factored out "createBeanDefinition" template method in BeanDefinitionParserDelegate + * turned visibility of BeanDefinitionParserDelegate's "checkNameUniqueness" method to protected * XML list/set/map elements (in both the beans and the util namespace) support nested description element *************** *** 60,63 **** --- 63,72 ---- Package org.springframework.jdbc * SQLErrorCodesFactory always loads its "sql-error-codes.xml" files from Spring's class loader (-> static singleton) + * added "transientDataAccessResourceCodes" category to "sql-error-codes.xml", with default codes for DB2 and Sybase + * SQLErrorCodeSQLExceptionTranslator applies default SQLExceptionSubclassTranslator after error code translation only + * SQLErrorCodeSQLExceptionTranslator is able to work without fallback SQLState translation as well + * SQLExceptionSubclassTranslator translates SQLFeatureNotSupportedException to InvalidDataAccessApiUsageException + * SQLStateSQLExceptionTranslator returns TransientDataAccessResourceException for well-known vendor-specific SQL states + * factored out AbstractFallbackSQLExceptionTranslator base class for consistent "fallbackTranslator" capabilities * CallableStatementCreatorFactory strictly honors "SqlParameter.isInputValueProvided" (allowing for statement caching) * JdbcTemplate passes full Calendar argument to JDBC driver even in case of no SQL type specified *************** *** 77,80 **** --- 86,92 ---- * AbstractJmsListeningContainer eagerly clears shared JMS Connection after releasing, avoiding repeated close exceptions * revised DefaultMessageListenerContainer to correctly work with non-JMS transaction manager and CACHE_CONNECTION level + * DefaultMessageListenerContainer supports a stop notification callback for unlimited maxMessagesPerTask as well now + * introduced SubscriptionNameProvider interface for message listener objects suggesting default subscription names + * "jms:listener-container" uses actual message listener object's class name as default subscription name Package org.springframework.jmx *************** *** 93,96 **** --- 105,109 ---- * HibernateTemplate detects Spring-managed transactional Session even with SessionFactory proxy and allowCreate=false * HibernateTemplate's "loadAll" operation selects distinct root entities (avoiding duplicate entries in result list) + * HibernateTemplate translates Hibernate's DataException into a Spring DataIntegrityViolationException (for consistency) * added "packagesToScan" property to Hibernate AnnotationSessionFactoryBean, for autodetection of @Entity classes * added "persistenceXmlLocation" property to DefaultPersistenceUnitManager, as alternative to "persistenceXmlLocations" *************** *** 113,116 **** --- 126,130 ---- Package org.springframework.transaction * AbstractPlatformTransactionManager resumes after any kind of inner begin failure (not just after TransactionException) + * TransactionSynchronizationManager interaction gets logged at trace level only (minimizing debug log per transaction) Package org.springframework.util *************** *** 135,138 **** --- 149,153 ---- * InternalResourceView's "preventDispatchLoop" checks against the same request's URI only (for Portlet compatibility) * made RedirectView's "renderMergedOutputModel" implementation non-final + * VelocityConfigurer exposes ServletContext as VelocityEngine attribute (analogous to the standard VelocityViewServlet) * revised XsltView to specify full resource URI as StreamSource system id, for properly resolving relative paths * officially deprecated AbstractXsltView in favor of XsltView and its more flexible "locateSource" mechanism |