Java Doc for SessionBean.java in  » J2EE » openejb3 » org » apache » openejb » jee » 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 » openejb3 » org.apache.openejb.jee 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.openejb.jee.SessionBean

All known Subclasses:   org.apache.openejb.jee.StatelessBean,  org.apache.openejb.jee.StatefulBean,
SessionBean
public class SessionBean implements EnterpriseBean,RemoteBean,Session,TimerConsumer(Code)
The session-beanType declares an session bean. The declaration consists of:

- an optional description - an optional display name - an optional icon element that contains a small and a large icon file name - a name assigned to the enterprise bean in the deployment description - an optional mapped-name element that can be used to provide vendor-specific deployment information such as the physical jndi-name of the session bean's remote home/business interface. This element is not required to be supported by all implementations. Any use of this element is non-portable. - the names of all the remote or local business interfaces, if any - the names of the session bean's remote home and remote interfaces, if any - the names of the session bean's local home and local interfaces, if any - the name of the session bean's web service endpoint interface, if any - the session bean's implementation class - the session bean's state management type - an optional declaration of the session bean's timeout method. - the optional session bean's transaction management type. If it is not present, it is defaulted to Container. - an optional list of the session bean class and/or superclass around-invoke methods. - an optional declaration of the bean's environment entries - an optional declaration of the bean's EJB references - an optional declaration of the bean's local EJB references - an optional declaration of the bean's web service references - an optional declaration of the security role references - an optional declaration of the security identity to be used for the execution of the bean's methods - an optional declaration of the bean's resource manager connection factory references - an optional declaration of the bean's resource environment references. - an optional declaration of the bean's message destination references

The elements that are optional are "optional" in the sense that they are omitted when if lists represented by them are empty.

Either both the local-home and the local elements or both the home and the remote elements must be specified for the session bean.

The service-endpoint element may only be specified if the bean is a stateless session bean.



Field Summary
protected  List<AroundInvoke>aroundInvoke
    
protected  LinkedHashSet<String>businessLocal
    
protected  LinkedHashSet<String>businessRemote
    
protected  TextMapdescription
    
protected  TextMapdisplayName
    
protected  StringejbClass
    
protected  KeyedCollection<String, EjbLocalRef>ejbLocalRef
    
protected  StringejbName
    
protected  KeyedCollection<String, EjbRef>ejbRef
    
protected  KeyedCollection<String, EnvEntry>envEntry
    
protected  Stringhome
    
protected  LocalCollection<Icon>icon
    
protected  Stringid
    
protected  List<InitMethod>initMethod
    
protected  Stringlocal
    
protected  StringlocalHome
    
protected  StringmappedName
    
protected  KeyedCollection<String, MessageDestinationRef>messageDestinationRef
    
protected  KeyedCollection<String, PersistenceContextRef>persistenceContextRef
    
protected  KeyedCollection<String, PersistenceUnitRef>persistenceUnitRef
    
protected  List<LifecycleCallback>postActivate
    
protected  List<LifecycleCallback>postConstruct
    
protected  List<LifecycleCallback>preDestroy
    
protected  List<LifecycleCallback>prePassivate
    
protected  Stringremote
    
protected  List<RemoveMethod>removeMethod
    
protected  KeyedCollection<String, ResourceEnvRef>resourceEnvRef
    
protected  KeyedCollection<String, ResourceRef>resourceRef
    
protected  SecurityIdentitysecurityIdentity
    
protected  List<SecurityRoleRef>securityRoleRef
    
protected  StringserviceEndpoint
    
protected  KeyedCollection<String, ServiceRef>serviceRef
    
protected  SessionTypesessionType
    
protected  NamedMethodtimeoutMethod
    
protected  TransactionTypetransactionType
    

Constructor Summary
public  SessionBean()
    
public  SessionBean(String ejbName, String ejbClass, SessionType sessionType)
    

Method Summary
public  voidaddAroundInvoke(String method)
    
public  voidaddBusinessLocal(String businessLocal)
    
public  voidaddBusinessRemote(String businessRemote)
    
public  voidaddPostActivate(String method)
    
public  voidaddPostConstruct(String method)
    
public  voidaddPreDestroy(String method)
    
