Java Doc for J2EETransactionImpl.java in  » Database-ORM » db-ojb » org » apache » ojb » odmg » 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 » db ojb » org.apache.ojb.odmg 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.ojb.odmg.TransactionImpl
      org.apache.ojb.odmg.J2EETransactionImpl

J2EETransactionImpl
public class J2EETransactionImpl extends TransactionImpl implements Synchronization(Code)
Implementation for use in managed environments.
author:
   Matthew Baird
version:
   $Id: J2EETransactionImpl.java,v 1.25.2.7 2005/12/21 22:29:21 tomdz Exp $



Constructor Summary
public  J2EETransactionImpl(ImplementationImpl implementation)
    

Method Summary
public  voidabort()
    
public  voidafterCompletion(int status)
     FOR internal use.
public  voidbeforeCompletion()
     FOR internal use.
public  voidcheckpoint()
    
public  voidcommit()
    
public  booleanisInExternTransaction()
    
public  voidjoin()
    
public  voidleave()
    
public  voidsetInExternTransaction(boolean mode)
    


Constructor Detail
J2EETransactionImpl
public J2EETransactionImpl(ImplementationImpl implementation)(Code)




Method Detail
abort
public void abort()(Code)



afterCompletion
public void afterCompletion(int status)(Code)
FOR internal use. This method was called after the external transaction was completed.
See Also:   javax.transaction.Synchronization



beforeCompletion
public void beforeCompletion()(Code)
FOR internal use. This method was called before the external transaction was completed. This method was called by the JTA-TxManager before the JTA-tx prepare call. Within this method we prepare odmg for commit and pass all modified persistent objects to DB and release/close the used connection. We have to close the connection in this method, because the TxManager does prepare for commit after this method and all used DataSource-connections have to be closed before.
See Also:   javax.transaction.Synchronization



checkpoint
public void checkpoint()(Code)



commit
public void commit()(Code)



isInExternTransaction
public boolean isInExternTransaction()(Code)



join
public void join()(Code)



leave
public void leave()(Code)



setInExternTransaction
public void setInExternTransaction(boolean mode)(Code)



Fields inherited from org.apache.ojb.odmg.TransactionImpl
protected PersistenceBrokerInternal broker(Code)(Java Doc)
protected ObjectEnvelopeTable objectEnvelopeTable(Code)(Java Doc)

Methods inherited from org.apache.ojb.odmg.TransactionImpl
public void abort()(Code)(Java Doc)
public void afterLoading(CollectionProxyDefaultImpl colProxy)(Code)(Java Doc)
public void afterMaterialization(IndirectionHandler handler, Object materializedObject)(Code)(Java Doc)
public void beforeLoading(CollectionProxyDefaultImpl colProxy)(Code)(Java Doc)
public void beforeMaterialization(IndirectionHandler handler, Identity oid)(Code)(Java Doc)
public synchronized void begin()(Code)(Java Doc)
protected boolean cascadeDeleteFor(ObjectReferenceDescriptor ord)(Code)(Java Doc)
protected void checkForBegin()(Code)(Java Doc)
protected void checkForCommit()(Code)(Java Doc)
public void checkpoint()(Code)(Java Doc)
protected void cleanupBroker()(Code)(Java Doc)
public void clearRegistrationList()(Code)(Java Doc)
public void commit()(Code)(Java Doc)
public void configure(Configuration config) throws ConfigurationException(Code)(Java Doc)
public void deletePersistent(RuntimeObject rt)(Code)(Java Doc)
protected synchronized void doAbort()(Code)(Java Doc)
protected synchronized void doClose()(Code)(Java Doc)
void doSingleLock(ClassDescriptor cld, Object obj, Identity oid, int lockMode) throws LockNotGrantedException(Code)(Java Doc)
void doSingleRegister(RuntimeObject rtObject, int lockMode) throws LockNotGrantedException, PersistenceBrokerException(Code)(Java Doc)
protected synchronized void doWriteObjects(boolean isFlush) throws TransactionAbortedException, LockNotGrantedException(Code)(Java Doc)
public void flush()(Code)(Java Doc)
public DatabaseImpl getAssociatedDatabase()(Code)(Java Doc)
public PersistenceBroker getBroker()(Code)(Java Doc)
public PersistenceBrokerInternal getBrokerInternal()(Code)(Java Doc)
public String getGUID()(Code)(Java Doc)
public ImplementationImpl getImplementation()(Code)(Java Doc)
int getImpliciteLockType(int parentLockMode)(Code)(Java Doc)
public NamedRootsMap getNamedRootsMap()(Code)(Java Doc)
public Object getObjectByIdentity(Identity id) throws PersistenceBrokerException(Code)(Java Doc)
public ArrayList getRegistrationList()(Code)(Java Doc)
protected int getStatus()(Code)(Java Doc)
protected boolean hasBroker()(Code)(Java Doc)
public boolean isDeleted(Identity id)(Code)(Java Doc)
public boolean isImplicitLocking()(Code)(Java Doc)
public boolean isOpen()(Code)(Java Doc)
public boolean isOrdering()(Code)(Java Doc)
protected boolean isTransient(ClassDescriptor cld, Object obj, Identity oid)(Code)(Java Doc)
public void join()(Code)(Java Doc)
public void leave()(Code)(Java Doc)
public void lock(Object obj, int lockMode) throws LockNotGrantedException(Code)(Java Doc)
public void lockAndRegister(RuntimeObject rtObject, int lockMode, List registeredObjects)(Code)(Java Doc)
public synchronized void lockAndRegister(RuntimeObject rtObject, int lockMode, boolean cascade, List registeredObjects)(Code)(Java Doc)
void makePersistent(RuntimeObject rt)(Code)(Java Doc)
public void markDelete(Object anObject)(Code)(Java Doc)
public void markDirty(Object anObject)(Code)(Java Doc)
void markDirty(RuntimeObject rt)(Code)(Java Doc)
void markPersistent(RuntimeObject rtObj)(Code)(Java Doc)
protected void performTransactionAwareAfterCommit()(Code)(Java Doc)
protected void performTransactionAwareAfterRollback()(Code)(Java Doc)
protected void performTransactionAwareBeforeCommit()(Code)(Java Doc)
protected void performTransactionAwareBeforeRollback()(Code)(Java Doc)
protected void prepareCommit() throws TransactionAbortedException, LockNotGrantedException(Code)(Java Doc)
protected void refresh()(Code)(Java Doc)
protected synchronized void registerToIndirectionHandler(IndirectionHandler handler)(Code)(Java Doc)
protected void registerUnmaterializedLocks(Object obj)(Code)(Java Doc)
public void setCascadingDelete(Class target, String referenceField, boolean doCascade)(Code)(Java Doc)
public void setCascadingDelete(Class target, boolean doCascade)(Code)(Java Doc)
public synchronized void setImplicitLocking(boolean value)(Code)(Java Doc)
public void setOrdering(boolean ordering)(Code)(Java Doc)
protected void setStatus(int status)(Code)(Java Doc)
public boolean tryLock(Object obj, int lockMode)(Code)(Java Doc)
protected synchronized void unRegisterFromAllCollectionProxies()(Code)(Java Doc)
protected synchronized void unRegisterFromAllIndirectionHandlers()(Code)(Java Doc)
protected synchronized void unregisterFromCollectionProxy(CollectionProxy handler)(Code)(Java Doc)
protected synchronized void unregisterFromIndirectionHandler(IndirectionHandler handler)(Code)(Java Doc)

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.