com.sun.enterprise.deployment
Class EjbCMPEntityDescriptor

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
                          extended by com.sun.enterprise.deployment.EjbCMPEntityDescriptor
All Implemented Interfaces:
JndiNameEnvironment, NamedDescriptor, EjbReferenceContainer, MessageDestinationReferenceContainer, ResourceEnvReferenceContainer, ResourceReferenceContainer, ServiceReferenceContainer, WritableJndiNameEnvironment, java.io.Serializable
Direct Known Subclasses:
IASEjbCMPEntityDescriptor

public class EjbCMPEntityDescriptor
extends EjbEntityDescriptor

This class contains information about EJB1.1 and EJB2.0 CMP EntityBeans.

Author:
Sanjeev Krishnan
See Also:
Serialized Form

Field Summary
static int CMP_1_1
           
static int CMP_2_x
           
static int UNDEFINED
           
 
Fields inherited from class com.sun.enterprise.deployment.EjbEntityDescriptor
BEAN_PERSISTENCE, CONTAINER_PERSISTENCE, FALSE, isReentrant, persistenceType, primaryKeyClassName, TRUE, 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
EjbCMPEntityDescriptor()
           
EjbCMPEntityDescriptor(EjbDescriptor other)
          The copy constructor.
 
Method Summary
 java.lang.String getAbstractSchemaName()
           
 int getCMPVersion()
          Returns CMP version as an enum type.
 java.lang.String getEjbImplementationImplClassName()
           
 java.util.Vector getFieldDescriptors()
           
 java.util.Vector getFields()
          Return a Vector of the Field objetcs of this ejb.
 PersistenceDescriptor getPersistenceDescriptor()
           
static java.util.Vector getPossibleCmpCmrFields(java.lang.ClassLoader cl, java.lang.String className)
           
 java.util.Vector getPossibleTransactionAttributes()
          Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode.
 FieldDescriptor getPrimaryKeyFieldDesc()
           
 java.lang.String getStateImplClassName()
          Returns the classname of the State class impl.
 boolean isEJB20()
          return true if this is an EJB2.0 CMP Entitybean DEPRECATED
 void print(java.lang.StringBuffer toStringBuffer)
          Return my formatted string representation.
 void setAbstractSchemaName(java.lang.String abstractSchemaName)
           
 void setCMPVersion(int version)
          Set the CMP version
 void setEjbBundleDescriptor(EjbBundleDescriptor bundleDescriptor)
           
 void setEjbImplementationImplClassName(java.lang.String className)
          set the generated implementation class for a CMP 2.0 Ejb object
 void setPersistenceDescriptor(PersistenceDescriptor pd)
           
 void setPrimaryKeyFieldDesc(FieldDescriptor pkf)
           
 void setStateImplClassName(java.lang.String name)
          Sets the State class implementation classname.
 void visit(EjbVisitor aVisitor)
          visit the descriptor and all sub descriptors with a DOL visitor implementation
 
Methods inherited from class com.sun.enterprise.deployment.EjbEntityDescriptor
getPersistenceType, getPrimaryKeyClassName, getReentrant, getTransactionType, getType, isReentrant, replaceEntityDescriptor, setPersistenceType, setPrimaryKeyClassName, setReentrant, setReentrant, setTransactionType, setType
 
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, getFrameworkInterceptors, getIASEjbExtraDescriptors, getInjectableResourcesByClass, getInjectionInfoByClass, getInterceptorChain, getInterceptorClasses, getInterceptorClassNames, getIORConfigurationDescriptors, getJmsDestinationReferenceByName, getJmsDestinationReferenceDescriptors, getLocalHomeImplClassName, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getMethodContainerTransactions, getMethodDescriptors, getMethodInterceptorsMap, getMethodPermissionsFor, getMethodPermissionsFromDD, getMethods, getMethods, getOptionalLocalBusinessMethods, getPermissionedMethodsByPermission, getPermissionedRoles, 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, setEjbClassName, setEJBLocalObjectImplClassName, setEJBObjectImplClassName, setEjbTimeoutMethod, setLocalHomeImplClassName, setMethodContainerTransactions, setRemoteHomeImplClassName, setRunAsIdentity, setSecurityIdentityDescription, setUniqueId, setUsesCallerIdentity, setUsesDefaultTransaction, 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

UNDEFINED

public static final int UNDEFINED
See Also:
Constant Field Values

CMP_1_1

public static final int CMP_1_1
See Also:
Constant Field Values

CMP_2_x

public static final int CMP_2_x
See Also:
Constant Field Values
Constructor Detail

EjbCMPEntityDescriptor

public EjbCMPEntityDescriptor()

EjbCMPEntityDescriptor

public EjbCMPEntityDescriptor(EjbDescriptor other)
The copy constructor.

Method Detail

setStateImplClassName

public void setStateImplClassName(java.lang.String name)
Sets the State class implementation classname.


getStateImplClassName

public java.lang.String getStateImplClassName()
Returns the classname of the State class impl.


getFields

public java.util.Vector getFields()
Description copied from class: EjbDescriptor
Return a Vector of the Field objetcs of this ejb.

Overrides:
getFields in class EjbDescriptor

getFieldDescriptors

public java.util.Vector getFieldDescriptors()
Overrides:
getFieldDescriptors in class EjbDescriptor

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

public void setEjbBundleDescriptor(EjbBundleDescriptor bundleDescriptor)
Overrides:
setEjbBundleDescriptor in class EjbDescriptor

getPossibleTransactionAttributes

public java.util.Vector getPossibleTransactionAttributes()
Description copied from class: EjbDescriptor
Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode. Elements are of type ContainerTransaction

Overrides:
getPossibleTransactionAttributes in class EjbDescriptor

setPersistenceDescriptor

public void setPersistenceDescriptor(PersistenceDescriptor pd)

getPersistenceDescriptor

public PersistenceDescriptor getPersistenceDescriptor()

setPrimaryKeyFieldDesc

public void setPrimaryKeyFieldDesc(FieldDescriptor pkf)

getPrimaryKeyFieldDesc

public FieldDescriptor getPrimaryKeyFieldDesc()

setAbstractSchemaName

public void setAbstractSchemaName(java.lang.String abstractSchemaName)

getAbstractSchemaName

public java.lang.String getAbstractSchemaName()

setEjbImplementationImplClassName

public void setEjbImplementationImplClassName(java.lang.String className)
set the generated implementation class for a CMP 2.0 Ejb object

Parameters:
className - the generated implementation

getEjbImplementationImplClassName

public java.lang.String getEjbImplementationImplClassName()
Returns:
the generated implementation class

getPossibleCmpCmrFields

public static java.util.Vector getPossibleCmpCmrFields(java.lang.ClassLoader cl,
                                                       java.lang.String className)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

print

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

Overrides:
print in class EjbEntityDescriptor

visit

public void visit(EjbVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation

Overrides:
visit in class EjbDescriptor
Parameters:
a - visitor to traverse the descriptors


Copyright © 2012 GlassFish Community. All Rights Reserved.