org.objectweb.jonas_ejb.deployment.api
Class EntityJdbcCmp1Desc

java.lang.Object
  extended byorg.objectweb.jonas_ejb.deployment.api.BeanDesc
      extended byorg.objectweb.jonas_ejb.deployment.api.EntityDesc
          extended byorg.objectweb.jonas_ejb.deployment.api.EntityCmpDesc
              extended byorg.objectweb.jonas_ejb.deployment.api.EntityCmp1Desc
                  extended byorg.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp1Desc

public class EntityJdbcCmp1Desc
extends EntityCmp1Desc

Class to hold meta-information related to an CMP v1 entity bean with jdbc data store.

Author:
Christophe Ney [cney@batisseurs.com]

Field Summary
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.EntityCmp1Desc
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
cleanup, CLEANUP_CREATE, CLEANUP_NONE, CLEANUP_REMOVEALL, CLEANUP_REMOVEDATA, METHODS_HOME_NO_TX, METHODS_REMOTE_NO_TX, passivationTimeout, primaryKeyClass, reentrant, shared
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
BEAN_TRANSACTION_TYPE, cacheMax, CONTAINER_TRANSACTION_TYPE, deploymentDesc, derivedBeanName, displayName, ejb10EnvProps, ejbClass, ejbLocalRefDesc, ejbName, ejbRefDesc, envEntryDesc, fullDerivedBeanName, home, jndiName, local, localhome, poolMin, remote, resourceEnvRefDesc, resourceRefDesc, securityRoleRef, TRANS
 
Constructor Summary
EntityJdbcCmp1Desc(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: called when the DeploymentDescriptor is read.
 
Method Summary
 java.lang.String getDatasourceJndiName()
          Get the datasource jndi name
 FieldJdbcDesc getFieldJdbcDesc(java.lang.reflect.Field field)
          Get jdbc specific descriptor for a given field.
 java.lang.String getJdbcTableName()
          Get the associated DataBase table name in case of container persistence type.
 boolean isAutomaticPk()
          Assessor for existence of automatic-pk element to True value
protected  MethodDesc newMethodDescInstance(java.lang.reflect.Method meth, int index)
          factory method for method descriptors
 java.lang.String toString()
          String representation of the object for test purpose
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.EntityCmp1Desc
getCmpFieldDesc, getIsModifiedMethod, hasCmpFieldDesc, hasIsModifiedMethod
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc
getCmpFieldDesc, getPrimaryKeyFieldName, getSimplePkField, getSimplePkFieldName, hasPrimaryKeyField, hasSimplePkField, newFieldDescInstance
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.EntityDesc
checkTxAttribute, getCleanupPolicy, getPassivationTimeout, getPrimaryKeyClass, isReentrant, isShared
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
addMethodDesc, check, checkRemoteException, getCacheMax, getDeploymentDesc, getDerivedBeanName, getDisplayName, getEjb10Environment, getEjbClass, getEjbLocalRefDesc, getEjbName, getEjbRefDesc, getEnvEntryDesc, getFullDerivedBeanName, getFullWrpHandleName, getFullWrpHomeName, getFullWrpLocalHomeName, getFullWrpLocalName, getFullWrpRemoteName, getHomeClass, getIdentifierFromEjbName, getJndiLocalName, getJndiName, getLocalClass, getLocalHomeClass, getMethodDesc, getMethodDesc, getMethodDescIterator, getPoolMin, 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
 

Constructor Detail

EntityJdbcCmp1Desc

public EntityJdbcCmp1Desc(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: called when the DeploymentDescriptor is read. Currently, called by both GenIC and createContainer.

Method Detail

getDatasourceJndiName

public java.lang.String getDatasourceJndiName()
Get the datasource jndi name

Returns:
String representation of the jndi name

getFieldJdbcDesc

public FieldJdbcDesc getFieldJdbcDesc(java.lang.reflect.Field field)
Get jdbc specific descriptor for a given field. Used by GenIC

Parameters:
field - of the bean class
Returns:
Descriptor for the given field

getJdbcTableName

public java.lang.String getJdbcTableName()
Get the associated DataBase table name in case of container persistence type. Used by GenIC (This information is JOnAS specific).

Returns:
Name of the database table where entity bean is stored

isAutomaticPk

public boolean isAutomaticPk()
Assessor for existence of automatic-pk element to True value

Returns:
true if automatic-pk element value is true else otherwise false

newMethodDescInstance

protected MethodDesc newMethodDescInstance(java.lang.reflect.Method meth,
                                           int index)
factory method for method descriptors

Overrides:
newMethodDescInstance in class BeanDesc

toString

public java.lang.String toString()
String representation of the object for test purpose

Overrides:
toString in class EntityCmp1Desc
Returns:
String representation of this object