Java Doc for DefaultTransactionDefinition.java in  » J2EE » spring-framework-2.0.6 » org » springframework » transaction » support » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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.0.6 » org.springframework.transaction.support 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.transaction.support.DefaultTransactionDefinition

All known Subclasses:   org.springframework.transaction.support.TransactionTemplate,  org.springframework.transaction.interceptor.DefaultTransactionAttribute,
DefaultTransactionDefinition
public class DefaultTransactionDefinition implements TransactionDefinition,Serializable(Code)
Default implementation of the TransactionDefinition interface, offering bean-style configuration and sensible default values (PROPAGATION_REQUIRED, ISOLATION_DEFAULT, TIMEOUT_DEFAULT, readOnly=false).

Base class for both TransactionTemplate and DefaultTransactionAttribute.
author:
   Juergen Hoeller
since:
   08.05.2003
See Also:   org.springframework.transaction.support.TransactionTemplate
See Also:   org.springframework.transaction.interceptor.DefaultTransactionAttribute



Field Summary
final public static  StringPREFIX_ISOLATION
    
final public static  StringPREFIX_PROPAGATION
    
final public static  StringPREFIX_TIMEOUT
    
final public static  StringREAD_ONLY_MARKER
    

Constructor Summary
public  DefaultTransactionDefinition()
     Create a new DefaultTransactionDefinition, with default settings.
public  DefaultTransactionDefinition(TransactionDefinition other)
     Copy constructor.
public  DefaultTransactionDefinition(int propagationBehavior)
     Create a new DefaultTransactionDefinition with the the given propagation behavior.

Method Summary
public  booleanequals(Object other)
     This implementation compares the toString() results.
final protected  StringBuffergetDefinitionDescription()
     Return an identifying description for this transaction definition.
final public  intgetIsolationLevel()
    
final public  StringgetName()
    
final public  intgetPropagationBehavior()
    
final public  intgetTimeout()
    
public  inthashCode()
     This implementation returns toString()'s hash code.
final public  booleanisReadOnly()
    
final public  voidsetIsolationLevel(int isolationLevel)
     Set the isolation level.
final public  voidsetIsolationLevelName(String constantName)
     Set the isolation level by the name of the corresponding constant in TransactionDefinition, e.g.
final public  voidsetName(String name)
     Set the name of this transaction.
final public  voidsetPropagationBehavior(int propagationBehavior)
     Set the propagation behavior.
final public  voidsetPropagationBehaviorName(String constantName)
     Set the propagation behavior by the name of the corresponding constant in TransactionDefinition, e.g.
final public  voidsetReadOnly(boolean readOnly)
     Set whether to optimize as read-only transaction.
final public  voidsetTimeout(int timeout)
     Set the timeout to apply, as number of seconds.
public  StringtoString()
     Return an identifying description for this transaction definition.

The format matches the one used by org.springframework.transaction.interceptor.TransactionAttributeEditor , to be able to feed toString results into bean properties of type org.springframework.transaction.interceptor.TransactionAttribute .

Has to be overridden in subclasses for correct equals and hashCode behavior.


Field Detail
PREFIX_ISOLATION
final public static String PREFIX_ISOLATION(Code)
Prefix for the isolation constants defined in TransactionDefinition



PREFIX_PROPAGATION
final public static String PREFIX_PROPAGATION(Code)
Prefix for the propagation constants defined in TransactionDefinition



PREFIX_TIMEOUT
final public static String PREFIX_TIMEOUT(Code)
Prefix for transaction timeout values in description strings



READ_ONLY_MARKER
final public static String READ_ONLY_MARKER(Code)
Marker for read-only transactions in description strings




Constructor Detail
DefaultTransactionDefinition
public DefaultTransactionDefinition()(Code)
Create a new DefaultTransactionDefinition, with default settings. Can be modified through bean property setters.
See Also:   DefaultTransactionDefinition.setPropagationBehavior
See Also:   DefaultTransactionDefinition.setIsolationLevel
See Also:   DefaultTransactionDefinition.setTimeout
See Also:   DefaultTransactionDefinition.setReadOnly
See Also:   DefaultTransactionDefinition.setName



DefaultTransactionDefinition
public DefaultTransactionDefinition(TransactionDefinition other)(Code)
Copy constructor. Definition can be modified through bean property setters.
See Also:   DefaultTransactionDefinition.setPropagationBehavior
See Also:   DefaultTransactionDefinition.setIsolationLevel
See Also:   DefaultTransactionDefinition.setTimeout
See Also:   DefaultTransactionDefinition.setReadOnly
See Also:   DefaultTransactionDefinition.setName



