| |
|
| 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.
|
Method Summary | |
public void | addAroundInvoke(String method) | public void | addPostConstruct(String method) | public void | addPreDestroy(String method) | public String | getAbstractSchemaName() | public List<AroundInvoke> | getAroundInvoke() | public Collection<String> | getBusinessLocal() | public Collection<String> | getBusinessRemote() | public List<CmpField> | getCmpField() | public CmpVersion | getCmpVersion() | public String | getDescription() | public Text[] | getDescriptions() | public String | getDisplayName() | public Text[] | getDisplayNames() | public String | getEjbClass() | public Collection<EjbLocalRef> | getEjbLocalRef() | public Map<String, EjbLocalRef> | getEjbLocalRefMap() | public String | getEjbName() | public Collection<EjbRef> | getEjbRef() | public Map<String, EjbRef> | getEjbRefMap() | public Collection<EnvEntry> | getEnvEntry() | public Map<String, EnvEntry> | getEnvEntryMap() | public String | getHome() | public Icon | getIcon() | public Map<String, Icon> | getIconMap() | public Collection<Icon> | getIcons() | public String | getId() | public String | getJndiConsumerName() | public String | getLocal() | public String | getLocalHome() | public String | getMappedName() | public Collection<MessageDestinationRef> | getMessageDestinationRef() | public Map<String, MessageDestinationRef> | getMessageDestinationRefMap() | public Collection<PersistenceContextRef> | getPersistenceContextRef() | public Map<String, PersistenceContextRef> | getPersistenceContextRefMap() | public PersistenceType | getPersistenceType() | public Collection<PersistenceUnitRef> | getPersistenceUnitRef() | public Map<String, PersistenceUnitRef> | getPersistenceUnitRefMap() | public List<LifecycleCallback> | getPostConstruct() | public List<LifecycleCallback> | getPreDestroy() | public String | getPrimKeyClass() | public String | getPrimkeyField() | public List<Query> | getQuery() | public boolean | getReentrant() | public String | getRemote() | public Collection<ResourceEnvRef> | getResourceEnvRef() | public Map<String, ResourceEnvRef> | getResourceEnvRefMap() | public Collection<ResourceRef> | getResourceRef() | public Map<String, ResourceRef> | getResourceRefMap() | public SecurityIdentity | getSecurityIdentity() | public List<SecurityRoleRef> | getSecurityRoleRef() | public Collection<ServiceRef> | getServiceRef() | public Map<String, ServiceRef> | getServiceRefMap() | public TransactionType | getTransactionType() | public void | setAbstractSchemaName(String value) | public void | setCmpVersion(CmpVersion value) | public void | setDescriptions(Text[] text) | public void | setDisplayNames(Text[] text) | public void | setEjbClass(String value) | public void | setEjbName(String value) The ejb-nameType specifies an enterprise bean's name. | public void | setHome(String value) | public void | setId(String value) | public void | setLocal(String value) | public void | setLocalHome(String value) | public void | setMappedName(String value) | public void | setPersistenceType(PersistenceType value) | public void | setPrimKeyClass(String value) | public void | setPrimkeyField(String value) | public void | setReentrant(boolean value) | public void | setRemote(String value) | public void | setSecurityIdentity(SecurityIdentity value) | public void | setTransactionType(TransactionType type) |
reentrant | protected boolean reentrant(Code) | | |
EntityBean | public EntityBean()(Code) | | |
addAroundInvoke | public void addAroundInvoke(String method)(Code) | | |
addPostConstruct | public void addPostConstruct(String method)(Code) | | |
getAbstractSchemaName | public String getAbstractSchemaName()(Code) | | |
getDescriptions | public Text[] getDescriptions()(Code) | | |
getDisplayNames | public Text[] getDisplayNames()(Code) | | |
getJndiConsumerName | public String getJndiConsumerName()(Code) | | |
getReentrant | public boolean getReentrant()(Code) | | |
setAbstractSchemaName | public void setAbstractSchemaName(String value)(Code) | | |
setDescriptions | public void setDescriptions(Text[] text)(Code) | | |
setDisplayNames | public void setDisplayNames(Text[] text)(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
|
setPrimKeyClass | public void setPrimKeyClass(String value)(Code) | | |
setPrimkeyField | public void setPrimkeyField(String value)(Code) | | |
setReentrant | public void setReentrant(boolean value)(Code) | | |
|
|
|