org.objectweb.jonas_ejb.deployment.api
Class EntityCmp2Desc

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.deployment.api.BeanDesc
        |
        +--org.objectweb.jonas_ejb.deployment.api.EntityDesc
              |
              +--org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc
                    |
                    +--org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc
Direct Known Subclasses:
EntityJdbcCmp2Desc

public abstract class EntityCmp2Desc
extends EntityCmpDesc

Class to hold meta-information related to an entity of type CMP version 2. Created on Jun 24, 2002

Author:
Christophe Ney [cney@batisseurs.com]

Field Summary
protected  java.lang.String abstractSchemaName
           
protected  DeploymentCmp2Desc dc2d
           
protected  java.lang.String factoryClassName
           
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc
fieldDesc, primaryKeyField
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.EntityDesc
cacheMax, cleanup, CLEANUP_CREATE, CLEANUP_NONE, CLEANUP_REMOVEALL, CLEANUP_REMOVEDATA, METHODS_HOME_NO_TX, METHODS_REMOTE_NO_TX, passivationTimeout, poolMin, primaryKeyClass, reentrant, shared
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE, deploymentDesc, derivedBeanName, displayName, ejb10EnvProps, ejbClass, ejbLocalRefDesc, ejbName, ejbRefDesc, envEntryDesc, fullDerivedBeanName, home, jndiName, local, localhome, remote, resourceEnvRefDesc, resourceRefDesc, securityRoleRef, TRANS
 
Constructor Summary
EntityCmp2Desc(java.lang.ClassLoader classLoader, org.objectweb.jonas_ejb.deployment.xml.Entity ent, org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor asd, org.objectweb.jonas_ejb.deployment.xml.JonasEntity jEnt, DeploymentCmp2Desc dc2d)
          constructor: called when the DeploymentDescriptor is read.
 
Method Summary
 void addEjbRelationshipRoleDesc(EjbRelationshipRoleDesc ersrd)
          Add meta-info of a relationship in which the bean is involved
 java.lang.String getAbstractSchemaName()
          getter for field abstractSchemaName
 FieldDesc getCmpFieldDesc(java.lang.reflect.Method accessor)
          Get descriptor for a given accessor Used by GenIC
 FieldDesc getCmpFieldDesc(java.lang.String fieldName)
          Get descriptor for a given field name Used by GenIC
 java.util.Iterator getCmpFieldDescIterator()
          get iterator on meta information for all cmp fields
 java.lang.String getCoherenceHelperFQItfName()
           
 java.lang.String getCoherenceHelperItfName()
           
 java.lang.String getCoherenceHelperPackageName()
           
 DeploymentCmp2Desc getDeploymentCMP2Desc()
           
 java.util.Iterator getEjbRelationshipRoleDescIterator()
          Get Iterator on meta-info for all relationships for which the bean is involved in.
 java.lang.String getFactoryClassName(java.lang.String mapperName)
           
 java.lang.String getFieldName(java.lang.reflect.Method accessor)
          get the java field name for a given accessor method
 java.lang.String getGetterName(java.lang.String fieldName)
          get the getter name for a given java field
 java.lang.String getJormAccessorClassName()
          It retrieves the class name of the generated Jorm accessor interface.
 java.lang.String getJormBinderClassName()
          It retrieves the class name of the generated Jorm Binder.
 java.lang.String getJormBindingClassName(java.lang.String mapper)
          It retrieves the class name of the generated Jorm binding.
 java.lang.String getJormCompositeName()
          Name of the composite name for this class in Jorm
 java.lang.String getJormMappingClassName(java.lang.String mapper)
          It retrieves the class name of the generated Jorm mapping.
 java.lang.String getJormName()
          fully qualified name of the class in the Jorm
 java.lang.String getJormPNameClassName()
          It retrieves the class name of the generated Jorm PName.
 java.lang.String getJormPNameGetterClassName()
          It retrieves the class name of the generated Jorm PNameGetter interface.
 java.lang.String getJormSchemaName()
          Name of the schema (package) of this class in Jorm
abstract  MappingBuilder getMappingBuilder()
          return the mapping builder to use for the entity bean
 java.lang.String getSetterName(java.lang.String fieldName)
          get the setter name for a given java field
 boolean hasCmpFieldDesc(java.lang.reflect.Method accessor)
          Assessor for a CMP field
 java.lang.Boolean needCoherenceHelper()
           
protected  MethodDesc newMethodDescInstance(java.lang.reflect.Method meth, int index)
          Factory method for MethodDesc.
 void setAbstractSchemaName(java.lang.String abstractSchemaName)
          setter for field abstractSchemaName
 java.lang.String toString()
          String representation of the object for test purpose
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc
getPrimaryKeyFieldName, hasPrimaryKeyField, newFieldDescInstance
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.EntityDesc
checkTxAttribute, getCacheMax, getCleanupPolicy, getPassivationTimeout, getPoolMin, getPrimaryKeyClass, isReentrant, isShared
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
addMethodDesc, check, checkRemoteException, getDeploymentDesc, getDerivedBeanName, getDisplayName, getEjb10Environment, getEjbClass, getEjbLocalRefDesc, getEjbName, getEjbRefDesc, getEnvEntryDesc, getFullDerivedBeanName, getFullWrpHandleName, getFullWrpHomeName, getFullWrpLocalHomeName, getFullWrpLocalName, getFullWrpRemoteName, getHomeClass, getIdentifierFromEjbName, getJndiLocalName, getJndiName, getLocalClass, getLocalHomeClass, getMethodDesc, getMethodDesc, getMethodDescIterator, getRemoteClass, getResourceEnvRefDesc, getResourceRefDesc, getRoleLink, getSecurityRoleNames, getWrpHandleName, getWrpHomeName, getWrpLocalHomeName, getWrpLocalName, getWrpRemoteName, setDeploymentDesc, verifyRoleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

