Java Doc for EntityBean.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.EntityBean

EntityBean
public class EntityBean implements EnterpriseBean,RemoteBean(Code)
The entity-beanType declares an entity 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 unique name assigned to the enterprise bean in the deployment descriptor - an optional mapped-name element that can be used to provide vendor-specific deployment information such as the physical jndi-name of the entity bean's remote home interface. This element is not required to be supported by all implementations. Any use of this element is non-portable. - the names of the entity bean's remote home and remote interfaces, if any - the names of the entity bean's local home and local interfaces, if any - the entity bean's implementation class - the optional entity bean's persistence management type. If this element is not specified it is defaulted to Container. - the entity bean's primary key class name - an indication of the entity bean's reentrancy - an optional specification of the entity bean's cmp-version - an optional specification of the entity bean's abstract schema name - an optional list of container-managed fields - an optional specification of the primary key field - 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 - an optional set of query declarations for finder and select methods for an entity bean with cmp-version 2.x.

The optional abstract-schema-name element must be specified for an entity bean with container-managed persistence and cmp-version 2.x.

The optional primkey-field may be present in the descriptor if the entity's persistence-type is Container.

The optional cmp-version element may be present in the descriptor if the entity's persistence-type is Container. If the persistence-type is Container and the cmp-version element is not specified, its value defaults to 2.x.

The optional home and remote elements must be specified if the entity bean cmp-version is 1.x.

The optional home and remote elements must be specified if the entity bean has a remote home and remote interface.

The optional local-home and local elements must be specified if the entity bean has a local home and local interface.

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

The optional query elements must be present if the persistence-type is Container and the cmp-version is 2.x and query methods other than findByPrimaryKey have been defined for the entity bean.

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

At least one cmp-field element must be present in the descriptor if the entity's persistence-type is Container and the cmp-version is 1.x, and none must not be present if the entity's persistence-type is Bean.



Field Summary
protected  StringabstractSchemaName
    
protected  List<CmpField>cmpField
    
protected  CmpVersioncmpVersion
    
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  Stringlocal
    
protected  StringlocalHome
    
protected  StringmappedName
    
protected  KeyedCollection<String, MessageDestinationRef>messageDestinationRef
    
protected  KeyedCollection<String, PersistenceContextRef>persistenceContextRef
    
protected  PersistenceTypepersistenceType
    
protected  KeyedCollection<String, PersistenceUnitRef>persistenceUnitRef
    
protected  List<LifecycleCallback>postConstruct
    
protected  List<LifecycleCallback>preDestroy
    
protected  StringprimKeyClass
    
protected  StringprimkeyField
    
protected  List<Query>query
    
protected  booleanreentrant
    
protected  Stringremote
    
protected  KeyedCollection<String, ResourceEnvRef>resourceEnvRef
    
protected  KeyedCollection<String, ResourceRef>resourceRef
    
protected  SecurityIdentitysecurityIdentity
    
protected  List<SecurityRoleRef>securityRoleRef
    
protected  KeyedCollection<String, ServiceRef>serviceRef
    

Constructor Summary
public  EntityBean()
    

Method Summary
public  voidaddAroundInvoke(String method)
    
public  voidaddPostConstruct(String method)
    
public  voidaddPreDestroy(String method)
    
public  StringgetAbstractSchemaName()
    
public  List<AroundInvoke>getAroundInvoke()
    
public  Collection<String>getBusinessLocal()
    
public  Collection<String>getBusinessRemote()
    
public  List<CmpField>getCmpField()
    
public  CmpVersiongetCmpVersion()
    
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  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  PersistenceTypegetPersistenceType()
    
public  Collection<PersistenceUnitRef>getPersistenceUnitRef()
    
public  Map<String, PersistenceUnitRef>getPersistenceUnitRefMap()
    
public  List<LifecycleCallback>getPostConstruct()
    
public  List<LifecycleCallback>getPreDestroy()
    
public  StringgetPrimKeyClass()
    
public  StringgetPrimkeyField()
    
public  List<Query>getQuery()
    
public  booleangetReentrant()
    
public  StringgetRemote()
    
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  Collection<ServiceRef>getServiceRef()
    
public  Map<String, ServiceRef>getServiceRefMap()
    
public  TransactionTypegetTransactionType()
    
public  voidsetAbstractSchemaName(String value)
    
public  voidsetCmpVersion(CmpVersion value)
    
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  voidsetId(String value)
    
public  voidsetLocal(String value)
    
public  voidsetLocalHome(String value)
    
public  voidsetMappedName(String value)
    
public  voidsetPersistenceType(PersistenceType value)
    
public  voidsetPrimKeyClass(String value)
    
public  voidsetPrimkeyField(String value)
    
public  voidsetReentrant(boolean value)
    
public  voidsetRemote(String value)
    
public  voidsetSecurityIdentity(SecurityIdentity value)
    
public  voidsetTransactionType(TransactionType type)
    

Field Detail
abstractSchemaName
protected String abstractSchemaName(Code)



cmpField
protected List<CmpField> cmpField(Code)



cmpVersion
protected CmpVersion cmpVersion(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)



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)



persistenceType
protected PersistenceType persistenceType(Code)



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



postConstruct
protected List<LifecycleCallback> postConstruct(Code)



preDestroy
protected List<LifecycleCallback> preDestroy(Code)



primKeyClass
protected String primKeyClass(Code)



primkeyField
protected String primkeyField(Code)



query
protected List<Query> query(Code)



reentrant
protected boolean reentrant(Code)



remote
protected String remote(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)



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




Constructor Detail
EntityBean
public EntityBean()(Code)




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



addPostConstruct
public void addPostConstruct(String method)(Code)



addPreDestroy
public void addPreDestroy(String method)(Code)



getAbstractSchemaName
public String getAbstractSchemaName()(Code)



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



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



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



getCmpField
public List<CmpField> getCmpField()(Code)



getCmpVersion
public CmpVersion getCmpVersion()(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)



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)



getPersistenceType
public PersistenceType getPersistenceType()(Code)



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



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



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



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



getPrimKeyClass
public String getPrimKeyClass()(Code)



getPrimkeyField
public String getPrimkeyField()(Code)



getQuery
public List<Query> getQuery()(Code)



getReentrant
public boolean getReentrant()(Code)



getRemote
public String getRemote()(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)



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



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



getTransactionType
public TransactionType getTransactionType()(Code)



setAbstractSchemaName
public void setAbstractSchemaName(String value)(Code)



setCmpVersion
public void setCmpVersion(CmpVersion value)(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)



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)



setPersistenceType
public void setPersistenceType(PersistenceType value)(Code)



setPrimKeyClass
public void setPrimKeyClass(String value)(Code)



setPrimkeyField
public void setPrimkeyField(String value)(Code)



setReentrant
public void setReentrant(boolean value)(Code)



setRemote
public void setRemote(String value)(Code)



setSecurityIdentity
public void setSecurityIdentity(SecurityIdentity value)(Code)



setTransactionType
public void setTransactionType(TransactionType type)(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.