Java Doc for EntityContainer.java in  » EJB-Server-JBoss-4.2.1 » server » org » jboss » ejb » 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 » EJB Server JBoss 4.2.1 » server » org.jboss.ejb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.ejb.Container
   org.jboss.ejb.EntityContainer

EntityContainer
public class EntityContainer extends Container implements EJBProxyFactoryContainer,InstancePoolContainer,EntityContainerMBean(Code)
This is a Container for EntityBeans (both BMP and CMP).
See Also:   Container
See Also:   EntityEnterpriseContext
author:
   Rickard �berg
author:
   Marc Fleury
author:
   Sebastien Alborini
author:
   Daniel OConnor
author:
   Bill Burke
author:
   Andreas Schaefer
author:
   Dain Sundstrom
version:
   $Revision: 57209 $

Inner Class :class ContainerInterceptor extends AbstractContainerInterceptor

Field Summary
protected  MapbeanMapping
     These are the mappings between the remote/local interface methods and the bean methods.
protected static  GlobalTxEntityMapglobalTxEntityMap
     This provides a way to find the entities that are part of a given transaction EntitySynchronizationInterceptor and InstanceSynchronization manage this instance.
protected  MaphomeMapping
     These are the mappings between the home interface methods and the container methods.
protected  InstanceCacheinstanceCache
    
protected  InstancePoolinstancePool
    
protected  Interceptorinterceptor
     This is the first interceptor in the chain.
protected  EntityPersistenceManagerpersistenceManager
    
protected  booleanreadOnly
     readOnly determines if state can be written to resource manager.


Method Summary
public  voidaddInterceptor(Interceptor in)
    
protected  voidcheckCoherency()
    
public  ObjectcreateBeanClassInstance()
     Returns a new instance of the bean class or a subclass of the bean class.
 InterceptorcreateContainerInterceptor()
    
public  EJBObjectcreateHome(Invocation mi)
     This method takes care of the wiring of the "EJBObject" trio (target, context, proxy).
public  EJBLocalObjectcreateLocalHome(Invocation mi)
    
protected  voidcreateService()
    
protected  voiddestroyService()
    
public  Objectfind(Invocation mi)
     This methods finds the target instances by delegating to the persistence manager It then manufactures EJBObject for all the involved instances found.
public  ObjectfindLocal(Invocation mi)
    
public  voidflushCache()
    
public  longgetCacheSize()
    
public  EJBHomegetEJBHome(Invocation mi)
    
public  EJBLocalHomegetEJBLocalHome(Invocation mi)
    
public  EJBMetaDatagetEJBMetaDataHome(Invocation mi)
    
public  EJBObjectgetEJBObject(Invocation mi)
    
public static  GlobalTxEntityMapgetGlobalTxEntityMap()
    
public  HandlegetHandle(Invocation mi)
    
public  ClassgetHomeClass()
    
public  HomeHandlegetHomeHandleHome(Invocation mi)
    
public  InstanceCachegetInstanceCache()
    
public  InstancePoolgetInstancePool()
    
public  InterceptorgetInterceptor()
    
public  LocalProxyFactorygetLocalProxyFactory()
    
public  EntityPersistenceManagergetPersistenceManager()
    
public  ObjectgetPrimaryKey(Invocation mi)
    
public  ClassgetRemoteClass()
    
public  ObjectinternalInvoke(Invocation mi)
    
public  ObjectinternalInvokeHome(Invocation mi)
    
public  voidinvokeEjbStore(EntityEnterpriseContext ctx)
    
public  booleanisIdentical(Invocation mi)
    
public  booleanisReadOnly()
    
public  voidpostCreateHome(Invocation mi)
     Delegates to the persistence manager postCreateEntityMethod.
public  voidpostCreateLocalHome(Invocation mi)
     Delegates to the persistence manager postCreateEntityMethod.
public  voidremove(Invocation mi)
    
public  voidremoveHome(Invocation mi)
    
public  voidremoveLocalHome(Invocation mi)
    
public  voidresetStatistic()
    
public  MapretrieveStatistic()
    
public  voidsetInstanceCache(InstanceCache ic)
    
public  voidsetInstancePool(InstancePool ip)
    
public  voidsetPersistenceManager(EntityPersistenceManager pm)
    