public  voidaddPrePassivate(String method)
    
public  List<AroundInvoke>getAroundInvoke()
    
public  Collection<String>getBusinessLocal()
    
public  Collection<String>getBusinessRemote()
    
public  StringgetDescription()
    
public  Text[]getDescriptions()
    
public  StringgetDisplayName()
    
public  Text[]getDisplayNames()
    
public  StringgetEjbClass()
    
public  Collection<EjbLocalRef>getEjbLocalRef()
    
public  Map<String, EjbLocalRef>getEjbLocalRefMap()
    
public  StringgetEjbName()
    
public  Collection<EjbRef>getEjbRef()
    
public  Map<String, EjbRef>getEjbRefMap()
    
public  Collection<EnvEntry>getEnvEntry()
    
public  Map<String, EnvEntry>getEnvEntryMap()
    
public  StringgetHome()
    
public  IcongetIcon()
    
public  Map<String, Icon>getIconMap()
    
public  Collection<Icon>getIcons()
    
public  StringgetId()
    
public  List<InitMethod>getInitMethod()
    
public  StringgetJndiConsumerName()
    
public  StringgetLocal()
    
public  StringgetLocalHome()
    
public  StringgetMappedName()
    
public  Collection<MessageDestinationRef>getMessageDestinationRef()
    
public  Map<String, MessageDestinationRef>getMessageDestinationRefMap()
    
public  Collection<PersistenceContextRef>getPersistenceContextRef()
    
public  Map<String, PersistenceContextRef>getPersistenceContextRefMap()
    
public  Collection<PersistenceUnitRef>getPersistenceUnitRef()
    
public  Map<String, PersistenceUnitRef>getPersistenceUnitRefMap()
    
public  List<LifecycleCallback>getPostActivate()
    
public  List<LifecycleCallback>getPostConstruct()
    
public  List<LifecycleCallback>getPreDestroy()
    
public  List<LifecycleCallback>getPrePassivate()
    
public  StringgetRemote()
    
public  List<RemoveMethod>getRemoveMethod()
    
public  Collection<ResourceEnvRef>getResourceEnvRef()
    
public  Map<String, ResourceEnvRef>getResourceEnvRefMap()
    
public  Collection<ResourceRef>getResourceRef()
    
public  Map<String, ResourceRef>getResourceRefMap()
    
public  SecurityIdentitygetSecurityIdentity()
    
public  List<SecurityRoleRef>getSecurityRoleRef()
    
public  StringgetServiceEndpoint()
    
public  Collection<ServiceRef>getServiceRef()
    
public  Map<String, ServiceRef>getServiceRefMap()
    
public  SessionTypegetSessionType()
    
public  NamedMethodgetTimeoutMethod()
    
public  TransactionTypegetTransactionType()
    
public  voidsetDescriptions(Text[] text)
    
public  voidsetDisplayNames(Text[] text)
    
public  voidsetEjbClass(String value)
    
public  voidsetEjbName(String value)
     The ejb-nameType specifies an enterprise bean's name.
public  voidsetHome(String value)
    
public  voidsetHomeAndLocal(String localHome, String local)
    
public  voidsetHomeAndLocal(Class localHome, Class local)
    
public  voidsetHomeAndRemote(String home, String remote)
    
public  voidsetHomeAndRemote(Class home, Class remote)
    
public  voidsetId(String value)
    
public  voidsetLocal(String value)
    
public  voidsetLocalHome(String value)
    
public  voidsetMappedName(String value)
    
public  voidsetRemote(String value)
    
public  voidsetSecurityIdentity(SecurityIdentity value)
    
public  voidsetServiceEndpoint(String value)
    
public  voidsetSessionType(SessionType value)
    
public  voidsetTimeoutMethod(NamedMethod value)
    
public  voidsetTransactionType(TransactionType value)
    

Field Detail
aroundInvoke
protected List<AroundInvoke> aroundInvoke(Code)



businessLocal
protected LinkedHashSet<String> businessLocal(Code)



businessRemote
protected LinkedHashSet<String> businessRemote(Code)



description
protected TextMap description(Code)



displayName
protected TextMap displayName(Code)



