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


org.objectweb.jonas_ejb.container.JEntityFactory
   org.objectweb.jonas_ejb.container.jorm.JormFactory

All known Subclasses:   org.objectweb.jonas_ejb.container.jorm.MedorFactory,
JormFactory
abstract public class JormFactory extends JEntityFactory implements PClassMapping,PClassMappingCtrl(Code)
This class is an extension of the JEntityFactory class. It initializes the persitant class (the bean) in the jorm mapper. This class is abstract in order to be extended by the PClassMapping generated for the Bean.
author:
   Sebastien Chassande-Barrioz


Field Summary
protected  EntityCmp2Descecd
    
protected  booleanmapped
    
protected  PMappermapper
    
protected  intrelNonInit
    

Constructor Summary
public  JormFactory()
    

Method Summary
public  voidconfigurePnc(String n, PNamingContext pnc, JormFactory target, boolean isMultiple)
     It assignes the PNamingContext which manages a relation.
protected  org.objectweb.jonas_ejb.container.JEntityContextcreateNewContext(EntityBean bean)
     This method is overrided in order to specify the JEntityContext class which must be instanciated.
public  SerializabledecodePK(Serializable strpk)
    
public  SerializableencodePK(Serializable pk)
    
abstract public  ObjectgetConnection(Object hints)
    
public  JEntitySwitchgetJEntitySwitch()
    
public  PMappergetMapper()
    
public  voidinit(EntityDesc ed, JContainer c, String mapperName)
     Initialization of the factory.
abstract protected  voidinitGenClassPrefetch(PClassMapping gcm, PClassMapping targetPCM)
     It initializes the prefetching of a genclassMapping with the PClassMapping of the target class of the multivalued CMR.
protected  PClassMappingnewGCMInstance(String mapperName)
    
abstract public  voidreleaseConnection(Object conn)
    
abstract protected  voidsetMapper(String mapperName)
    
public  voidstop()
    

Field Detail
ecd
protected EntityCmp2Desc ecd(Code)



mapped
protected boolean mapped(Code)



mapper
protected PMapper mapper(Code)



relNonInit
protected int relNonInit(Code)




Constructor Detail
JormFactory
public JormFactory()(Code)
constructor




Method Detail
configurePnc
public void configurePnc(String n, PNamingContext pnc, JormFactory target, boolean isMultiple) throws PException(Code)
It assignes the PNamingContext which manages a relation.
Parameters:
  n -
Parameters:
  pnc -
Parameters:
  isMultiple -



createNewContext
protected org.objectweb.jonas_ejb.container.JEntityContext createNewContext(EntityBean bean)(Code)
This method is overrided in order to specify the JEntityContext class which must be instanciated. Create a new instance of the bean and its EntityContext In case of CMP, the bean class is derived to manage entity persistence.



decodePK
public Serializable decodePK(Serializable strpk)(Code)
Decode String to a PName PName matching the String



encodePK
public Serializable encodePK(Serializable pk)(Code)
Encode PK in case of CMP2 String representation of the PName



getConnection
abstract public Object getConnection(Object hints) throws PException(Code)



getJEntitySwitch
public JEntitySwitch getJEntitySwitch()(Code)



getMapper
public PMapper getMapper()(Code)
mapper



init
public void init(EntityDesc ed, JContainer c, String mapperName)(Code)
Initialization of the factory. This is called just after the newInstance() from the JContainer (addBean method)



initGenClassPrefetch
abstract protected void initGenClassPrefetch(PClassMapping gcm, PClassMapping targetPCM)(Code)
It initializes the prefetching of a genclassMapping with the PClassMapping of the target class of the multivalued CMR.
Parameters:
  gcm - is the GenClassMapping to initialized
Parameters:
  targetPCM - is the PClassMapping of the target class



newGCMInstance
protected PClassMapping newGCMInstance(String mapperName) throws Exception(Code)
Create a GenClassMapping
Parameters:
  mapperName - name of the mapper



releaseConnection
abstract public void releaseConnection(Object conn) throws PException(Code)



setMapper
abstract protected void setMapper(String mapperName) throws PException(Code)



stop
public void stop()(Code)



Fields inherited from org.objectweb.jonas_ejb.container.JEntityFactory
protected List bctxlist(Code)(Java Doc)
protected boolean cmp2(Code)(Java Doc)
protected Object datasource(Code)(Java Doc)
protected boolean hardLimit(Code)(Java Doc)
protected JEntityHome home(Code)(Java Doc)
protected int instanceCount(Code)(Java Doc)
protected JEntityLocalHome localhome(Code)(Java Doc)
protected int lockPolicy(Code)(Java Doc)
protected boolean prefetch(Code)(Java Doc)
protected int readTimeout(Code)(Java Doc)
protected boolean reentrant(Code)(Java Doc)
protected boolean shared(Code)(Java Doc)
protected HashMap txlist(Code)(Java Doc)

