Java Doc for JDOTransaction.java in  » Database-ORM » JPOX » org » jpox » jdo » 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 » Database ORM » JPOX » org.jpox.jdo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jpox.jdo.JDOTransaction

JDOTransaction
public class JDOTransaction implements Transaction(Code)
Wrapper for the transaction for use by JDO.
version:
   $Revision: 1.5 $


Field Summary
 PersistenceManagerpm
     JDO PersistenceManager.
 org.jpox.Transactiontx
    

Constructor Summary
public  JDOTransaction(PersistenceManager pm, org.jpox.Transaction tx)
    

Method Summary
protected  voidassertNotCommitting()
     Throw an Exception if the underlying transaction is currently committing.
protected  voidassertNotInUse()
     Asserts that the transaction is not in use.
public  voidbegin()
     Method to start the transaction.
public  voidcommit()
     Method to commit the transaction.
public  booleangetNontransactionalRead()
    
public  booleangetNontransactionalWrite()
    
public  booleangetOptimistic()
    
public  PersistenceManagergetPersistenceManager()
    
public  booleangetRestoreValues()
    
public  booleangetRetainValues()
    
public  booleangetRollbackOnly()
    
public  SynchronizationgetSynchronization()
    
public  booleanisActive()
    
public  voidrollback()
    
public  voidsetNontransactionalRead(boolean flag)
    
public  voidsetNontransactionalWrite(boolean flag)
    
public  voidsetOptimistic(boolean opt)
    
public  voidsetOption(String option, int value)
     Convenience accessor for setting a transaction option.
public  voidsetOption(String option, boolean value)
     Convenience accessor for setting a transaction option.
public  voidsetOption(String option, String value)
     Convenience accessor for setting a transaction option.
public  voidsetRestoreValues(boolean restore)
    
public  voidsetRetainValues(boolean retain)
    
public  voidsetRollbackOnly()
    
public  voidsetSynchronization(Synchronization synch)
    

Field Detail
pm
PersistenceManager pm(Code)
JDO PersistenceManager.



tx
org.jpox.Transaction tx(Code)
The underlying transaction




Constructor Detail
JDOTransaction
public JDOTransaction(PersistenceManager pm, org.jpox.Transaction tx)(Code)
Constructor
Parameters:
  pm - The JDO PersistenceManager
Parameters:
  tx - The real transaction




Method Detail
assertNotCommitting
protected void assertNotCommitting()(Code)
Throw an Exception if the underlying transaction is currently committing.



assertNotInUse
protected void assertNotInUse()(Code)
Asserts that the transaction is not in use.



begin
public void begin()(Code)
Method to start the transaction.



commit
public void commit()(Code)
Method to commit the transaction.



getNontransactionalRead
public boolean getNontransactionalRead()(Code)
Accessor for nontransactionalRead setting The setting for nontransactionalRead



getNontransactionalWrite
public boolean getNontransactionalWrite()(Code)
Accessor for nontransactionalWrite setting The setting for nontransactionalWrite



getOptimistic
public boolean getOptimistic()(Code)
Accessor for optimistic setting The setting for optimistic



getPersistenceManager
public PersistenceManager getPersistenceManager()(Code)
Accessor for the JDO PersistenceManager The JDO PM



getRestoreValues
public boolean getRestoreValues()(Code)
Accessor for restoreValues setting The setting for restoreValues



getRetainValues
public boolean getRetainValues()(Code)
Accessor for retainValues setting The setting for retainValues



getRollbackOnly
public boolean getRollbackOnly()(Code)
Accessor for whether to allow rollback only Whether to allow rollback only



getSynchronization
public Synchronization getSynchronization()(Code)
Accessor for the synchronization (if any) The synchronization



isActive
public boolean isActive()(Code)
Accessor for whether the transaction is active Whether it is active



rollback
public void rollback()(Code)
Method to rollback the transaction



setNontransactionalRead
public void setNontransactionalRead(boolean flag)(Code)
Mutator for the nontransactionalRead setting
Parameters:
  flag - Whether to allow nontransactional read



setNontransactionalWrite
public void setNontransactionalWrite(boolean flag)(Code)
Mutator for the nontransactionalWrite setting
Parameters:
  flag - Whether to allow nontransactional write



setOptimistic
public void setOptimistic(boolean opt)(Code)
Mutator for the optimistic setting
Parameters:
  opt - Whether to use optimistic transactions



setOption
public void setOption(String option, int value)(Code)
Convenience accessor for setting a transaction option.
Parameters:
  option - option name
Parameters:
  value - The value



setOption
public void setOption(String option, boolean value)(Code)
Convenience accessor for setting a transaction option.
Parameters:
  option - option name
Parameters:
  value - The value



setOption
public void setOption(String option, String value)(Code)
Convenience accessor for setting a transaction option.
Parameters:
  option - option name
Parameters:
  value - The value



setRestoreValues
public void setRestoreValues(boolean restore)(Code)
Mutator for the restore values setting
Parameters:
  restore - Whether to restore values



setRetainValues
public void setRetainValues(boolean retain)(Code)
Mutator for the retain values setting
Parameters:
  retain - Whether to retain values after commit



setRollbackOnly
public void setRollbackOnly()(Code)
Mutator for the rollback-only setting



setSynchronization
public void setSynchronization(Synchronization synch)(Code)
Mutator for the Synchronisation
Parameters:
  synch - The Synchronisation



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.