ejbClass
protected String ejbClass(Code)



ejbLocalRef
protected KeyedCollection<String, EjbLocalRef> ejbLocalRef(Code)



ejbName
protected String ejbName(Code)



ejbRef
protected KeyedCollection<String, EjbRef> ejbRef(Code)



envEntry
protected KeyedCollection<String, EnvEntry> envEntry(Code)



home
protected String home(Code)



icon
protected LocalCollection<Icon> icon(Code)



id
protected String id(Code)



initMethod
protected List<InitMethod> initMethod(Code)



local
protected String local(Code)



localHome
protected String localHome(Code)



mappedName
protected String mappedName(Code)



messageDestinationRef
protected KeyedCollection<String, MessageDestinationRef> messageDestinationRef(Code)



persistenceContextRef
protected KeyedCollection<String, PersistenceContextRef> persistenceContextRef(Code)



persistenceUnitRef
protected KeyedCollection<String, PersistenceUnitRef> persistenceUnitRef(Code)



postActivate
protected List<LifecycleCallback> postActivate(Code)



postConstruct
protected List<LifecycleCallback> postConstruct(Code)



preDestroy
protected List<LifecycleCallback> preDestroy(Code)



prePassivate
protected List<LifecycleCallback> prePassivate(Code)



remote
protected String remote(Code)



removeMethod
protected List<RemoveMethod> removeMethod(Code)



resourceEnvRef
protected KeyedCollection<String, ResourceEnvRef> resourceEnvRef(Code)



resourceRef
protected KeyedCollection<String, ResourceRef> resourceRef(Code)



securityIdentity
protected SecurityIdentity securityIdentity(Code)



securityRoleRef
protected List<SecurityRoleRef> securityRoleRef(Code)



serviceEndpoint
protected String serviceEndpoint(Code)



serviceRef
protected KeyedCollection<String, ServiceRef> serviceRef(Code)



sessionType
protected SessionType sessionType(Code)



timeoutMethod
protected NamedMethod timeoutMethod(Code)



transactionType
protected TransactionType transactionType(Code)




Constructor Detail
SessionBean
public SessionBean()(Code)



SessionBean
public SessionBean(String ejbName, String ejbClass, SessionType sessionType)(Code)




Method Detail
addAroundInvoke
public void addAroundInvoke(String method)(Code)



addBusinessLocal
public void addBusinessLocal(String businessLocal)(Code)



addBusinessRemote
public void addBusinessRemote(String businessRemote)(Code)



addPostActivate
public void addPostActivate(String method)(Code)



addPostConstruct
public void addPostConstruct(String method)(Code)



addPreDestroy
public void addPreDestroy(String method)(Code)



addPrePassivate
public void addPrePassivate(String method)(Code)



getAroundInvoke
public List<AroundInvoke> getAroundInvoke()(Code)



getBusinessLocal
public Collection<String> getBusinessLocal()(Code)



getBusinessRemote
public Collection<String> getBusinessRemote()(Code)



getDescription
public String getDescription()(Code)



getDescriptions
public Text[] getDescriptions()(Code)



getDisplayName
public String getDisplayName()(Code)



getDisplayNames
public Text[] getDisplayNames()(Code)



getEjbClass
public String getEjbClass()(Code)



getEjbLocalRef
public Collection<EjbLocalRef> getEjbLocalRef()(Code)



getEjbLocalRefMap
public Map<String, EjbLocalRef> getEjbLocalRefMap()(Code)



getEjbName
public String getEjbName()(Code)



getEjbRef
public Collection<EjbRef> getEjbRef()(Code)



getEjbRefMap
public Map<String, EjbRef> getEjbRefMap()(Code)



getEnvEntry
public Collection<EnvEntry> getEnvEntry()(Code)



getEnvEntryMap
public Map<String, EnvEntry> getEnvEntryMap()(Code)



getHome
public String getHome()(Code)



getIcon
public Icon getIcon()(Code)



getIconMap
public Map<String, Icon> getIconMap()(Code)



getIcons
public Collection<Icon> getIcons()(Code)



getId
public String getId()(Code)



getInitMethod
public List<InitMethod> getInitMethod()(Code)



