com.sun.enterprise.deployment
Class EjbEntityDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.EjbAbstractDescriptor
                  extended by com.sun.enterprise.deployment.EjbDescriptor
                      extended by com.sun.enterprise.deployment.EjbEntityDescriptor
All Implemented Interfaces:
JndiNameEnvironment, NamedDescriptor, EjbReferenceContainer, MessageDestinationReferenceContainer, ResourceEnvReferenceContainer, ResourceReferenceContainer, ServiceReferenceContainer, WritableJndiNameEnvironment, java.io.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:
Serialized Form

Field Summary
static java.lang.String BEAN_PERSISTENCE
           
static java.lang.String CONTAINER_PERSISTENCE
           
static java.lang.String FALSE
           
protected  boolean isReentrant
           
protected  java.lang.String persistenceType
           
protected  java.lang.String primaryKeyClassName
           
static java.lang.String TRUE
           
static java.lang.String TYPE
           
 
Fields inherited from class com.sun.enterprise.deployment.EjbDescriptor
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE, DISTRIBUTED_TRANSACTION_SCOPE, isDistributedTxScope, LOCAL_TRANSACTION_SCOPE, runAsIdentity, securityIdentityDescription, transactionType, usesCallerIdentity, usesDefaultTransaction
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
EjbEntityDescriptor()
          The default constructor.
EjbEntityDescriptor(EjbDescriptor other)
          The copy constructor.
 
Method Summary
 java.lang.String getPersistenceType()
          Returns the persistence type for this entity bean.
 java.lang.String getPrimaryKeyClassName()
          Return the classname of the primary key for this bean, or the empty string if none has been set.
 java.lang.String getReentrant()
           
 java.lang.String getTransactionType()
          Gets the container transaction type for this entity bean.
 java.lang.String getType()
          Returns the type of this bean.
 boolean isReentrant()
          Return true if this entity bean is reentrant, false else.
 void print(java.lang.StringBuffer toStringBuffer)
          Return my formatted string representation.
 void replaceEntityDescriptor(EjbEntityDescriptor oldEntityDesc)
          Replace all pointers to the old EntityDescriptor in this app with myself.
 void setPersistenceType(java.lang.String persistenceType)
          Sets the persistence type for this entity bean.
 void setPrimaryKeyClassName(java.lang.String primaryKeyClassName)
          Set the classname of the primary key used by this bean.
 void setReentrant(boolean isReentrant)
          Sets the isReentrant flag for this bean.
 void setReentrant(java.lang.String reentrantString)
           
 void setTransactionType(java.lang.String transactionType)
          Sets the transaction type for this entity bean.
 void setType(java.lang.String type)
          Sets my type String.
 
Methods inherited from class com.sun.enterprise.deployment.EjbDescriptor
addAllInterfaceMethodsIn, addAroundInvokeDescriptor, addAroundTimeoutDescriptor, addDataSourceDefinitionDescriptor, addEjbDescriptor, addEjbReferenceDescriptor, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addFrameworkInterceptor, addInterceptorClass, addIORConfigurationDescriptor, addJmsDestinationReferenceDescriptor, addMessageDestinationReferenceDescriptor, addMethodLevelChain, addPermissionedMethod, addPostConstructDescriptor, addPreDestroyDescriptor, addResourceReferenceDescriptor, addRoleReference, addScheduledTimerDescriptor, addScheduledTimerDescriptorFromDD, addServiceReferenceDescriptor, allMechanismsRequireSSL, appendToInterceptorChain, applyDefaultClassToLifecycleMethods, applyInterceptors, getAllEjbReferencers, getApplication, getAroundInvokeDescriptorByClass, getAroundInvokeDescriptors, getAroundInvokeInterceptors, getAroundTimeoutDescriptorByClass, getAroundTimeoutDescriptors, getAroundTimeoutInterceptors, getBusinessMethodDescriptorFor, getCallbackInterceptors, getClientBusinessMethodDescriptors, getContainerTransaction, getContainerTransactionFor, getDataSourceDefinitionDescriptors, getEjbBundleDescriptor, getEjbClassName, getEjbImplClassName, getEJBLocalObjectImplClassName, getEJBObjectImplClassName, getEjbReference, getEjbReferenceDescriptors, getEjbTimeoutMethod, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getExcludedMethodDescriptors, getFieldDescriptors, getFields, getFrameworkInterceptors, getIASEjbExtraDescriptors, getInjectableResourcesByClass, getInjectionInfoByClass, getInterceptorChain, getInterceptorClasses, getInterceptorClassNames, getIORConfigurationDescriptors, getJmsDestinationReferenceByName, getJmsDestinationReferenceDescriptors, getLocalHomeImplClassName, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getMethodContainerTransactions, getMethodDescriptors, getMethodInterceptorsMap, getMethodPermissionsFor, getMethodPermissionsFromDD, getMethods, getMethods, getOptionalLocalBusinessMethods, getPermissionedMethodsByPermission, getPermissionedRoles, getPossibleTransactionAttributes, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getRemoteHomeImplClassName, getResourceReferenceByName, getResourceReferenceDescriptors, getResourceReferenceDescriptors, getRoleReferenceByName, getRoleReferences, getRunAsIdentity, getScheduledTimerDescriptors, getSecurityBusinessMethodDescriptors, getSecurityIdentityDescription, getServiceReferenceByName, getServiceReferenceDescriptors, getStyledPermissionedMethodsByPermission, getTransactionMethodDescriptors, getTransactionMethods, getTxBusinessMethodDescriptors, getUncheckedMethodDescriptors, getUniqueId, getUsesCallerIdentity, hasAroundInvokeMethod, hasAroundTimeoutMethod, hasInterceptorClass, hasPostConstructMethod, hasPreDestroyMethod, hasResolvedResourceReferences, hasScheduledTimerMethodFromDD, isDistributedTransactionScope, isTimedObject, isUsesDefaultTransaction, notifyNewModule, removeDataSourceDefinitionDescriptor, removeEjbReferenceDescriptor, removeEjbReferencer, removeEnvironmentProperty, removeJmsDestinationReferenceDescriptor, removeMessageDestinationReferenceDescriptor, removePermissionedMethod, removeResourceReferenceDescriptor, removeRoleReference, removeServiceReferenceDescriptor, setContainerTransactionFor, setDistributedTransactionScope, setEjbBundleDescriptor, setEjbClassName, setEJBLocalObjectImplClassName, setEJBObjectImplClassName, setEjbTimeoutMethod, setLocalHomeImplClassName, setMethodContainerTransactions, setRemoteHomeImplClassName, setRunAsIdentity, setSecurityIdentityDescription, setUniqueId, setUsesCallerIdentity, setUsesDefaultTransaction, visit, visit
 