abstractSchemaName

protected java.lang.String abstractSchemaName

factoryClassName

protected java.lang.String factoryClassName

dc2d

protected DeploymentCmp2Desc dc2d
Constructor Detail

EntityCmp2Desc

public EntityCmp2Desc(java.lang.ClassLoader classLoader,
                      org.objectweb.jonas_ejb.deployment.xml.Entity ent,
                      org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor asd,
                      org.objectweb.jonas_ejb.deployment.xml.JonasEntity jEnt,
                      DeploymentCmp2Desc dc2d)
               throws DeploymentDescException
constructor: called when the DeploymentDescriptor is read. Currently, called by both GenIC and createContainer.
Method Detail

getDeploymentCMP2Desc

public DeploymentCmp2Desc getDeploymentCMP2Desc()

getFactoryClassName

public java.lang.String getFactoryClassName(java.lang.String mapperName)

getAbstractSchemaName

public java.lang.String getAbstractSchemaName()
getter for field abstractSchemaName

setAbstractSchemaName

public void setAbstractSchemaName(java.lang.String abstractSchemaName)
setter for field abstractSchemaName

getCmpFieldDesc

public FieldDesc getCmpFieldDesc(java.lang.reflect.Method accessor)
Get descriptor for a given accessor Used by GenIC
Parameters:
accessor - the accessor method of the bean class
Returns:
Descriptor for the given field

getCmpFieldDesc

public FieldDesc getCmpFieldDesc(java.lang.String fieldName)
Get descriptor for a given field name Used by GenIC
Parameters:
accessor - the accessor method of the bean class
Returns:
Descriptor for the given field or null

getCmpFieldDescIterator

public java.util.Iterator getCmpFieldDescIterator()
get iterator on meta information for all cmp fields

getFieldName

public java.lang.String getFieldName(java.lang.reflect.Method accessor)
get the java field name for a given accessor method
Parameters:
accessor - the accessor set/get method
Returns:
the name of the corresponding field

getSetterName

public java.lang.String getSetterName(java.lang.String fieldName)
get the setter name for a given java field

getGetterName

public java.lang.String getGetterName(java.lang.String fieldName)
get the getter name for a given java field

hasCmpFieldDesc

public boolean hasCmpFieldDesc(java.lang.reflect.Method accessor)
Assessor for a CMP field
Parameters:
accessor - method for which a descriptor is to be returned
Returns:
Descriptor for the given field

addEjbRelationshipRoleDesc

public void addEjbRelationshipRoleDesc(EjbRelationshipRoleDesc ersrd)
Add meta-info of a relationship in which the bean is involved

getEjbRelationshipRoleDescIterator

public java.util.Iterator getEjbRelationshipRoleDescIterator()
Get Iterator on meta-info for all relationships for which the bean is involved in.

newMethodDescInstance

protected MethodDesc newMethodDescInstance(java.lang.reflect.Method meth,
                                           int index)
Factory method for MethodDesc. Only method with EJBQL queries are of type MethodCmp2Desc
Overrides:
newMethodDescInstance in class BeanDesc

getJormAccessorClassName

public java.lang.String getJormAccessorClassName()
It retrieves the class name of the generated Jorm accessor interface.

getJormBindingClassName

public java.lang.String getJormBindingClassName(java.lang.String mapper)
It retrieves the class name of the generated Jorm binding.

getJormMappingClassName

public java.lang.String getJormMappingClassName(java.lang.String mapper)
It retrieves the class name of the generated Jorm mapping.

getJormPNameClassName

public java.lang.String getJormPNameClassName()
It retrieves the class name of the generated Jorm PName.

getJormPNameGetterClassName

public java.lang.String getJormPNameGetterClassName()
It retrieves the class name of the generated Jorm PNameGetter interface.

getJormBinderClassName

public java.lang.String getJormBinderClassName()
It retrieves the class name of the generated Jorm Binder.

getJormName

public java.lang.String getJormName()
fully qualified name of the class in the Jorm

getJormCompositeName

public java.lang.String getJormCompositeName()
Name of the composite name for this class in Jorm

getJormSchemaName

public java.lang.String getJormSchemaName()
Name of the schema (package) of this class in Jorm

getMappingBuilder

public abstract MappingBuilder getMappingBuilder()
return the mapping builder to use for the entity bean

needCoherenceHelper

public java.lang.Boolean needCoherenceHelper()

getCoherenceHelperItfName

public java.lang.String getCoherenceHelperItfName()

getCoherenceHelperPackageName

public java.lang.String getCoherenceHelperPackageName()

getCoherenceHelperFQItfName

public java.lang.String getCoherenceHelperFQItfName()

toString

public java.lang.String toString()
String representation of the object for test purpose
Overrides:
toString in class EntityCmpDesc
Returns:
String representation of this object