org.springframework.transaction.interceptor

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » spring framework 2.5 » org.springframework.transaction.interceptor 
org.springframework.transaction.interceptor
AOP-based solution for declarative transaction demarcation. Builds on the AOP infrastructure in org.springframework.aop.framework. Any POJO can be transactionally advised with Spring.

The TransactionFactoryProxyBean can be used to create transactional AOP proxies transparently to code that uses them.

The TransactionInterceptor is the AOP Alliance MethodInterceptor that delivers transactional advice, based on the Spring transaction abstraction. This allows declarative transaction management in any environment, even without JTA if an application uses only a single database.

Java Source File NameTypeComment
AbstractFallbackTransactionAttributeSource.javaClass Abstract implementation of TransactionAttributeSource that caches attributes for methods and implements a fallback policy: 1.
AttributesTransactionAttributeSource.javaClass Implementation of the TransactionAttributeSource interface that reads metadata via Spring's org.springframework.metadata.Attributes abstraction.
CompositeTransactionAttributeSource.javaClass Composite TransactionAttributeSource implementation that iterates over a given array of TransactionAttributeSource instances.
DefaultTransactionAttribute.javaClass Transaction attribute that takes the EJB approach to rolling back on runtime, but not checked, exceptions.
DelegatingTransactionAttribute.javaClass TransactionAttribute implementation that delegates all calls to a given target TransactionAttribute.
MatchAlwaysTransactionAttributeSource.javaClass Very simple implementation of TransactionAttributeSource which will always return the same TransactionAttribute for all methods fed to it.
MethodMapTransactionAttributeSource.javaClass Simple TransactionAttributeSource implementation that allows attributes to be stored per method in a Map .
NameMatchTransactionAttributeSource.javaClass Simple TransactionAttributeSource implementation that allows attributes to be matched by registered name.
NoRollbackRuleAttribute.javaClass Tag subclass of RollbackRuleAttribute that has the opposite behavior to the RollbackRuleAttribute superclass.
RollbackRuleAttribute.javaClass Rule determining whether or not a given exception (and any subclasses) should cause a rollback.
RuleBasedTransactionAttribute.javaClass TransactionAttribute implementation that works out whether a given exception should cause transaction rollback by applying a number of rollback rules, both positive and negative.
TransactionAspectSupport.javaClass Base class for transactional aspects, such as the AOP Alliance TransactionInterceptor or an AspectJ aspect.

This enables the underlying Spring transaction infrastructure to be used easily to implement an aspect for any aspect system.

Subclasses are responsible for calling methods in this class in the correct order.

If no transaction name has been specified in the TransactionAttribute, the exposed name will be the fully-qualified class name + "." + method name (by default).

Uses the Strategy design pattern.

TransactionAttribute.javaInterface This interface adds a rollbackOn specification to TransactionDefinition.
TransactionAttributeEditor.javaClass PropertyEditor for TransactionAttribute objects.
TransactionAttributeSource.javaInterface Interface used by TransactionInterceptor.
TransactionAttributeSourceAdvisor.javaClass Advisor driven by a TransactionAttributeSource, used to exclude a TransactionInterceptor from methods that are non-transactional.
TransactionAttributeSourceEditor.javaClass Property editor that converts a String into a TransactionAttributeSource . The transaction attribute string must be parseable by the TransactionAttributeEditor in this package.

Strings are in property syntax, with the form:
FQCN.methodName=<transaction attribute string>

For example:
com.mycompany.mycode.MyClass.myMethod=PROPAGATION_MANDATORY,ISOLATION_DEFAULT

NOTE: The specified class must be the one where the methods are defined; in case of implementing an interface, the interface class name.

Note: Will register all overloaded methods for a given name. Does not support explicit registration of certain overloaded methods. Supports "xxx*" mappings, e.g.

TransactionInterceptor.javaClass AOP Alliance MethodInterceptor for declarative transaction management using the common Spring transaction infrastructure ( org.springframework.transaction.PlatformTransactionManager ).
TransactionProxyFactoryBean.javaClass Proxy factory bean for simplified declarative transaction handling. This is a convenient alternative to a standard AOP org.springframework.aop.framework.ProxyFactoryBean with a separate TransactionInterceptor definition.

This class is intended to cover the typical case of declarative transaction demarcation: namely, wrapping a singleton target object with a transactional proxy, proxying all the interfaces that the target implements.

There are three main properties that need to be specified:

If the "transactionManager" property is not set explicitly and this FactoryBean is running in a ListableBeanFactory , a single matching bean of type PlatformTransactionManager will be fetched from the BeanFactory .

In contrast to TransactionInterceptor , the transaction attributes are specified as properties, with method names as keys and transaction attribute descriptors as values.

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.