Methods inherited from org.objectweb.jonas_ejb.container.JEntityFactory
public synchronized void bindEJB(Object pk, JEntitySwitch bs)(Code)(Java Doc)
public int calculateAutomaticPk()(Code)(Java Doc)
public void checkTransaction(RequestCtx rctx)(Code)(Java Doc)
protected JEntityContext createNewContext(EntityBean bean)(Code)(Java Doc)
protected JEntityContext createNewInstance(JEntitySwitch es) throws Exception(Code)(Java Doc)
public Timer createTimer(long arg0, Serializable arg1) throws IllegalArgumentException, IllegalStateException, EJBException(Code)(Java Doc)
public Timer createTimer(long arg0, long arg1, Serializable arg2) throws IllegalArgumentException, IllegalStateException, EJBException(Code)(Java Doc)
public Timer createTimer(Date arg0, Serializable arg1) throws IllegalArgumentException, IllegalStateException, EJBException(Code)(Java Doc)
public Timer createTimer(Date arg0, long arg1, Serializable arg2) throws IllegalArgumentException, IllegalStateException, EJBException(Code)(Java Doc)
public Serializable decodePK(Serializable strpk)(Code)(Java Doc)
public boolean dirtyInstances()(Code)(Java Doc)
public void dummyFinderException(boolean dummy) throws FinderException(Code)(Java Doc)
public Serializable encodePK(Serializable pk)(Code)(Java Doc)
public synchronized JEntitySwitch existEJB(Object pk, JEntitySwitch bs)(Code)(Java Doc)
public int getCacheSize()(Code)(Java Doc)
public int getCurrentWaiters()(Code)(Java Doc)
public Object getDataSource()(Code)(Java Doc)
public int getDeadlockTimeout()(Code)(Java Doc)
public synchronized JEntitySwitch getEJB(Object pk)(Code)(Java Doc)
public synchronized EntityCounters getEntityCounters()(Code)(Java Doc)
public JHome getHome()(Code)(Java Doc)
public int getInactivityTimeout()(Code)(Java Doc)
public JEntityContext getJContext(JEntitySwitch es)(Code)(Java Doc)
public JEntitySwitch getJEntitySwitch()(Code)(Java Doc)
public JLocalHome getLocalHome()(Code)(Java Doc)
public int getLockPolicy()(Code)(Java Doc)
public int getMaxWaitTime()(Code)(Java Doc)
public int getPassivationTimeout()(Code)(Java Doc)
public int getPoolSize()(Code)(Java Doc)
public int getReadTimeout()(Code)(Java Doc)
public boolean getSelectForUpdate()(Code)(Java Doc)
public TimerService getTimerService()(Code)(Java Doc)
public Collection getTimers() throws IllegalStateException, EJBException(Code)(Java Doc)
public void init(EntityDesc dd, JContainer cont)(Code)(Java Doc)
public void initInstancePool()(Code)(Java Doc)
public boolean isCMP2()(Code)(Java Doc)
public boolean isDeadLocked(Transaction suspect)(Code)(Java Doc)
public boolean isHardLimit()(Code)(Java Doc)
public boolean isPrefetch()(Code)(Java Doc)
public boolean isReentrant()(Code)(Java Doc)
public boolean isShared()(Code)(Java Doc)
public boolean rebindEJB(Transaction tx, JEntityContext bctx, Object pk)(Code)(Java Doc)
public void reduceCache()(Code)(Java Doc)
public boolean registerContext(Transaction tx, JEntityContext ec) throws IllegalStateException(Code)(Java Doc)
public synchronized void registerEJB(JEntitySwitch ejb)(Code)(Java Doc)
public void releaseJContext(JContext ctx, int poolaction)(Code)(Java Doc)
public void releaseJContext(JContext ctx)(Code)(Java Doc)
public synchronized void removeEJB(Object pk)(Code)(Java Doc)
public void removeTxListener(Transaction tx)(Code)(Java Doc)
public void setDeadlockTimeout(int i)(Code)(Java Doc)
public void setInactivityTimeout(int i)(Code)(Java Doc)
public void setMaxWaitTime(int sec)(Code)(Java Doc)
public void setPassivationTimeout(int i)(Code)(Java Doc)
public void stop()(Code)(Java Doc)
public void storeInstances(Transaction tx)(Code)(Java Doc)
public void syncDirty(boolean alwaysStore)(Code)(Java Doc)
public void syncForFind(Transaction tx)(Code)(Java Doc)
public void syncForSelect()(Code)(Java Doc)
public void synchronizeEntities()(Code)(Java Doc)
public boolean tooManyInstances()(Code)(Java Doc)
public void unregisterContext(Transaction tx, JEntityContext ec) throws IllegalStateException(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.