protected  voidsetupBeanMapping()
    
protected  voidsetupHomeMapping()
    
protected  voidsetupMarshalledInvocationMapping()
    
protected  voidstartService()
    
protected  voidstopService()
    
public  voidstoreEntity(EntityEnterpriseContext ctx)
    
public static  voidsynchronizeEntitiesWithinTransaction(Transaction tx)
     Stores all of the entities associated with the specified transaction.

Field Detail
beanMapping
protected Map beanMapping(Code)
These are the mappings between the remote/local interface methods and the bean methods.



globalTxEntityMap
protected static GlobalTxEntityMap globalTxEntityMap(Code)
This provides a way to find the entities that are part of a given transaction EntitySynchronizationInterceptor and InstanceSynchronization manage this instance.



homeMapping
protected Map homeMapping(Code)
These are the mappings between the home interface methods and the container methods.



instanceCache
protected InstanceCache instanceCache(Code)
This is the instance cache for this container



instancePool
protected InstancePool instancePool(Code)
This is the instancepool that is to be used



interceptor
protected Interceptor interceptor(Code)
This is the first interceptor in the chain. The last interceptor must be provided by the container itself.



persistenceManager
protected EntityPersistenceManager persistenceManager(Code)
This is the persistence manager for this container



readOnly
protected boolean readOnly(Code)
readOnly determines if state can be written to resource manager.





Method Detail
addInterceptor
public void addInterceptor(Interceptor in)(Code)



checkCoherency
protected void checkCoherency() throws Exception(Code)



createBeanClassInstance
public Object createBeanClassInstance() throws Exception(Code)
Returns a new instance of the bean class or a subclass of the bean class. If this is 1.x cmp, simply return a new instance of the bean class. If this is 2.x cmp, return a subclass that provides an implementation of the abstract accessors.
See Also:   java.lang.Class.newInstance The new instance.



createContainerInterceptor
Interceptor createContainerInterceptor()(Code)



createHome
public EJBObject createHome(Invocation mi) throws Exception(Code)
This method takes care of the wiring of the "EJBObject" trio (target, context, proxy). It delegates to the persistence manager.



createLocalHome
public EJBLocalObject createLocalHome(Invocation mi) throws Exception(Code)
Local home interface implementation



createService
protected void createService() throws Exception(Code)



destroyService
protected void destroyService() throws Exception(Code)



find
public Object find(Invocation mi) throws Exception(Code)
This methods finds the target instances by delegating to the persistence manager It then manufactures EJBObject for all the involved instances found.



findLocal
public Object findLocal(Invocation mi) throws Exception(Code)



flushCache
public void flushCache()(Code)
Flush the cache



getCacheSize
public long getCacheSize()(Code)
the current cache size



getEJBHome
public EJBHome getEJBHome(Invocation mi) throws RemoteException(Code)

throws:
  IllegalStateException - If container invoker is null.



getEJBLocalHome
public EJBLocalHome getEJBLocalHome(Invocation mi)(Code)
MF FIXME these are implemented on the client



getEJBMetaDataHome
public EJBMetaData getEJBMetaDataHome(Invocation mi) throws RemoteException(Code)



getEJBObject
public EJBObject getEJBObject(Invocation mi) throws RemoteException(Code)
A method for the getEJBObject from the handle



getGlobalTxEntityMap
public static GlobalTxEntityMap getGlobalTxEntityMap()(Code)



getHandle
public Handle getHandle(Invocation mi) throws RemoteException(Code)

throws:
  Error - Not yet implemented.



getHomeClass
public Class getHomeClass()(Code)



getHomeHandleHome
public HomeHandle getHomeHandleHome(Invocation mi) throws RemoteException(Code)

throws:
  Error - Not yet implemented.



getInstanceCache
public InstanceCache getInstanceCache()(Code)



getInstancePool
public InstancePool getInstancePool()(Code)



getInterceptor
public Interceptor getInterceptor()(Code)



getLocalProxyFactory
public LocalProxyFactory getLocalProxyFactory()(Code)



getPersistenceManager
public EntityPersistenceManager getPersistenceManager()(Code)



getPrimaryKey
public Object getPrimaryKey(Invocation mi) throws RemoteException(Code)



getRemoteClass
public Class getRemoteClass()(Code)