DefaultTransactionDefinition
public DefaultTransactionDefinition(int propagationBehavior)(Code)
Create a new DefaultTransactionDefinition with the the given propagation behavior. Can be modified through bean property setters.
Parameters:
  propagationBehavior - one of the propagation constants in theTransactionDefinition interface
See Also:   DefaultTransactionDefinition.setIsolationLevel
See Also:   DefaultTransactionDefinition.setTimeout
See Also:   DefaultTransactionDefinition.setReadOnly




Method Detail
equals
public boolean equals(Object other)(Code)
This implementation compares the toString() results.
See Also:   DefaultTransactionDefinition.toString()



getDefinitionDescription
final protected StringBuffer getDefinitionDescription()(Code)
Return an identifying description for this transaction definition.

Available to subclasses, for inclusion in their toString() result.




getIsolationLevel
final public int getIsolationLevel()(Code)



getName
final public String getName()(Code)



getPropagationBehavior
final public int getPropagationBehavior()(Code)



getTimeout
final public int getTimeout()(Code)



hashCode
public int hashCode()(Code)
This implementation returns toString()'s hash code.
See Also:   DefaultTransactionDefinition.toString()



isReadOnly
final public boolean isReadOnly()(Code)



setIsolationLevel
final public void setIsolationLevel(int isolationLevel)(Code)
Set the isolation level. Must be one of the isolation constants in the TransactionDefinition interface. Default is ISOLATION_DEFAULT.
exception:
  IllegalArgumentException - if the supplied value is notone of the ISOLATION_ constants
See Also:   DefaultTransactionDefinition.ISOLATION_DEFAULT



setIsolationLevelName
final public void setIsolationLevelName(String constantName) throws IllegalArgumentException(Code)
Set the isolation level by the name of the corresponding constant in TransactionDefinition, e.g. "ISOLATION_DEFAULT".
Parameters:
  constantName - name of the constant
exception:
  IllegalArgumentException - if the supplied value is not resolvableto one of the ISOLATION_ constants or is null
See Also:   DefaultTransactionDefinition.setIsolationLevel
See Also:   DefaultTransactionDefinition.ISOLATION_DEFAULT



setName
final public void setName(String name)(Code)
Set the name of this transaction. Default is none.

This will be used as transaction name to be shown in a transaction monitor, if applicable (for example, WebLogic's).




setPropagationBehavior
final public void setPropagationBehavior(int propagationBehavior)(Code)
Set the propagation behavior. Must be one of the propagation constants in the TransactionDefinition interface. Default is PROPAGATION_REQUIRED.
exception:
  IllegalArgumentException - if the supplied value is notone of the PROPAGATION_ constants
See Also:   DefaultTransactionDefinition.PROPAGATION_REQUIRED



setPropagationBehaviorName
final public void setPropagationBehaviorName(String constantName) throws IllegalArgumentException(Code)
Set the propagation behavior by the name of the corresponding constant in TransactionDefinition, e.g. "PROPAGATION_REQUIRED".
Parameters:
  constantName - name of the constant
exception:
  IllegalArgumentException - if the supplied value is not resolvableto one of the PROPAGATION_ constants or is null
See Also:   DefaultTransactionDefinition.setPropagationBehavior
See Also:   DefaultTransactionDefinition.PROPAGATION_REQUIRED



setReadOnly
final public void setReadOnly(boolean readOnly)(Code)
Set whether to optimize as read-only transaction. Default is "false".



setTimeout
final public void setTimeout(int timeout)(Code)
Set the timeout to apply, as number of seconds. Default is TIMEOUT_DEFAULT (-1).
See Also:   DefaultTransactionDefinition.TIMEOUT_DEFAULT



toString
public String toString()(Code)
Return an identifying description for this transaction definition.

The format matches the one used by org.springframework.transaction.interceptor.TransactionAttributeEditor , to be able to feed toString results into bean properties of type org.springframework.transaction.interceptor.TransactionAttribute .

Has to be overridden in subclasses for correct equals and hashCode behavior. Alternatively, DefaultTransactionDefinition.equals and DefaultTransactionDefinition.hashCode can be overridden themselves.
See Also:   DefaultTransactionDefinition.getDefinitionDescription()
See Also:   org.springframework.transaction.interceptor.TransactionAttributeEditor




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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