Class EjbEntityDescriptor
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- com.sun.enterprise.deployment.CommonResourceDescriptor
-
- org.glassfish.ejb.deployment.descriptor.EjbDescriptor
-
- org.glassfish.ejb.deployment.descriptor.EjbEntityDescriptor
-
- All Implemented Interfaces:
EjbDescriptor
,JndiNameEnvironment
,NamedDescriptor
,EjbReferenceContainer
,MessageDestinationReferenceContainer
,ResourceEnvReferenceContainer
,ResourceReferenceContainer
,ServiceReferenceContainer
,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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BEAN_PERSISTENCE
static String
CONTAINER_PERSISTENCE
static String
FALSE
protected boolean
isReentrant
protected String
persistenceType
protected String
primaryKeyClassName
static String
TRUE
static String
TYPE
-
Fields inherited from class org.glassfish.ejb.deployment.descriptor.EjbDescriptor
DISTRIBUTED_TRANSACTION_SCOPE, isDistributedTxScope, LOCAL_TRANSACTION_SCOPE, runAsIdentity, securityIdentityDescription, transactionType, usesCallerIdentity, usesDefaultTransaction
-
Fields inherited from class org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
Fields inherited from interface com.sun.enterprise.deployment.EjbDescriptor
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE
-
-
Constructor Summary
Constructors Constructor Description EjbEntityDescriptor()
The default constructor.EjbEntityDescriptor(EjbDescriptor other)
The copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContainerFactoryQualifier()
String
getEjbTypeForDisplay()
String
getPersistenceType()
Returns the persistence type for this entity bean.String
getPrimaryKeyClassName()
Return the classname of the primary key for this bean, or the empty string if none has been set.String
getReentrant()
String
getTransactionType()
Gets the container transaction type for this entity bean.String
getType()
Returns the type of this bean.boolean
isReentrant()
Return true if this entity bean is reentrant, false else.void
print(StringBuilder toStringBuilder)
Return my formatted string representation.void
setPersistenceType(String persistenceType)
Sets the persistence type for this entity bean.void
setPrimaryKeyClassName(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(String reentrantString)
void
setTransactionType(String transactionType)
Sets the transaction type for this entity bean.void
setType(String type)
Sets my type String.-
Methods inherited from class org.glassfish.ejb.deployment.descriptor.EjbDescriptor
addAllInterfaceMethodsIn, addAroundInvokeDescriptor, addAroundTimeoutDescriptor, addEjbDescriptor, addEjbReferenceDescriptor, addEjbReferencer, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addFrameworkInterceptor, addInterceptorClass, addIORConfigurationDescriptor, addLocalBusinessClassName, addMessageDestinationReferenceDescriptor, addMethodLevelChain, addNoInterfaceLocalBeanClass, addPermissionedMethod, addPostConstructDescriptor, addPreDestroyDescriptor, addRemoteBusinessClassName, addResourceDescriptor, addResourceEnvReferenceDescriptor, addResourceReferenceDescriptor, addRoleReference, addScheduledTimerDescriptor, addScheduledTimerDescriptorFromDD, addServiceReferenceDescriptor, allMechanismsRequireSSL, appendToInterceptorChain, applyDefaultClassToLifecycleMethods, applyInterceptors, getAllEjbReferencers, getAllResourcesDescriptors, getAllResourcesDescriptors, getApplication, getAroundInvokeDescriptorByClass, getAroundInvokeDescriptors, getAroundInvokeInterceptors, getAroundTimeoutDescriptorByClass, getAroundTimeoutDescriptors, getAroundTimeoutInterceptors, getBusinessMethodDescriptorFor, getCallbackInterceptors, getClientBusinessMethodDescriptors, getContainerTransaction, getContainerTransactionFor, getEjbBundleDescriptor, getEjbClassName, getEjbImplClassName, getEJBLocalObjectImplClassName, getEJBObjectImplClassName, getEjbReference, getEjbReferenceDescriptors, getEjbTimeoutMethod, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getExcludedMethodDescriptors, getFieldDescriptors, getFields, getFrameworkInterceptors, getHomeClassName, getIASEjbExtraDescriptors, getInjectableResourcesByClass, getInjectionInfoByClass, getInterceptorChain, getInterceptorClasses, getInterceptorClassNames, getIORConfigurationDescriptors, getJndiName, getLifecycleCallbackDescriptors, getLocalBusinessClassNames, getLocalClassName, getLocalHomeClassName, getLocalHomeImplClassName, getMappedName, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getMethodContainerTransactions, getMethodDescriptors, getMethodInterceptorsMap, getMethodPermissionsFor, getMethodPermissionsFromDD, getMethods, getMethods, getNoInterfaceLocalBeanClasses, getOptionalLocalBusinessMethods, getPermissionedMethodsByPermission, getPermissionedRoles, getPossibleTransactionAttributes, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getRemoteBusinessClassNames, getRemoteClassName, getRemoteHomeImplClassName, getResourceDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceByName, getResourceReferenceDescriptors, getResourceReferenceDescriptors, getRoleReferenceByName, getRoleReferences, getRunAsIdentity, getScheduledTimerDescriptors, getSecurityBusinessMethodDescriptors, getSecurityIdentityDescription, getServiceReferenceByName, getServiceReferenceDescriptors, getStyledPermissionedMethodsByPermission, getTransactionMethodDescriptors, getTransactionMethods, getTxBusinessMethodDescriptors, getUncheckedMethodDescriptors, getUniqueId, getUsesCallerIdentity, getWebServiceEndpointInterfaceName, hasAroundInvokeMethod, hasAroundTimeoutMethod, hasInterceptorClass, hasPostConstructMethod, hasPreDestroyMethod, hasResolvedResourceReferences, hasScheduledTimerMethodFromDD, hasWebServiceEndpointInterface, isDistributedTransactionScope, isLocalBean, isLocalBusinessInterfacesSupported, isLocalInterfacesSupported, isRemoteBusinessInterfacesSupported, isRemoteInterfacesSupported, isTimedObject, isUsesDefaultTransaction, notifyNewModule, removeEjbReferenceDescriptor, removeEjbReferencer, removeEnvironmentProperty, removeMessageDestinationReferenceDescriptor, removePermissionedMethod, removeResourceDescriptor, removeResourceEnvReferenceDescriptor, removeResourceReferenceDescriptor, removeRoleReference, removeServiceReferenceDescriptor, setContainerTransactionFor, setDistributedTransactionScope, setEjbBundleDescriptor, setEjbClassName, setEJBLocalObjectImplClassName, setEJBObjectImplClassName, setEjbTimeoutMethod, setHomeClassName, setJndiName, setLocalBean, setLocalClassName, setLocalHomeClassName, setLocalHomeImplClassName, setMappedName, setMethodContainerTransactions, setRemoteClassName, setRemoteHomeImplClassName, setRunAsIdentity, setSecurityIdentityDescription, setUniqueId, setUsesCallerIdentity, setUsesDefaultTransaction, setWebServiceEndpointInterfaceName, visit, visit
-
Methods inherited from class com.sun.enterprise.deployment.CommonResourceDescriptor
getResourceDescriptor
-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, 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 org.glassfish.deployment.common.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 String TYPE
- See Also:
- Constant Field Values
-
BEAN_PERSISTENCE
public static final String BEAN_PERSISTENCE
- See Also:
- Constant Field Values
-
CONTAINER_PERSISTENCE
public static final String CONTAINER_PERSISTENCE
- See Also:
- Constant Field Values
-
TRUE
public static final String TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final String FALSE
- See Also:
- Constant Field Values
-
persistenceType
protected String persistenceType
-
isReentrant
protected boolean isReentrant
-
primaryKeyClassName
protected String primaryKeyClassName
-
-
Constructor Detail
-
EjbEntityDescriptor
public EjbEntityDescriptor()
The default constructor.
-
EjbEntityDescriptor
public EjbEntityDescriptor(EjbDescriptor other)
The copy constructor.
-
-
Method Detail
-
getEjbTypeForDisplay
public String getEjbTypeForDisplay()
- Specified by:
getEjbTypeForDisplay
in interfaceEjbDescriptor
- Specified by:
getEjbTypeForDisplay
in classEjbDescriptor
-
getTransactionType
public String getTransactionType()
Gets the container transaction type for this entity bean. Entity beans always have CONTAINER_TRANSACTION_TYPE transaction type.- Specified by:
getTransactionType
in interfaceEjbDescriptor
- Overrides:
getTransactionType
in classEjbDescriptor
-
setTransactionType
public void setTransactionType(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 classEjbDescriptor
-
getContainerFactoryQualifier
public String getContainerFactoryQualifier()
- Specified by:
getContainerFactoryQualifier
in classEjbDescriptor
-
isReentrant
public boolean isReentrant()
Return 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()
Return 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
-
setType
public void setType(String type)
Sets my type String.- Specified by:
setType
in classEjbDescriptor
-
print
public void print(StringBuilder toStringBuilder)
Return my formatted string representation.- Overrides:
print
in classEjbDescriptor
-
-