internalInvoke
public Object internalInvoke(Invocation mi) throws Exception(Code)



internalInvokeHome
public Object internalInvokeHome(Invocation mi) throws Exception(Code)



invokeEjbStore
public void invokeEjbStore(EntityEnterpriseContext ctx) throws Exception(Code)
Invokes ejbStore method on the instance
Parameters:
  ctx - the instance to invoke ejbStore on
throws:
  Exception -



isIdentical
public boolean isIdentical(Invocation mi) throws RemoteException(Code)



isReadOnly
public boolean isReadOnly()(Code)



postCreateHome
public void postCreateHome(Invocation mi) throws Exception(Code)
Delegates to the persistence manager postCreateEntityMethod.



postCreateLocalHome
public void postCreateLocalHome(Invocation mi) throws Exception(Code)
Delegates to the persistence manager postCreateEntityMethod.



remove
public void remove(Invocation mi) throws RemoteException, RemoveException(Code)



removeHome
public void removeHome(Invocation mi) throws RemoteException, RemoveException(Code)

throws:
  Error - Not yet implemented.



removeLocalHome
public void removeLocalHome(Invocation mi) throws RemoteException, RemoveException(Code)

throws:
  Error - Not yet implemented.



resetStatistic
public void resetStatistic()(Code)



retrieveStatistic
public Map retrieveStatistic()(Code)



setInstanceCache
public void setInstanceCache(InstanceCache ic)(Code)



setInstancePool
public void setInstancePool(InstancePool ip)(Code)



setPersistenceManager
public void setPersistenceManager(EntityPersistenceManager pm)(Code)



setupBeanMapping
protected void setupBeanMapping() throws Exception(Code)



setupHomeMapping
protected void setupHomeMapping() throws Exception(Code)



setupMarshalledInvocationMapping
protected void setupMarshalledInvocationMapping() throws Exception(Code)



startService
protected void startService() throws Exception(Code)



stopService
protected void stopService() throws Exception(Code)



storeEntity
public void storeEntity(EntityEnterpriseContext ctx) throws Exception(Code)
For CMP actually stores the instance



synchronizeEntitiesWithinTransaction
public static void synchronizeEntitiesWithinTransaction(Transaction tx)(Code)
Stores all of the entities associated with the specified transaction. As per the spec 9.6.4, entities must be synchronized with the datastore when an ejbFind is called. Also, all entities within entire transaction should be synchronized before a remove, otherwise there may be problems with 'cascade delete'.
Parameters:
  tx - the transaction that associated entites will be stored



Fields inherited from org.jboss.ejb.Container
final public static String BASE_EJB_CONTAINER_NAME(Code)(Java Doc)
final protected static Method EJBOBJECT_REMOVE(Code)(Java Doc)
final public static ObjectName EJB_CONTAINER_QUERY_NAME(Code)(Java Doc)
final protected static Method EJB_TIMEOUT(Code)(Java Doc)
final public static ObjectName ORB_NAME(Code)(Java Doc)
protected Class beanClass(Code)(Java Doc)
protected ClassLoader classLoader(Code)(Java Doc)
protected long createCount(Code)(Java Doc)
protected EjbModule ejbModule(Code)(Java Doc)
protected Class homeInterface(Code)(Java Doc)
protected InvocationStatistics invokeStats(Code)(Java Doc)
protected boolean isJaccEnabled(Code)(Java Doc)
protected String jaccContextID(Code)(Java Doc)
protected ClassLoader localClassLoader(Code)(Java Doc)
protected Class localHomeInterface(Code)(Java Doc)
protected Class localInterface(Code)(Java Doc)
protected LocalProxyFactory localProxyFactory(Code)(Java Doc)
protected BeanLockManager lockManager(Code)(Java Doc)
protected Map marshalledInvocationMapping(Code)(Java Doc)
protected BeanMetaData metaData(Code)(Java Doc)
protected HashMap proxyFactories(Code)(Java Doc)
protected ThreadLocal proxyFactoryTL(Code)(Java Doc)
protected Class remoteInterface(Code)(Java Doc)
protected long removeCount(Code)(Java Doc)
protected RealmMapping rm(Code)(Java Doc)
protected Object securityProxy(Code)(Java Doc)
protected AuthenticationManager sm(Code)(Java Doc)
protected TransactionManager tm(Code)(Java Doc)
protected ClassLoader webClassLoader(Code)(Java Doc)

