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


java.lang.Object
   org.jpox.TransactionImpl

All known Subclasses:   org.jpox.JTATransactionImpl,
TransactionImpl
public class TransactionImpl implements Transaction(Code)
Implementation of a transaction for a datastore. org.jpox.Transaction
version:
   $Revision: 1.34 $


Field Summary
final protected static  LocaliserLOCALISER
     Localisation of messages.
 booleanactive
     Whether the transaction is active.
 longbeginTime
    
 booleancommitting
     Flag for whether we are currently committing.
 Setlisteners
    
protected  booleannontransactionalRead
     Whether non-tx read is enabled.
protected  booleannontransactionalWrite
     Whether non-tx write is enabled.
 ObjectManagerom
     Object Manager for this transaction.
protected  booleanoptimistic
    
 Mapoptions
    
protected  booleanrestoreValues
     Whether restoreValues is enabled.
protected  booleanretainValues
     Whether retainValues is enabled.
protected  booleanrollbackOnly
     Whether the transaction is marked for rollback.
 Synchronizationsync
     Synchronisation object, for committing and rolling back.
 org.jpox.transaction.Transactiontx
    

Constructor Summary
 TransactionImpl(ObjectManager om)
     Constructor for a transaction for the specified ObjectManager.

Method Summary
public  voidaddTransactionEventListener(TransactionEventListener listener)
    
public  voidbegin()
     Method to begin the transaction.
public  voidcommit()
     Method to commit the transaction.
public  voidend()
     Method to allow the transaction to flush any resources.
public  voidflush()
     Method to flush the transaction.
public  booleangetNontransactionalRead()
     Accessor for the nontransactionalRead flag for this transaction.
public  booleangetNontransactionalWrite()
     Accessor for the nontransactionalWrite flag for this transaction.
public  booleangetOptimistic()
    
public  MapgetOptions()
    
public  booleangetRestoreValues()
     Accessor for the restoreValues flag for this transaction.
public  booleangetRetainValues()
     Accessor for the retainValues flag for this transaction.
public  booleangetRollbackOnly()
     Accessor for the "rollback only" flag.
public  SynchronizationgetSynchronization()
     Accessor for the synchronization object to be notified on transaction completion.
protected  voidinternalBegin()
     Method to begin the transaction.
protected  voidinternalCommit()
     Internal commit, JPOX invokes it's own transaction manager implementation, if an external transaction manager is not used.
protected  voidinternalPostCommit()
     Method to perform any post-commit operations like calling the users "afterCompletion" and general clean up after the commit.
protected  voidinternalPreCommit()
     Method to perform any pre-commit operations like flushing to the datastore, calling the users "beforeCompletion", and general preparation for the commit.
protected  voidinternalPreRollback()
     Call om.preRollback() and listeners.
protected  voidinternalRollback()
     Internal rollback, JPOX invokes it's own transaction manager implementation, if an external transaction manager is not used.
public  booleanisActive()
     Accessor for whether the transaction is active.
public  booleanisCommitting()
     Accessor for whether the transaction is comitting.
public  voidremoveTransactionEventListener(TransactionEventListener listener)
    
public  voidrollback()
     Method to rollback the transaction.
public  voidsetNontransactionalRead(boolean nontransactionalRead)
     Mutator for the setting of nontransactional read.
public synchronized  voidsetNontransactionalWrite(boolean nontransactionalWrite)
     Mutator for the setting of nontransactional write.
public synchronized  voidsetOptimistic(boolean optimistic)
     Mutator for the optimistic transaction setting.
public  voidsetOption(String option, int value)
    
public  voidsetOption(String option, boolean value)
    
public  voidsetOption(String option, String value)
    
public synchronized  voidsetRestoreValues(boolean restoreValues)
     Mutator for the setting of restore values.
public synchronized  voidsetRetainValues(boolean retainValues)
     Mutator for the setting of retain values.
public  voidsetRollbackOnly()
     Mutator for the "rollback only" flag.
public synchronized  voidsetSynchronization(Synchronization sync)
     Mutator for the synchronization object to be notified on transaction completion.

Field Detail
LOCALISER
final protected static Localiser LOCALISER(Code)
Localisation of messages.



active
boolean active(Code)
Whether the transaction is active.



beginTime
long beginTime(Code)
start time of the transaction



committing
boolean committing(Code)
Flag for whether we are currently committing.



listeners
Set listeners(Code)