getJndiConsumerName
public String getJndiConsumerName()(Code)



getLocal
public String getLocal()(Code)



getLocalHome
public String getLocalHome()(Code)



getMappedName
public String getMappedName()(Code)



getMessageDestinationRef
public Collection<MessageDestinationRef> getMessageDestinationRef()(Code)



getMessageDestinationRefMap
public Map<String, MessageDestinationRef> getMessageDestinationRefMap()(Code)



getPersistenceContextRef
public Collection<PersistenceContextRef> getPersistenceContextRef()(Code)



getPersistenceContextRefMap
public Map<String, PersistenceContextRef> getPersistenceContextRefMap()(Code)



getPersistenceUnitRef
public Collection<PersistenceUnitRef> getPersistenceUnitRef()(Code)



getPersistenceUnitRefMap
public Map<String, PersistenceUnitRef> getPersistenceUnitRefMap()(Code)



getPostActivate
public List<LifecycleCallback> getPostActivate()(Code)



getPostConstruct
public List<LifecycleCallback> getPostConstruct()(Code)



getPreDestroy
public List<LifecycleCallback> getPreDestroy()(Code)



getPrePassivate
public List<LifecycleCallback> getPrePassivate()(Code)



getRemote
public String getRemote()(Code)



getRemoveMethod
public List<RemoveMethod> getRemoveMethod()(Code)



getResourceEnvRef
public Collection<ResourceEnvRef> getResourceEnvRef()(Code)



getResourceEnvRefMap
public Map<String, ResourceEnvRef> getResourceEnvRefMap()(Code)



getResourceRef
public Collection<ResourceRef> getResourceRef()(Code)



getResourceRefMap
public Map<String, ResourceRef> getResourceRefMap()(Code)



getSecurityIdentity
public SecurityIdentity getSecurityIdentity()(Code)



getSecurityRoleRef
public List<SecurityRoleRef> getSecurityRoleRef()(Code)



getServiceEndpoint
public String getServiceEndpoint()(Code)



getServiceRef
public Collection<ServiceRef> getServiceRef()(Code)



getServiceRefMap
public Map<String, ServiceRef> getServiceRefMap()(Code)



getSessionType
public SessionType getSessionType()(Code)



getTimeoutMethod
public NamedMethod getTimeoutMethod()(Code)



getTransactionType
public TransactionType getTransactionType()(Code)



setDescriptions
public void setDescriptions(Text[] text)(Code)



setDisplayNames
public void setDisplayNames(Text[] text)(Code)



setEjbClass
public void setEjbClass(String value)(Code)



setEjbName
public void setEjbName(String value)(Code)
The ejb-nameType specifies an enterprise bean's name. It is used by ejb-name elements. This name is assigned by the ejb-jar file producer to name the enterprise bean in the ejb-jar file's deployment descriptor. The name must be unique among the names of the enterprise beans in the same ejb-jar file.

There is no architected relationship between the used ejb-name in the deployment descriptor and the JNDI name that the Deployer will assign to the enterprise bean's home.

The name for an entity bean must conform to the lexical rules for an NMTOKEN.

Example:

EmployeeService




setHome
public void setHome(String value)(Code)



setHomeAndLocal
public void setHomeAndLocal(String localHome, String local)(Code)



setHomeAndLocal
public void setHomeAndLocal(Class localHome, Class local)(Code)



setHomeAndRemote
public void setHomeAndRemote(String home, String remote)(Code)



setHomeAndRemote
public void setHomeAndRemote(Class home, Class remote)(Code)



setId
public void setId(String value)(Code)



setLocal
public void setLocal(String value)(Code)



setLocalHome
public void setLocalHome(String value)(Code)



setMappedName
public void setMappedName(String value)(Code)



setRemote
public void setRemote(String value)(Code)



setSecurityIdentity
public void setSecurityIdentity(SecurityIdentity value)(Code)



setServiceEndpoint
public void setServiceEndpoint(String value)(Code)



setSessionType
public void setSessionType(SessionType value)(Code)



setTimeoutMethod
public void setTimeoutMethod(NamedMethod value)(Code)



setTransactionType
public void setTransactionType(TransactionType value)(Code)



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.