Methods inherited from class com.sun.enterprise.deployment.EjbAbstractDescriptor
addLocalBusinessClassName, addNoInterfaceLocalBeanClass, addRemoteBusinessClassName, getHomeClassName, getJndiName, getLocalBusinessClassNames, getLocalClassName, getLocalHomeClassName, getMappedName, getNoInterfaceLocalBeanClasses, getRemoteBusinessClassNames, getRemoteClassName, getWebServiceEndpointInterfaceName, hasWebServiceEndpointInterface, isLocalBean, isLocalBusinessInterfacesSupported, isLocalInterfacesSupported, isRemoteBusinessInterfacesSupported, isRemoteInterfacesSupported, setHomeClassName, setJndiName, setLocalBean, setLocalClassName, setLocalHomeClassName, setMappedName, setRemoteClassName, setWebServiceEndpointInterfaceName
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri
 
Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.enterprise.deployment.NamedDescriptor
getName
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

BEAN_PERSISTENCE

public static final java.lang.String BEAN_PERSISTENCE
See Also:
Constant Field Values

CONTAINER_PERSISTENCE

public static final java.lang.String CONTAINER_PERSISTENCE
See Also:
Constant Field Values

TRUE

public static final java.lang.String TRUE
See Also:
Constant Field Values

FALSE

public static final java.lang.String FALSE
See Also:
Constant Field Values

persistenceType

protected java.lang.String persistenceType

isReentrant

protected boolean isReentrant

primaryKeyClassName

protected java.lang.String primaryKeyClassName
Constructor Detail

EjbEntityDescriptor

public EjbEntityDescriptor()
The default constructor.


EjbEntityDescriptor

public EjbEntityDescriptor(EjbDescriptor other)
The copy constructor.

Method Detail

replaceEntityDescriptor

public void replaceEntityDescriptor(EjbEntityDescriptor oldEntityDesc)
Replace all pointers to the old EntityDescriptor in this app with myself. Used when user switches from BMP to CMP or vice versa in deploytool wizard.


getTransactionType

public java.lang.String getTransactionType()
Gets the container transaction type for this entity bean. Entity beans always have CONTAINER_TRANSACTION_TYPE transaction type.

Overrides:
getTransactionType in class EjbDescriptor

setTransactionType

public void setTransactionType(java.lang.String transactionType)
Sets the transaction type for this entity bean. Throws an illegal argument exception if this type is not CONTAINER_TRANSACTION_TYPE.

Specified by:
setTransactionType in class EjbDescriptor

isReentrant

public boolean isReentrant()
Return true if this entity bean is reentrant, false else.


getReentrant

public java.lang.String getReentrant()

setReentrant

public void setReentrant(java.lang.String reentrantString)

setReentrant

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


getPersistenceType

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


setPersistenceType

public void setPersistenceType(java.lang.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 java.lang.String getPrimaryKeyClassName()
Return the classname of the primary key for this bean, or the empty string if none has been set.


setPrimaryKeyClassName

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


getType

public java.lang.String getType()
Returns the type of this bean. EjbEntityDescriptor.TYPE

Specified by:
getType in class EjbAbstractDescriptor

setType

public void setType(java.lang.String type)
Sets my type String.

Specified by:
setType in class EjbAbstractDescriptor

print

public void print(java.lang.StringBuffer toStringBuffer)
Return my formatted string representation.

Overrides:
print in class EjbDescriptor


Copyright © 2012 GlassFish Community. All Rights Reserved.