org.objectweb.jonas_ejb.deployment.api
Class EntityCmp1Desc

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.EntityCmp1Desc
Direct Known Subclasses:
EntityJdbcCmp1Desc

public class EntityCmp1Desc
extends EntityCmpDesc

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

Author:
Christophe Ney [cney@batisseurs.com]

Field Summary
protected  java.lang.reflect.Method isModifiedMethod
           
 
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
EntityCmp1Desc(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)
          constructor to be used by parent node
 
Method Summary
 FieldDesc getCmpFieldDesc(java.lang.reflect.Field field)
          Get descriptor for a given field
 java.lang.reflect.Method getIsModifiedMethod()
          Get the 'isModified' method name implemented in the bean class.
 boolean hasCmpFieldDesc(java.lang.reflect.Field field)
          Assessor for a CMP field
 boolean hasIsModifiedMethod()
          Assessor for existence of a isModified methoe
 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, newMethodDescInstance, setDeploymentDesc, verifyRoleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isModifiedMethod

protected java.lang.reflect.Method isModifiedMethod
Constructor Detail

EntityCmp1Desc

public EntityCmp1Desc(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)
               throws DeploymentDescException
constructor to be used by parent node
Method Detail

getCmpFieldDesc

public FieldDesc getCmpFieldDesc(java.lang.reflect.Field field)
Get descriptor for a given field
Parameters:
field - of the bean class
Returns:
Descriptor for the given field

getIsModifiedMethod

public java.lang.reflect.Method getIsModifiedMethod()
Get the 'isModified' method name implemented in the bean class. (This information is JOnAS specific).
Returns:
Name of the isModified method

hasIsModifiedMethod

public boolean hasIsModifiedMethod()
Assessor for existence of a isModified methoe
Returns:
true of isModified method exist for the bean

hasCmpFieldDesc

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

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