Methods inherited from org.jboss.ejb.Container
abstract public void addInterceptor(Interceptor in)(Code)(Java Doc)
public void addProxyFactory(String invokerBinding, EJBProxyFactory factory)(Code)(Java Doc)
public Object createBeanClassInstance() throws Exception(Code)(Java Doc)
abstract Interceptor createContainerInterceptor()(Code)(Java Doc)
protected void createService() throws Exception(Code)(Java Doc)
protected void destroyService() throws Exception(Code)(Java Doc)
public Class getBeanClass()(Code)(Java Doc)
public BeanMetaData getBeanMetaData()(Code)(Java Doc)
public ClassLoader getClassLoader()(Code)(Java Doc)
public long getCreateCount()(Code)(Java Doc)
final public DeploymentInfo getDeploymentInfo()(Code)(Java Doc)
public EjbModule getEjbModule()(Code)(Java Doc)
public Context getEnvContext() throws NamingException(Code)(Java Doc)
public Class getHomeClass()(Code)(Java Doc)
public InvocationStatistics getInvokeStats()(Code)(Java Doc)
public String getJaccContextID()(Code)(Java Doc)
public ObjectName getJmxName()(Code)(Java Doc)
public Class getLocalClass()(Code)(Java Doc)
public ClassLoader getLocalClassLoader()(Code)(Java Doc)
public Class getLocalHomeClass()(Code)(Java Doc)
public BeanLockManager getLockManager()(Code)(Java Doc)
public MessageDestinationMetaData getMessageDestination(String link)(Code)(Java Doc)
public Set getMethodPermissions(Method m, InvocationType iface)(Code)(Java Doc)
public EJBProxyFactory getProxyFactory()(Code)(Java Doc)
public RealmMapping getRealmMapping()(Code)(Java Doc)
public Class getRemoteClass()(Code)(Java Doc)
public long getRemoveCount()(Code)(Java Doc)
public AuthenticationManager getSecurityManager()(Code)(Java Doc)
public Object getSecurityProxy()(Code)(Java Doc)
public TimerService getTimerService(Object pKey) throws IllegalStateException(Code)(Java Doc)
public TransactionManager getTransactionManager()(Code)(Java Doc)
public ClassLoader getWebClassLoader()(Code)(Java Doc)
abstract public Object internalInvoke(Invocation mi) throws Exception(Code)(Java Doc)
abstract public Object internalInvokeHome(Invocation mi) throws Exception(Code)(Java Doc)
public Object invoke(Invocation mi) throws Exception(Code)(Java Doc)
public boolean isCallByValue()(Code)(Java Doc)
public boolean isJaccEnabled()(Code)(Java Doc)
public EJBProxyFactory lookupProxyFactory(String binding)(Code)(Java Doc)
public void removeTimerService(Object pKey) throws IllegalStateException(Code)(Java Doc)
protected void restoreTimers()(Code)(Java Doc)
public void setBeanMetaData(BeanMetaData metaData)(Code)(Java Doc)
public void setClassLoader(ClassLoader cl)(Code)(Java Doc)
final public void setDeploymentInfo(DeploymentInfo di)(Code)(Java Doc)
public void setEjbModule(EjbModule app)(Code)(Java Doc)
public void setJaccContextID(String id)(Code)(Java Doc)
public void setJaccEnabled(boolean isJaccEnabled)(Code)(Java Doc)
public void setLocalClassLoader(ClassLoader cl)(Code)(Java Doc)
public void setLockManager(BeanLockManager lockManager)(Code)(Java Doc)
public void setProxyFactory(Object factory)(Code)(Java Doc)
public void setRealmMapping(RealmMapping rm)(Code)(Java Doc)
public void setSecurityManager(AuthenticationManager sm)(Code)(Java Doc)
public void setSecurityProxy(Object proxy)(Code)(Java Doc)
public void setTransactionManager(TransactionManager tm)(Code)(Java Doc)
public void setWebClassLoader(ClassLoader webClassLoader)(Code)(Java Doc)
protected void startService() throws Exception(Code)(Java Doc)
protected void stopService() throws Exception(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.