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
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected booleanprotected Stringprotected Stringstatic final Stringstatic final StringFields inherited from interface com.sun.enterprise.deployment.EjbDescriptor
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.EjbEntityDescriptor(EjbDescriptor other) The copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the persistence type for this entity bean.getType()Returns the type of this bean.booleanvoidprint(StringBuffer toStringBuffer) Return my formatted string representation.voidsetPersistenceType(String persistenceType) Sets the persistence type for this entity bean.voidsetPrimaryKeyClassName(String primaryKeyClassName) Set the classname of the primary key used by this bean.voidsetReentrant(boolean isReentrant) Sets the isReentrant flag for this bean.voidsetReentrant(String reentrantString) voidsetTransactionType(String transactionType) Sets the transaction type for this entity beanMethods inherited from class org.glassfish.ejb.deployment.descriptor.EjbDescriptor
addAroundInvokeDescriptor, addAroundTimeoutDescriptor, addFrameworkInterceptor, addNoInterfaceLocalBeanClass, applyDefaultClassToLifecycleMethods, applyInterceptors, copyEjbDescriptor, getAroundInvokeDescriptorByClass, getAroundInvokeDescriptors, getAroundInvokeInterceptors, getAroundTimeoutDescriptorByClass, getAroundTimeoutDescriptors, getAroundTimeoutInterceptors, getCallbackInterceptors, getContainerTransactionFor, getEjbBundleDescriptor, getEJBLocalObjectImplClassName, getEJBObjectImplClassName, getFrameworkInterceptors, getIASEjbExtraDescriptors, getLifecycleCallbackDescriptors, getLocalHomeImplClassName, getMethodContainerTransactions, getMethods, getNoInterfaceLocalBeanClasses, getRemoteHomeImplClassName, getSecurityIdentityDescription, getTransactionMethodDescriptors, getTransactionMethods, hasAroundInvokeMethod, hasAroundTimeoutMethod, setContainerTransactionFor, setEjbBundleDescriptor, setEJBLocalObjectImplClassName, setEJBObjectImplClassName, setLocalHomeImplClassName, setMethodContainerTransactions, setRemoteHomeImplClassName, setSecurityIdentityDescription, setUsesDefaultTransaction, visitMethods inherited from class com.sun.enterprise.deployment.EjbBeanDescriptor
addAllInterfaceMethodsIn, addEjbReferenceDescriptor, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addInterceptorClass, addIORConfigurationDescriptor, addLocalBusinessClassName, addMessageDestinationReferenceDescriptor, addMethodLevelChain, addPermissionedMethod, addPostConstructDescriptor, addPreDestroyDescriptor, addRemoteBusinessClassName, addResourceDescriptor, addResourceEnvReferenceDescriptor, addResourceReferenceDescriptor, addRoleReference, addScheduledTimerDescriptor, addScheduledTimerDescriptorFromDD, addServiceReferenceDescriptor, allMechanismsRequireSSL, appendToInterceptorChain, copyEjbDescriptor, getAllResourcesDescriptors, getAllResourcesDescriptors, getApplication, getDenyAllMethodPermission, getEjbClassName, getEjbReference, getEjbReferenceDescriptors, getEjbTimeoutMethod, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getHomeClassName, getInjectableResourcesByClass, getInjectionInfoByClass, getInterceptorChain, getInterceptorClasses, getInterceptorClassNames, getIORConfigurationDescriptors, getJndiName, getLocalBusinessClassNames, getLocalClassName, getLocalHomeClassName, getMappedName, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getMethodDescriptors, getMethodInterceptorsMap, getMethodPermissionsFor, getMethodPermissionsFromDD, getName, getPermissionedMethodsByPermission, getPermissionedRoles, getPermitAllMethodDescriptors, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getRemoteBusinessClassNames, getRemoteClassName, getResourceDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceByName, getResourceReferenceDescriptors, getResourceReferenceDescriptors, getRoleReferenceByName, getRoleReferences, getRunAsIdentity, getScheduledTimerDescriptors, getSecurityBusinessMethodDescriptors, getServiceReferenceByName, getServiceReferenceDescriptors, getStyledPermissionedMethodsByPermission, getTransactionType, getTxBusinessMethodDescriptors, getUniqueId, getUsesCallerIdentity, getWebServiceEndpointInterfaceName, hasInterceptorClass, hasScheduledTimerMethodFromDD, hasWebServiceEndpointInterface, isLocalBean, isLocalBusinessInterfacesSupported, isLocalInterfacesSupported, isRemoteBusinessInterfacesSupported, isRemoteInterfacesSupported, isTimedObject, notifyNewModule, removeEjbReferenceDescriptor, removeEnvironmentProperty, removeMessageDestinationReferenceDescriptor, removePermissionedMethod, removeResourceDescriptor, removeResourceEnvReferenceDescriptor, removeResourceReferenceDescriptor, removeRole, removeRoleReference, removeServiceReferenceDescriptor, setEjbClassName, setEjbTimeoutMethod, setHomeClassName, setInterceptorChain, setInterceptorClasses, setJndiName, setLocalBean, setLocalClassName, setLocalHomeClassName, setMappedName, setMethodInterceptorsMap, setRemoteClassName, setRunAsIdentity, setUniqueId, setUsesCallerIdentity, setWebServiceEndpointInterfaceNameMethods inherited from class com.sun.enterprise.deployment.CommonResourceDescriptor
getResourceDescriptorMethods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUriMethods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sun.enterprise.deployment.EjbDescriptor
getEjbImplClassName
-
Field Details
-
TYPE
- See Also:
-
BEAN_PERSISTENCE
- See Also:
-
CONTAINER_PERSISTENCE
- See Also:
-
TRUE
- See Also:
-
FALSE
- See Also:
-
persistenceType
-
isReentrant
protected boolean isReentrant -
-
-
Constructor Details
-
EjbEntityDescriptor
public EjbEntityDescriptor()The default constructor. -
EjbEntityDescriptor
The copy constructor.
-
-
Method Details
-
getEjbTypeForDisplay
-
setTransactionType
Sets the transaction type for this entity bean.\- Overrides:
setTransactionTypein classcom.sun.enterprise.deployment.EjbBeanDescriptor- Throws:
IllegalArgumentException- if this type is notEjbDescriptor.CONTAINER_TRANSACTION_TYPE.
-
getContainerFactoryQualifier
- Specified by:
getContainerFactoryQualifierin classEjbDescriptor
-
isReentrant
public boolean isReentrant()- Returns:
- true if this entity bean is reentrant, false else.
-
getReentrant
-
setReentrant
-
setReentrant
public void setReentrant(boolean isReentrant) Sets the isReentrant flag for this bean. -
getPersistenceType
Returns the persistence type for this entity bean. Defaults to BEAN_PERSISTENCE. -
setPersistenceType
Sets the persistence type for this entity bean. Allowable values are BEAN_PERSISTENCE or CONTAINER_PERSISTENCE, or else an IllegalArgumentException is thrown. -
getPrimaryKeyClassName
- Returns:
- the classname of the primary key for this bean, or the empty string if none has been set.
-
setPrimaryKeyClassName
Set the classname of the primary key used by this bean. -
getType
Returns the type of this bean. EjbEntityDescriptor.TYPE -
print
Return my formatted string representation.- Overrides:
printin classEjbDescriptor
-