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.
-
EntityDescriptor()
- Create an instance of the deployment descriptor.
-
getContainerManagedField(int)
- Get the container-managed field at the given index.
-
getContainerManagedFields()
- Get the array of container-managed enterprise bean's fields.
-
getPrimaryKeyClass()
- Get the enterprise bean's primary key class.
-
setContainerManagedField(int, Field)
- Set the container-managed field at the given index.
-
setContainerManagedFields(Field[])
- Set the array of container-managed enterprise bean's fields.
-
setPrimaryKeyClass(Class)
- Get the enterprise bean's primary key class.
EntityDescriptor
public EntityDescriptor()
- Create an instance of the deployment descriptor.
getPrimaryKeyClass
public Class getPrimaryKeyClass()
- Get the enterprise bean's primary key class.
- Returns:
- The Class object for the primary key.
setPrimaryKeyClass
public void setPrimaryKeyClass(Class value)
- Get the enterprise bean's primary key class.
- Parameters:
- value - The Class object for the primary key.
getContainerManagedFields
public Field[] getContainerManagedFields()
- Get the array of container-managed enterprise bean's fields.
- Returns:
- The array of container-managed fields.
setContainerManagedFields
public void setContainerManagedFields(Field values[])
- Set the array of container-managed enterprise bean's fields.
- Parameters:
- value - The array of container-managed fields.
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.
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