Package org.apache.openejb.jee
Class EntityBean
- java.lang.Object
-
- org.apache.openejb.jee.EntityBean
-
- All Implemented Interfaces:
EnterpriseBean,JndiConsumer,Lifecycle,RemoteBean
public class EntityBean extends Object implements RemoteBean
ejb-jar_3_1.xsdJava class for entity-beanType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="entity-beanType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <group ref="{http://java.sun.com/xml/ns/javaee}descriptionGroup"/> <element name="ejb-name" type="{http://java.sun.com/xml/ns/javaee}ejb-nameType"/> <element name="mapped-name" type="{http://java.sun.com/xml/ns/javaee}xsdStringType" minOccurs="0"/> <element name="home" type="{http://java.sun.com/xml/ns/javaee}homeType" minOccurs="0"/> <element name="remote" type="{http://java.sun.com/xml/ns/javaee}remoteType" minOccurs="0"/> <element name="local-home" type="{http://java.sun.com/xml/ns/javaee}local-homeType" minOccurs="0"/> <element name="local" type="{http://java.sun.com/xml/ns/javaee}localType" minOccurs="0"/> <element name="ejb-class" type="{http://java.sun.com/xml/ns/javaee}ejb-classType"/> <element name="persistence-type" type="{http://java.sun.com/xml/ns/javaee}persistence-typeType"/> <element name="prim-key-class" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType"/> <element name="reentrant" type="{http://java.sun.com/xml/ns/javaee}true-falseType"/> <element name="cmp-version" type="{http://java.sun.com/xml/ns/javaee}cmp-versionType" minOccurs="0"/> <element name="abstract-schema-name" type="{http://java.sun.com/xml/ns/javaee}java-identifierType" minOccurs="0"/> <element name="cmp-field" type="{http://java.sun.com/xml/ns/javaee}cmp-fieldType" maxOccurs="unbounded" minOccurs="0"/> <element name="primkey-field" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/> <group ref="{http://java.sun.com/xml/ns/javaee}jndiEnvironmentRefsGroup"/> <element name="security-role-ref" type="{http://java.sun.com/xml/ns/javaee}security-role-refType" maxOccurs="unbounded" minOccurs="0"/> <element name="security-identity" type="{http://java.sun.com/xml/ns/javaee}security-identityType" minOccurs="0"/> <element name="query" type="{http://java.sun.com/xml/ns/javaee}queryType" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityBean()EntityBean(Class<?> ejbClass, PersistenceType persistenceType)EntityBean(String ejbName, String ejbClass, PersistenceType persistenceType)
-
Method Summary
-
-
-
Field Detail
-
description
protected TextMap description
-
displayName
protected TextMap displayName
-
icon
protected LocalCollection<Icon> icon
-
ejbName
protected String ejbName
-
mappedName
protected String mappedName
-
home
protected String home
-
remote
protected String remote
-
localHome
protected String localHome
-
local
protected String local
-
ejbClass
protected String ejbClass
-
persistenceType
protected PersistenceType persistenceType
-
primKeyClass
protected String primKeyClass
-
reentrant
protected boolean reentrant
-
cmpVersion
protected CmpVersion cmpVersion
-
abstractSchemaName
protected String abstractSchemaName
-
primkeyField
protected String primkeyField
-
envEntry
protected KeyedCollection<String,EnvEntry> envEntry
-
ejbRef
protected KeyedCollection<String,EjbRef> ejbRef
-
ejbLocalRef
protected KeyedCollection<String,EjbLocalRef> ejbLocalRef
-
serviceRef
protected KeyedCollection<String,ServiceRef> serviceRef
-
resourceRef
protected KeyedCollection<String,ResourceRef> resourceRef
-
resourceEnvRef
protected KeyedCollection<String,ResourceEnvRef> resourceEnvRef
-
messageDestinationRef
protected KeyedCollection<String,MessageDestinationRef> messageDestinationRef
-
persistenceContextRef
protected KeyedCollection<String,PersistenceContextRef> persistenceContextRef
-
persistenceUnitRef
protected KeyedCollection<String,PersistenceUnitRef> persistenceUnitRef
-
postConstruct
protected List<LifecycleCallback> postConstruct
-
preDestroy
protected List<LifecycleCallback> preDestroy
-
dataSource
protected KeyedCollection<String,DataSource> dataSource
-
jmsConnectionFactories
protected KeyedCollection<String,JMSConnectionFactory> jmsConnectionFactories
-
jmsDestinations
protected KeyedCollection<String,JMSDestination> jmsDestinations
-
securityRoleRef
protected List<SecurityRoleRef> securityRoleRef
-
securityIdentity
protected SecurityIdentity securityIdentity
-
id
protected String id
-
-
Constructor Detail
-
EntityBean
public EntityBean()
-
EntityBean
public EntityBean(String ejbName, String ejbClass, PersistenceType persistenceType)
-
EntityBean
public EntityBean(Class<?> ejbClass, PersistenceType persistenceType)
-
-
Method Detail
-
getJndiConsumerName
public String getJndiConsumerName()
- Specified by:
getJndiConsumerNamein interfaceJndiConsumer
-
getDescriptions
public Text[] getDescriptions()
-
setDescriptions
public void setDescriptions(Text[] text)
-
getDescription
public String getDescription()
-
getDisplayNames
public Text[] getDisplayNames()
-
setDisplayNames
public void setDisplayNames(Text[] text)
-
getDisplayName
public String getDisplayName()
-
getIcons
public Collection<Icon> getIcons()
-
getIcon
public Icon getIcon()
-
getEjbName
public String getEjbName()
- Specified by:
getEjbNamein interfaceEnterpriseBean
-
setEjbName
public void setEjbName(String value)
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 - Specified by:
setEjbNamein interfaceEnterpriseBean
-
getMappedName
public String getMappedName()
- Specified by:
getMappedNamein interfaceEnterpriseBean
-
setMappedName
public void setMappedName(String value)
- Specified by:
setMappedNamein interfaceEnterpriseBean
-
getHome
public String getHome()
- Specified by:
getHomein interfaceRemoteBean
-
setHome
public void setHome(String value)
- Specified by:
setHomein interfaceRemoteBean
-
getRemote
public String getRemote()
- Specified by:
getRemotein interfaceRemoteBean
-
setRemote
public void setRemote(String value)
- Specified by:
setRemotein interfaceRemoteBean
-
getLocalHome
public String getLocalHome()
- Specified by:
getLocalHomein interfaceRemoteBean
-
setLocalHome
public void setLocalHome(String value)
- Specified by:
setLocalHomein interfaceRemoteBean
-
getLocal
public String getLocal()
- Specified by:
getLocalin interfaceRemoteBean
-
setLocal
public void setLocal(String value)
- Specified by:
setLocalin interfaceRemoteBean
-
getEjbClass
public String getEjbClass()
- Specified by:
getEjbClassin interfaceEnterpriseBean
-
setEjbClass
public void setEjbClass(String value)
- Specified by:
setEjbClassin interfaceEnterpriseBean
-
setEjbClass
public void setEjbClass(Class value)
- Specified by:
setEjbClassin interfaceEnterpriseBean
-
getPersistenceType
public PersistenceType getPersistenceType()
-
setPersistenceType
public void setPersistenceType(PersistenceType value)
-
getPrimKeyClass
public String getPrimKeyClass()
-
setPrimKeyClass
public void setPrimKeyClass(String value)
-
getReentrant
public boolean getReentrant()
-
setReentrant
public void setReentrant(boolean value)
-
getCmpVersion
public CmpVersion getCmpVersion()
-
setCmpVersion
public void setCmpVersion(CmpVersion value)
-
getAbstractSchemaName
public String getAbstractSchemaName()
-
setAbstractSchemaName
public void setAbstractSchemaName(String value)
-
addCmpField
public void addCmpField(String fieldName)
-
getPrimkeyField
public String getPrimkeyField()
-
setPrimkeyField
public void setPrimkeyField(String value)
-
getEnvEntry
public Collection<EnvEntry> getEnvEntry()
- Specified by:
getEnvEntryin interfaceJndiConsumer
-
getEnvEntryMap
public Map<String,EnvEntry> getEnvEntryMap()
- Specified by:
getEnvEntryMapin interfaceJndiConsumer
-
getEjbRef
public Collection<EjbRef> getEjbRef()
- Specified by:
getEjbRefin interfaceJndiConsumer
-
getEjbRefMap
public Map<String,EjbRef> getEjbRefMap()
- Specified by:
getEjbRefMapin interfaceJndiConsumer
-
getEjbLocalRef
public Collection<EjbLocalRef> getEjbLocalRef()
- Specified by:
getEjbLocalRefin interfaceJndiConsumer
-
getEjbLocalRefMap
public Map<String,EjbLocalRef> getEjbLocalRefMap()
- Specified by:
getEjbLocalRefMapin interfaceJndiConsumer
-
getServiceRef
public Collection<ServiceRef> getServiceRef()
- Specified by:
getServiceRefin interfaceJndiConsumer
-
getServiceRefMap
public Map<String,ServiceRef> getServiceRefMap()
- Specified by:
getServiceRefMapin interfaceJndiConsumer
-
getResourceRef
public Collection<ResourceRef> getResourceRef()
- Specified by:
getResourceRefin interfaceJndiConsumer
-
getResourceRefMap
public Map<String,ResourceRef> getResourceRefMap()
- Specified by:
getResourceRefMapin interfaceJndiConsumer
-
getResourceEnvRef
public Collection<ResourceEnvRef> getResourceEnvRef()
- Specified by:
getResourceEnvRefin interfaceJndiConsumer
-
getResourceEnvRefMap
public Map<String,ResourceEnvRef> getResourceEnvRefMap()
- Specified by:
getResourceEnvRefMapin interfaceJndiConsumer
-
getMessageDestinationRef
public Collection<MessageDestinationRef> getMessageDestinationRef()
- Specified by:
getMessageDestinationRefin interfaceJndiConsumer
-
getMessageDestinationRefMap
public Map<String,MessageDestinationRef> getMessageDestinationRefMap()
- Specified by:
getMessageDestinationRefMapin interfaceJndiConsumer
-
getPersistenceContextRef
public Collection<PersistenceContextRef> getPersistenceContextRef()
- Specified by:
getPersistenceContextRefin interfaceJndiConsumer
-
getPersistenceContextRefMap
public Map<String,PersistenceContextRef> getPersistenceContextRefMap()
- Specified by:
getPersistenceContextRefMapin interfaceJndiConsumer
-
getPersistenceUnitRef
public Collection<PersistenceUnitRef> getPersistenceUnitRef()
- Specified by:
getPersistenceUnitRefin interfaceJndiConsumer
-
getPersistenceUnitRefMap
public Map<String,PersistenceUnitRef> getPersistenceUnitRefMap()
- Specified by:
getPersistenceUnitRefMapin interfaceJndiConsumer
-
getPostConstruct
public List<LifecycleCallback> getPostConstruct()
- Specified by:
getPostConstructin interfaceLifecycle
-
addPostConstruct
public void addPostConstruct(String method)
- Specified by:
addPostConstructin interfaceLifecycle
-
getPreDestroy
public List<LifecycleCallback> getPreDestroy()
- Specified by:
getPreDestroyin interfaceLifecycle
-
addPreDestroy
public void addPreDestroy(String method)
- Specified by:
addPreDestroyin interfaceLifecycle
-
getDataSource
public Collection<DataSource> getDataSource()
- Specified by:
getDataSourcein interfaceJndiConsumer
-
getDataSourceMap
public Map<String,DataSource> getDataSourceMap()
- Specified by:
getDataSourceMapin interfaceJndiConsumer
-
getSecurityRoleRef
public List<SecurityRoleRef> getSecurityRoleRef()
- Specified by:
getSecurityRoleRefin interfaceEnterpriseBean
-
getBusinessLocal
public Collection<String> getBusinessLocal()
- Specified by:
getBusinessLocalin interfaceRemoteBean
-
getBusinessRemote
public Collection<String> getBusinessRemote()
- Specified by:
getBusinessRemotein interfaceRemoteBean
-
getSecurityIdentity
public SecurityIdentity getSecurityIdentity()
- Specified by:
getSecurityIdentityin interfaceEnterpriseBean
-
setSecurityIdentity
public void setSecurityIdentity(SecurityIdentity value)
- Specified by:
setSecurityIdentityin interfaceEnterpriseBean
-
getId
public String getId()
- Specified by:
getIdin interfaceEnterpriseBean
-
setId
public void setId(String value)
- Specified by:
setIdin interfaceEnterpriseBean
-
getTransactionType
public TransactionType getTransactionType()
- Specified by:
getTransactionTypein interfaceEnterpriseBean
-
setTransactionType
public void setTransactionType(TransactionType type)
- Specified by:
setTransactionTypein interfaceEnterpriseBean
-
getJMSConnectionFactories
public Collection<JMSConnectionFactory> getJMSConnectionFactories()
- Specified by:
getJMSConnectionFactoriesin interfaceJndiConsumer
-
getJMSConnectionFactoriesMap
public Map<String,JMSConnectionFactory> getJMSConnectionFactoriesMap()
- Specified by:
getJMSConnectionFactoriesMapin interfaceJndiConsumer
-
getJMSDestination
public Collection<JMSDestination> getJMSDestination()
- Specified by:
getJMSDestinationin interfaceJndiConsumer
-
getJMSDestinationMap
public Map<String,JMSDestination> getJMSDestinationMap()
- Specified by:
getJMSDestinationMapin interfaceJndiConsumer
-
-