nontransactionalRead
protected boolean nontransactionalRead(Code)
Whether non-tx read is enabled.



nontransactionalWrite
protected boolean nontransactionalWrite(Code)
Whether non-tx write is enabled.



om
ObjectManager om(Code)
Object Manager for this transaction.



optimistic
protected boolean optimistic(Code)
Whether the transaction is optimistic



options
Map options(Code)



restoreValues
protected boolean restoreValues(Code)
Whether restoreValues is enabled.



retainValues
protected boolean retainValues(Code)
Whether retainValues is enabled.



rollbackOnly
protected boolean rollbackOnly(Code)
Whether the transaction is marked for rollback. JDO 2.0 section 13.4.5



sync
Synchronization sync(Code)
Synchronisation object, for committing and rolling back.



tx
org.jpox.transaction.Transaction tx(Code)
Underlying transaction




Constructor Detail
TransactionImpl
TransactionImpl(ObjectManager om)(Code)
Constructor for a transaction for the specified ObjectManager.
Parameters:
  om - ObjectManager.




Method Detail
addTransactionEventListener
public void addTransactionEventListener(TransactionEventListener listener)(Code)



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



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



end
public void end()(Code)
Method to allow the transaction to flush any resources.



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



getNontransactionalRead
public boolean getNontransactionalRead()(Code)
Accessor for the nontransactionalRead flag for this transaction. Whether nontransactionalRead is set.



getNontransactionalWrite
public boolean getNontransactionalWrite()(Code)
Accessor for the nontransactionalWrite flag for this transaction. Whether nontransactionalWrite is set.



getOptimistic
public boolean getOptimistic()(Code)
Accessor for the Optimistic setting Whether optimistic transactions are in operation.



getOptions
public Map getOptions()(Code)



getRestoreValues
public boolean getRestoreValues()(Code)
Accessor for the restoreValues flag for this transaction. Whether restoreValues is set.



getRetainValues
public boolean getRetainValues()(Code)
Accessor for the retainValues flag for this transaction. Whether retainValues is set.



getRollbackOnly
public boolean getRollbackOnly()(Code)
Accessor for the "rollback only" flag. The rollback only flag
since:
   1.1



getSynchronization
public Synchronization getSynchronization()(Code)
Accessor for the synchronization object to be notified on transaction completion. The synchronization instance ot be notified on transaction completion.



internalBegin
protected void internalBegin()(Code)
Method to begin the transaction.



internalCommit
protected void internalCommit()(Code)
Internal commit, JPOX invokes it's own transaction manager implementation, if an external transaction manager is not used.



internalPostCommit
protected void internalPostCommit()(Code)
Method to perform any post-commit operations like calling the users "afterCompletion" and general clean up after the commit.



internalPreCommit
protected void internalPreCommit()(Code)
Method to perform any pre-commit operations like flushing to the datastore, calling the users "beforeCompletion", and general preparation for the commit.



internalPreRollback
protected void internalPreRollback()(Code)
Call om.preRollback() and listeners.



internalRollback
protected void internalRollback()(Code)
Internal rollback, JPOX invokes it's own transaction manager implementation, if an external transaction manager is not used.



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



isCommitting
public boolean isCommitting()(Code)
Accessor for whether the transaction is comitting. Whether the transaction is committing.



removeTransactionEventListener
public void removeTransactionEventListener(TransactionEventListener listener)(Code)



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



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



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



setOptimistic
public synchronized void setOptimistic(boolean optimistic)(Code)
Mutator for the optimistic transaction setting.
Parameters:
  optimistic - The optimistic transaction setting.



setOption
public void setOption(String option, int value)(Code)



setOption
public void setOption(String option, boolean value)(Code)



setOption
public void setOption(String option, String value)(Code)



setRestoreValues
public synchronized void setRestoreValues(boolean restoreValues)(Code)
Mutator for the setting of restore values.
Parameters:
  restoreValues - Whether to restore values at commit



setRetainValues
public synchronized void setRetainValues(boolean retainValues)(Code)
Mutator for the setting of retain values.
Parameters:
  retainValues - Whether to retain values at commit



setRollbackOnly
public void setRollbackOnly()(Code)
Mutator for the "rollback only" flag. Sets the transaction as for rollback only.
since:
   1.1



setSynchronization
public synchronized void setSynchronization(Synchronization sync)(Code)
Mutator for the synchronization object to be notified on transaction completion.
Parameters:
  sync - The synchronization object to be notified on transaction completion



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.