org.objectweb.jonas_ejb.deployment.api
Class EntityCmpDesc

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

public abstract class EntityCmpDesc
extends EntityDesc

Base class for descriptor of an entity bean with container managed persistence


Field Summary
protected  java.util.Hashtable fieldDesc
           
protected  java.lang.reflect.Method isModifiedMethod
           
protected  java.lang.reflect.Field primaryKeyField
           
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.EntityDesc
METHODS_HOME_NO_TX, METHODS_REMOTE_NO_TX
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE, displayName, ejb10EnvProps, ejbClass, ejbLocalRefDesc, ejbName, ejbRefDesc, envEntryDesc, home, jndiName, local, localhome, methodDesc, remote, resourceEnvRefDesc, resourceRefDesc, securityRoleRef, TRANS
 
Method Summary
 FieldDesc getCmpFieldDesc(java.lang.reflect.Field field)
          Get descriptor for a given field Used by GenIC
 java.lang.reflect.Method getIsModifiedMethod()
          Get the 'isModified' method name implemented in the bean class.
 java.lang.reflect.Field getPrimaryKeyField()
          Get the primary key field for the entity.
 boolean hasCmpFieldDesc(java.lang.reflect.Field field)
          Assessor for a CMP field
 boolean hasIsModifiedMethod()
          Assessor for existence of a isModified methoe
 boolean hasPrimaryKeyField()
          Assessor for primary key being a field
 java.lang.String toString()
          String representation of the object for test purpose
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.EntityDesc
checkTxAttribute, getCacheMax, getPassivationTimeout, getPoolMin, getPrimaryKeyClass, isReentrant, isShared
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
check, getDisplayName, getEjb10Environment, getEjbClass, getEjbLocalRefDesc, getEjbName, getEjbRefDesc, getEnvEntryDesc, getHomeClass, getJndiLocalName, getJndiName, getLocalClass, getLocalHomeClass, getMethodDesc, getMethodDescs, getRemoteClass, getResourceEnvRefDesc, getResourceRefDesc, getRoleLink, getSecurityRoleNames, verifyRoleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fieldDesc

protected java.util.Hashtable fieldDesc

primaryKeyField

protected java.lang.reflect.Field primaryKeyField

isModifiedMethod

protected java.lang.reflect.Method isModifiedMethod
Method Detail

hasCmpFieldDesc

public boolean hasCmpFieldDesc(java.lang.reflect.Field field)
Assessor for a CMP field
Returns:
Descriptor for the given field

getCmpFieldDesc

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

hasPrimaryKeyField

public boolean hasPrimaryKeyField()
Assessor for primary key being a field
Returns:
true if primary key is a field

getPrimaryKeyField

public java.lang.reflect.Field getPrimaryKeyField()
Get the primary key field for the entity. Used by GenIC
Returns:
Field for the primary key

hasIsModifiedMethod

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

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

toString

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