Class EjbEntityDescriptor

java.lang.Object
java.util.Observable
org.glassfish.deployment.common.DynamicAttributesDescriptor
org.glassfish.deployment.common.Descriptor
com.sun.enterprise.deployment.CommonResourceDescriptor
com.sun.enterprise.deployment.EjbBeanDescriptor
org.glassfish.ejb.deployment.descriptor.EjbDescriptor
org.glassfish.ejb.deployment.descriptor.EjbEntityDescriptor
All Implemented Interfaces:
com.sun.enterprise.deployment.EjbDescriptor, com.sun.enterprise.deployment.JndiNameEnvironment, com.sun.enterprise.deployment.NamedDescriptor, com.sun.enterprise.deployment.types.EjbReferenceContainer, com.sun.enterprise.deployment.types.MessageDestinationReferenceContainer, com.sun.enterprise.deployment.types.ResourceEnvReferenceContainer, com.sun.enterprise.deployment.types.ResourceReferenceContainer, com.sun.enterprise.deployment.types.ServiceReferenceContainer, com.sun.enterprise.deployment.WritableJndiNameEnvironment, Serializable
Direct Known Subclasses:
EjbCMPEntityDescriptor

public class EjbEntityDescriptor extends EjbDescriptor
This class contains deployment information for an EntityBean with bean-managed persistence. Subclasses contains additional information for EJB1.1/EJB2.0 CMP EntityBeans.
Author:
Danny Coward, Sanjeev Krishnan, Vivek Nagar
See Also:
  • Field Details

  • Constructor Details

    • EjbEntityDescriptor

      public EjbEntityDescriptor()
      The default constructor.
    • EjbEntityDescriptor

      public EjbEntityDescriptor(EjbDescriptor other)
      The copy constructor.
  • Method Details

    • getEjbTypeForDisplay

      public String getEjbTypeForDisplay()
    • setTransactionType

      public void setTransactionType(String transactionType)
      Sets the transaction type for this entity bean.\
      Overrides:
      setTransactionType in class com.sun.enterprise.deployment.EjbBeanDescriptor
      Throws:
      IllegalArgumentException - if this type is not EjbDescriptor.CONTAINER_TRANSACTION_TYPE.
    • getContainerFactoryQualifier

      public String getContainerFactoryQualifier()
      Specified by:
      getContainerFactoryQualifier in class EjbDescriptor
    • isReentrant

      public boolean isReentrant()
      Returns:
      true if this entity bean is reentrant, false else.
    • getReentrant

      public String getReentrant()
    • setReentrant

      public void setReentrant(String reentrantString)
    • setReentrant

      public void setReentrant(boolean isReentrant)
      Sets the isReentrant flag for this bean.
    • getPersistenceType

      public String getPersistenceType()
      Returns the persistence type for this entity bean. Defaults to BEAN_PERSISTENCE.
    • setPersistenceType

      public void setPersistenceType(String persistenceType)
      Sets the persistence type for this entity bean. Allowable values are BEAN_PERSISTENCE or CONTAINER_PERSISTENCE, or else an IllegalArgumentException is thrown.
    • getPrimaryKeyClassName

      public String getPrimaryKeyClassName()
      Returns:
      the classname of the primary key for this bean, or the empty string if none has been set.
    • setPrimaryKeyClassName

      public void setPrimaryKeyClassName(String primaryKeyClassName)
      Set the classname of the primary key used by this bean.
    • getType

      public String getType()
      Returns the type of this bean. EjbEntityDescriptor.TYPE
    • print

      public void print(StringBuffer toStringBuffer)
      Return my formatted string representation.
      Overrides:
      print in class EjbDescriptor