All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----javax.ejb.deployment.DeploymentDescriptor | +----javax.ejb.deployment.EntityDescriptor
A serialized instance of the EntityDescriptor class is used as the standard format for passing the entity enterprise Bean's declarative deployment attributes in the ejb-jar file.
The Bean provider tools use the setter functions to initialize an instance of the deployment descriptor. The Bean provider tools then serialize the instance into the ejb-jar file.
The getter functions are used by the container tools at deployment time. The tools deserialize the instance from the ejb-jar file, and use the getter functions to obtain information about the enterprise Bean.
Note that the Enterprise JavaBeans architecture does not prescribe whether the actual deployment descriptor class is used by the container at runtime. Therefore, the container is allowed to import the information from the deployment descriptor at deployment time, and store the information in a container-specific format. The container is however required to enforce the declarative attributes at runtime, as specified by the Enterprise JavaBeans specification.
After an enterprise Bean has been installed into a container, the container tools can be then used to view and change the values of the deployment attributes. As changing the values of the deployment descriptor attributes may alter the semantics of a deployed application, the container may restrict changes to certain attributes.
The methods of the EntityDescriptor class conform to the JavaBeans property design pattern.
public EntityDescriptor()
public String getPrimaryKeyClassName()
public void setPrimaryKeyClassName(String value)
public Field[] getContainerManagedFields()
public void setContainerManagedFields(Field values[])
public Field getContainerManagedFields(int index)
public void setContainerManagedFields(int index, Field value)
All Packages Class Hierarchy This Package Previous Next Index