Java Doc for JEntitySwitchCRC.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas_ejb » container » 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 » JOnAS 4.8.6 » org.objectweb.jonas_ejb.container 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jonas_ejb.container.JEntitySwitch
      org.objectweb.jonas_ejb.container.JEntitySwitchCRC

JEntitySwitchCRC
public class JEntitySwitchCRC extends JEntitySwitch (Code)
Container read committed lock policy. transactions are serialized by the container. Accesses outside transaction read committed state.
author:
   Philippe Durieux


Field Summary
protected  JEntityContextihContext
    
protected  JEntityContextitContext
    

Constructor Summary
public  JEntitySwitchCRC()
     empty constructor.

Method Summary
public synchronized  voidendIH()
    
protected  JEntityContextgetContext4Tx(Transaction tx)
    
public  intgetState()
     State of this instance.
protected  voidinitpolicy(JEntityFactory bf)
    
public synchronized  intpassivateIH(boolean store, boolean passivate)
    
protected  voidremoveContext4Tx(Transaction tx)
    
protected  voidsetContext4Tx(Transaction tx, JEntityContext ctx)
    
public  voidwaitmyturn(Transaction tx)
    

Field Detail
ihContext
protected JEntityContext ihContext(Code)
EntityContext for non-transacted requests



itContext
protected JEntityContext itContext(Code)
EntityContext for transacted requests




Constructor Detail
JEntitySwitchCRC
public JEntitySwitchCRC()(Code)
empty constructor. Object is initialized via init() because it is implemented differently according to jorm mappers.




Method Detail
endIH
public synchronized void endIH()(Code)



getContext4Tx
protected JEntityContext getContext4Tx(Transaction tx)(Code)



getState
public int getState()(Code)
State of this instance. State values are 0=in-tx, 1=out-tx, 2=idle,3=passive, 4=removed. we don't synchronize this method to avoidjadmin blocks



initpolicy
protected void initpolicy(JEntityFactory bf)(Code)



passivateIH
public synchronized int passivateIH(boolean store, boolean passivate)(Code)
try to passivate instances
Parameters:
  store - not used for this policy
Parameters:
  passivate - always true for this policy result of operation: (not really used here)ALL_DONE = instances passivatedNOT_DONE = not all passivated



removeContext4Tx
protected void removeContext4Tx(Transaction tx)(Code)



setContext4Tx
protected void setContext4Tx(Transaction tx, JEntityContext ctx)(Code)

Parameters:
  tx - The Transaction
Parameters:
  the - JEntityContext used for this tx



waitmyturn
public void waitmyturn(Transaction tx)(Code)



Fields inherited from org.objectweb.jonas_ejb.container.JEntitySwitch
final static int ALL_DONE(Code)(Java Doc)
final protected static long FEW_SECONDS(Code)(Java Doc)
final static int NOT_DONE(Code)(Java Doc)
final static int STORED(Code)(Java Doc)
protected JEntityFactory bf(Code)(Java Doc)
protected ArrayList blockedtx(Code)(Java Doc)
protected int countIH(Code)(Java Doc)
protected int countIT(Code)(Java Doc)
protected static int counter(Code)(Java Doc)
protected long deadlockTimeout(Code)(Java Doc)
protected long estimestamp(Code)(Java Doc)
protected String ident(Code)(Java Doc)
protected boolean inDirtyList(Code)(Java Doc)
protected long inactivityTimeout(Code)(Java Doc)
protected boolean isdetached(Code)(Java Doc)
protected boolean isremoved(Code)(Java Doc)
protected boolean lazyregister(Code)(Java Doc)
protected JEntityLocal local(Code)(Java Doc)
protected int lockpolicy(Code)(Java Doc)
protected boolean mustReload(Code)(Java Doc)
protected boolean mustStore(Code)(Java Doc)
protected TimerService myTimerService(Code)(Java Doc)
protected Object pk(Code)(Java Doc)
protected long readTimeout(Code)(Java Doc)
protected boolean reentrant(Code)(Java Doc)
protected JEntityRemote remote(Code)(Java Doc)
protected Transaction runningtx(Code)(Java Doc)
protected boolean shared(Code)(Java Doc)
protected boolean todiscard(Code)(Java Doc)
protected boolean txUpdates(Code)(Java Doc)
protected int waiters(Code)(Java Doc)
protected Transaction writingtx(Code)(Java Doc)

Methods inherited from org.objectweb.jonas_ejb.container.JEntitySwitch
public void bindICtx(Transaction tx, JEntityContext bctx)(Code)(Java Doc)
protected void detachPk()(Code)(Java Doc)
protected void discardContext(Transaction tx, boolean forgetpk, boolean pool)(Code)(Java Doc)
abstract public void endIH()(Code)(Java Doc)
public synchronized void forceDiscardICtx(Transaction tx)(Code)(Java Doc)
public JFactory getBeanFactory()(Code)(Java Doc)
public Transaction getBlockingTx(Transaction testedtx)(Code)(Java Doc)
abstract JEntityContext getContext4Tx(Transaction tx)(Code)(Java Doc)
public TimerService getEntityTimerService()(Code)(Java Doc)
public JEntityContext getICtx(Transaction tx, JEntityContext newctx)(Code)(Java Doc)
public JEntityContext getICtx(Transaction tx, boolean checkr)(Code)(Java Doc)
public JEntityLocal getLocal()(Code)(Java Doc)
public int getPolicy()(Code)(Java Doc)
public Object getPrimaryKey()(Code)(Java Doc)
public JEntityRemote getRemote()(Code)(Java Doc)
abstract public int getState()(Code)(Java Doc)
public void init(JEntityFactory bf, Object pk)(Code)(Java Doc)
abstract protected void initpolicy(JEntityFactory bf)(Code)(Java Doc)
public boolean lazyRegistering()(Code)(Java Doc)
public synchronized JEntityContext mapICtx(Transaction tx, JEntityContext bctx, boolean forced, boolean holdit, boolean checkreentrance)(Code)(Java Doc)
public void notifyTimeout(Timer timer)(Code)(Java Doc)
public synchronized void notifyWriting(Transaction tx, JEntityContext bctx)(Code)(Java Doc)
abstract public int passivateIH(boolean store, boolean passivate)(Code)(Java Doc)
protected void registerCtx(Transaction tx, JEntityContext bctx)(Code)(Java Doc)
public synchronized void releaseICtx(Transaction tx, boolean discard)(Code)(Java Doc)
abstract void removeContext4Tx(Transaction tx)(Code)(Java Doc)
abstract void setContext4Tx(Transaction tx, JEntityContext ctx)(Code)(Java Doc)
public synchronized boolean terminate(Transaction tx)(Code)(Java Doc)
public synchronized boolean tryBindICtx(Transaction tx, JEntityContext bctx, boolean simple) throws ObjectNotFoundException(Code)(Java Doc)
public synchronized void txCompleted(Transaction tx, boolean committed)(Code)(Java Doc)
abstract void waitmyturn(Transaction tx)(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.