Class EjbCMPEntityDescriptor
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
org.glassfish.ejb.deployment.descriptor.EjbCMPEntityDescriptor
- 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:
IASEjbCMPEntityDescriptor
This class contains information about EJB1.1 and EJB2.0 CMP EntityBeans.
- Author:
- Sanjeev Krishnan
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class org.glassfish.ejb.deployment.descriptor.EjbEntityDescriptor
BEAN_PERSISTENCE, CONTAINER_PERSISTENCE, FALSE, isReentrant, persistenceType, primaryKeyClassName, TRUE, TYPEFields inherited from class org.glassfish.ejb.deployment.descriptor.EjbDescriptor
DISTRIBUTED_TRANSACTION_SCOPE, LOCAL_TRANSACTION_SCOPE, transactionTypeFields inherited from interface com.sun.enterprise.deployment.EjbDescriptor
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionThe copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionintstatic Vector<FieldDescriptor>getPossibleCmpCmrFields(ClassLoader cl, String className) Returns the classname of the State class impl.booleanisEJB20()return true if this is an EJB2.0 CMP Entitybean DEPRECATEDvoidprint(StringBuffer toStringBuffer) Return my formatted string representation.voidsetAbstractSchemaName(String abstractSchemaName) voidsetCMPVersion(int version) Set the CMP versionvoidsetEjbBundleDescriptor(EjbBundleDescriptorImpl bundleDescriptor) voidsetEjbImplementationImplClassName(String className) set the generated implementation class for a CMP 2.0 Ejb objectvoidvoidvoidsetStateImplClassName(String name) Sets the State class implementation classname.Methods inherited from class org.glassfish.ejb.deployment.descriptor.EjbEntityDescriptor
getContainerFactoryQualifier, getEjbTypeForDisplay, getPersistenceType, getPrimaryKeyClassName, getReentrant, getType, isReentrant, setPersistenceType, setPrimaryKeyClassName, setReentrant, setReentrant, setTransactionType, setTypeMethods 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, getDenyAllMethodPermission, getEjbBundleDescriptor, getEjbClassName, getEjbImplClassName, getEJBLocalObjectImplClassName, getEJBObjectImplClassName, getEjbReference, getEjbReferenceDescriptors, getEjbTimeoutMethod, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, 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, getPermitAllMethodDescriptors, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getRemoteBusinessClassNames, getRemoteClassName, getRemoteHomeImplClassName, getResourceDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceByName, getResourceReferenceDescriptors, getResourceReferenceDescriptors, getRoleReferenceByName, getRoleReferences, getRunAsIdentity, getScheduledTimerDescriptors, getSecurityBusinessMethodDescriptors, getSecurityIdentityDescription, getServiceReferenceByName, getServiceReferenceDescriptors, getStyledPermissionedMethodsByPermission, getTransactionMethodDescriptors, getTransactionMethods, getTransactionType, getTxBusinessMethodDescriptors, 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, setEjbClassName, setEJBLocalObjectImplClassName, setEJBObjectImplClassName, setEjbTimeoutMethod, setHomeClassName, setJndiName, setLocalBean, setLocalClassName, setLocalHomeClassName, setLocalHomeImplClassName, setMappedName, setMethodContainerTransactions, setRemoteClassName, setRemoteHomeImplClassName, setRunAsIdentity, setSecurityIdentityDescription, setUniqueId, setUsesCallerIdentity, setUsesDefaultTransaction, setWebServiceEndpointInterfaceName, visit, visitMethods 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, getName, 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.NamedDescriptor
getName
-
Field Details
-
UNDEFINED
public static final int UNDEFINED- See Also:
-
CMP_1_1
public static final int CMP_1_1- See Also:
-
CMP_2_x
public static final int CMP_2_x- See Also:
-
-
Constructor Details
-
EjbCMPEntityDescriptor
public EjbCMPEntityDescriptor() -
EjbCMPEntityDescriptor
The copy constructor.
-
-
Method Details
-
setStateImplClassName
Sets the State class implementation classname. -
getStateImplClassName
Returns the classname of the State class impl. -
getFields
- Overrides:
getFieldsin classEjbDescriptor- Returns:
- a Vector of the Field objetcs of this ejb.
-
getFieldDescriptors
- Overrides:
getFieldDescriptorsin classEjbDescriptor
-
getCMPVersion
public int getCMPVersion()- Returns:
- CMP version as an enum type.
-
setCMPVersion
public void setCMPVersion(int version) Set the CMP version -
isEJB20
public boolean isEJB20()return true if this is an EJB2.0 CMP Entitybean DEPRECATED -
setEjbBundleDescriptor
- Overrides:
setEjbBundleDescriptorin classEjbDescriptor
-
getPossibleTransactionAttributes
- Overrides:
getPossibleTransactionAttributesin classEjbDescriptor- Returns:
- the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode. Elements are of type ContainerTransaction
-
setPersistenceDescriptor
-
getPersistenceDescriptor
-
setPrimaryKeyFieldDesc
-
getPrimaryKeyFieldDesc
-
setAbstractSchemaName
-
getAbstractSchemaName
-
setEjbImplementationImplClassName
set the generated implementation class for a CMP 2.0 Ejb object- Parameters:
className- the generated implementation
-
getEjbImplementationImplClassName
- Returns:
- the generated implementation class
-
getPossibleCmpCmrFields
public static Vector<FieldDescriptor> getPossibleCmpCmrFields(ClassLoader cl, String className) throws Exception - Throws:
Exception
-
print
Return my formatted string representation.- Overrides:
printin classEjbEntityDescriptor
-