|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityBeanType
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.
Java 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>
| Method Detail |
|---|
DescriptionType[] getDescription()
DescriptionTypeDescriptionType getDescription(int idx)
DescriptionTypeint getDescriptionLength()
void setDescription(DescriptionType[] values)
values - allowed objects are
DescriptionType
DescriptionType setDescription(int idx,
DescriptionType value)
value - allowed object is
DescriptionTypeDisplayNameType[] getDisplayName()
DisplayNameTypeDisplayNameType getDisplayName(int idx)
DisplayNameTypeint getDisplayNameLength()
void setDisplayName(DisplayNameType[] values)
values - allowed objects are
DisplayNameType
DisplayNameType setDisplayName(int idx,
DisplayNameType value)
value - allowed object is
DisplayNameTypeIconType[] getIcon()
IconTypeIconType getIcon(int idx)
IconTypeint getIconLength()
void setIcon(IconType[] values)
values - allowed objects are
IconType
IconType setIcon(int idx,
IconType value)
value - allowed object is
IconTypeEjbNameType getEjbName()
EjbNameTypevoid setEjbName(EjbNameType value)
value - allowed object is
EjbNameTypeXsdStringType getMappedName()
XsdStringTypevoid setMappedName(XsdStringType value)
value - allowed object is
XsdStringTypeHomeType getHome()
HomeTypevoid setHome(HomeType value)
value - allowed object is
HomeTypeRemoteType getRemote()
RemoteTypevoid setRemote(RemoteType value)
value - allowed object is
RemoteTypeLocalHomeType getLocalHome()
LocalHomeTypevoid setLocalHome(LocalHomeType value)
value - allowed object is
LocalHomeTypeLocalType getLocal()
LocalTypevoid setLocal(LocalType value)
value - allowed object is
LocalTypeEjbClassType getEjbClass()
EjbClassTypevoid setEjbClass(EjbClassType value)
value - allowed object is
EjbClassTypePersistenceTypeType getPersistenceType()
PersistenceTypeTypevoid setPersistenceType(PersistenceTypeType value)
value - allowed object is
PersistenceTypeTypeFullyQualifiedClassType getPrimKeyClass()
FullyQualifiedClassTypevoid setPrimKeyClass(FullyQualifiedClassType value)
value - allowed object is
FullyQualifiedClassTypeTrueFalseType getReentrant()
TrueFalseTypevoid setReentrant(TrueFalseType value)
value - allowed object is
TrueFalseTypeCmpVersionType getCmpVersion()
CmpVersionTypevoid setCmpVersion(CmpVersionType value)
value - allowed object is
CmpVersionTypeJavaIdentifierType getAbstractSchemaName()
JavaIdentifierTypevoid setAbstractSchemaName(JavaIdentifierType value)
value - allowed object is
JavaIdentifierTypeCmpFieldType[] getCmpField()
CmpFieldTypeCmpFieldType getCmpField(int idx)
CmpFieldTypeint getCmpFieldLength()
void setCmpField(CmpFieldType[] values)
values - allowed objects are
CmpFieldType
CmpFieldType setCmpField(int idx,
CmpFieldType value)
value - allowed object is
CmpFieldTypeString getPrimkeyField()
Stringvoid setPrimkeyField(String value)
value - allowed object is
StringEnvEntryType[] getEnvEntry()
EnvEntryTypeEnvEntryType getEnvEntry(int idx)
EnvEntryTypeint getEnvEntryLength()
void setEnvEntry(EnvEntryType[] values)
values - allowed objects are
EnvEntryType
EnvEntryType setEnvEntry(int idx,
EnvEntryType value)
value - allowed object is
EnvEntryTypeEjbRefType[] getEjbRef()
EjbRefTypeEjbRefType getEjbRef(int idx)
EjbRefTypeint getEjbRefLength()
void setEjbRef(EjbRefType[] values)
values - allowed objects are
EjbRefType
EjbRefType setEjbRef(int idx,
EjbRefType value)
value - allowed object is
EjbRefTypeEjbLocalRefType[] getEjbLocalRef()
EjbLocalRefTypeEjbLocalRefType getEjbLocalRef(int idx)
EjbLocalRefTypeint getEjbLocalRefLength()
void setEjbLocalRef(EjbLocalRefType[] values)
values - allowed objects are
EjbLocalRefType
EjbLocalRefType setEjbLocalRef(int idx,
EjbLocalRefType value)
value - allowed object is
EjbLocalRefTypeServiceRefType[] getServiceRef()
ServiceRefTypeServiceRefType getServiceRef(int idx)
ServiceRefTypeint getServiceRefLength()
void setServiceRef(ServiceRefType[] values)
values - allowed objects are
ServiceRefType
ServiceRefType setServiceRef(int idx,
ServiceRefType value)
value - allowed object is
ServiceRefTypeResourceRefType[] getResourceRef()
ResourceRefTypeResourceRefType getResourceRef(int idx)
ResourceRefTypeint getResourceRefLength()
void setResourceRef(ResourceRefType[] values)
values - allowed objects are
ResourceRefType
ResourceRefType setResourceRef(int idx,
ResourceRefType value)
value - allowed object is
ResourceRefTypeResourceEnvRefType[] getResourceEnvRef()
ResourceEnvRefTypeResourceEnvRefType getResourceEnvRef(int idx)
ResourceEnvRefTypeint getResourceEnvRefLength()
void setResourceEnvRef(ResourceEnvRefType[] values)
values - allowed objects are
ResourceEnvRefType
ResourceEnvRefType setResourceEnvRef(int idx,
ResourceEnvRefType value)
value - allowed object is
ResourceEnvRefTypeMessageDestinationRefType[] getMessageDestinationRef()
MessageDestinationRefTypeMessageDestinationRefType getMessageDestinationRef(int idx)
MessageDestinationRefTypeint getMessageDestinationRefLength()
void setMessageDestinationRef(MessageDestinationRefType[] values)
values - allowed objects are
MessageDestinationRefType
MessageDestinationRefType setMessageDestinationRef(int idx,
MessageDestinationRefType value)
value - allowed object is
MessageDestinationRefTypePersistenceContextRefType[] getPersistenceContextRef()
PersistenceContextRefTypePersistenceContextRefType getPersistenceContextRef(int idx)
PersistenceContextRefTypeint getPersistenceContextRefLength()
void setPersistenceContextRef(PersistenceContextRefType[] values)
values - allowed objects are
PersistenceContextRefType
PersistenceContextRefType setPersistenceContextRef(int idx,
PersistenceContextRefType value)
value - allowed object is
PersistenceContextRefTypePersistenceUnitRefType[] getPersistenceUnitRef()
PersistenceUnitRefTypePersistenceUnitRefType getPersistenceUnitRef(int idx)
PersistenceUnitRefTypeint getPersistenceUnitRefLength()
void setPersistenceUnitRef(PersistenceUnitRefType[] values)
values - allowed objects are
PersistenceUnitRefType
PersistenceUnitRefType setPersistenceUnitRef(int idx,
PersistenceUnitRefType value)
value - allowed object is
PersistenceUnitRefTypeLifecycleCallbackType[] getPostConstruct()
LifecycleCallbackTypeLifecycleCallbackType getPostConstruct(int idx)
LifecycleCallbackTypeint getPostConstructLength()
void setPostConstruct(LifecycleCallbackType[] values)
values - allowed objects are
LifecycleCallbackType
LifecycleCallbackType setPostConstruct(int idx,
LifecycleCallbackType value)
value - allowed object is
LifecycleCallbackTypeLifecycleCallbackType[] getPreDestroy()
LifecycleCallbackTypeLifecycleCallbackType getPreDestroy(int idx)
LifecycleCallbackTypeint getPreDestroyLength()
void setPreDestroy(LifecycleCallbackType[] values)
values - allowed objects are
LifecycleCallbackType
LifecycleCallbackType setPreDestroy(int idx,
LifecycleCallbackType value)
value - allowed object is
LifecycleCallbackTypeSecurityRoleRefType[] getSecurityRoleRef()
SecurityRoleRefTypeSecurityRoleRefType getSecurityRoleRef(int idx)
SecurityRoleRefTypeint getSecurityRoleRefLength()
void setSecurityRoleRef(SecurityRoleRefType[] values)
values - allowed objects are
SecurityRoleRefType
SecurityRoleRefType setSecurityRoleRef(int idx,
SecurityRoleRefType value)
value - allowed object is
SecurityRoleRefTypeSecurityIdentityType getSecurityIdentity()
SecurityIdentityTypevoid setSecurityIdentity(SecurityIdentityType value)
value - allowed object is
SecurityIdentityTypeQueryType[] getQuery()
QueryTypeQueryType getQuery(int idx)
QueryTypeint getQueryLength()
void setQuery(QueryType[] values)
values - allowed objects are
QueryType
QueryType setQuery(int idx,
QueryType value)
value - allowed object is
QueryTypeString getId()
Stringvoid setId(String value)
value - allowed object is
String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||