All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.ejb.deployment.EntityDescriptor

java.lang.Object
   |
   +----javax.ejb.deployment.DeploymentDescriptor
           |
           +----javax.ejb.deployment.EntityDescriptor

public class EntityDescriptor
extends DeploymentDescriptor
The SessionDescriptor class defines the deployment descriptor for an entity enterprise bean.

A serialized instance of a deployment descriptor class is used as the standard format for passing an enterprise bean's declarative attributes in the ejb-jar file. The deployment descriptor setter functions are used by the enterprise bean provider's tools to create the deployment descriptor before it is put into the ejb-jar file, and the getter functions are used by the container provider's tools to read the deployment descriptor from the ejb-jar file.


Constructor Index

 o EntityDescriptor()
Create an instance of the deployment descriptor.

Method Index

 o getContainerManagedField(int)
Get the container-managed field at the given index.
 o getContainerManagedFields()
Get the array of container-managed enterprise bean's fields.
 o getPrimaryKeyClass()
Get the enterprise bean's primary key class.
 o setContainerManagedField(int, Field)
Set the container-managed field at the given index.
 o setContainerManagedFields(Field[])
Set the array of container-managed enterprise bean's fields.
 o setPrimaryKeyClass(Class)
Get the enterprise bean's primary key class.

Constructors

 o EntityDescriptor
 public EntityDescriptor()
Create an instance of the deployment descriptor.

Methods

 o getPrimaryKeyClass
 public Class getPrimaryKeyClass()
Get the enterprise bean's primary key class.

Returns:
The Class object for the primary key.
 o setPrimaryKeyClass
 public void setPrimaryKeyClass(Class value)
Get the enterprise bean's primary key class.

Parameters:
value - The Class object for the primary key.
 o getContainerManagedFields
 public Field[] getContainerManagedFields()
Get the array of container-managed enterprise bean's fields.

Returns:
The array of container-managed fields.
 o setContainerManagedFields
 public void setContainerManagedFields(Field values[])
Set the array of container-managed enterprise bean's fields.

Parameters:
value - The array of container-managed fields.
 o getContainerManagedField
 public Field getContainerManagedField(int index)
Get the container-managed field at the given index.

Parameters:
index - The index of the field.
Returns:
The Field of the specified container-managed field.
 o setContainerManagedField
 public void setContainerManagedField(int index,
                                      Field value)
Set the container-managed field at the given index.

Parameters:
index - The index of the field.
value - The Field of the specified container-managed field.

All Packages  Class Hierarchy  This Package  Previous  Next  Index