org.objectweb.jonas_ejb.deployment.api
Class EntityJdbcCmp2Desc

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
      extended by org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc
          extended by org.objectweb.jonas_ejb.deployment.api.BeanDesc
              extended by org.objectweb.jonas_ejb.deployment.api.EntityDesc
                  extended by org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc
                      extended by org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc
                          extended by org.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp2Desc
All Implemented Interfaces:
DescriptionGroup, JndiEnvRefsGroup

public class EntityJdbcCmp2Desc
extends EntityCmp2Desc

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

Author:
Christophe Ney [cney@batisseurs.com] : Initial developer, Helene Joanin on May 2003: code cleanup, Helene Joanin on May 2003: complement for legacy first version

Field Summary
protected  java.lang.String dsname
           
protected  java.lang.String jdbcTableName
           
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc
abstractSchemaName, dc2d, factoryClassName
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc
fieldDesc, jdbcAutomaticPkFieldName, primaryKeyField
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.EntityDesc
cleanup, CLEANUP_CREATE, CLEANUP_NONE, CLEANUP_REMOVEALL, CLEANUP_REMOVEDATA, deadlockTimeout, hardLimit, inactivityTimeout, jdbcAutomaticPk, LOCK_CONTAINER_READ_COMMITTED, LOCK_CONTAINER_READ_UNCOMMITTED, LOCK_CONTAINER_READ_WRITE, LOCK_CONTAINER_SERIALIZED, LOCK_CONTAINER_SERIALIZED_TRANSACTED, LOCK_DATABASE, LOCK_READ_ONLY, lockPolicy, maxWaitTime, METHODS_HOME_NO_TX, METHODS_REMOTE_NO_TX, passivationTimeout, pkObjectType, prefetch, primaryKeyClass, readTimeout, reentrant, shared
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
BEAN_TRANSACTION_TYPE, beanIdentification, bf, cacheMax, clusterHomeDistributor, clusterRemoteDistributor, clusterReplicated, CONTAINER_TRANSACTION_TYPE, deploymentDesc, derivedBeanName, ejb10EnvProps, ejbClass, ejbName, ejbTimeoutSignature, fullDerivedBeanName, GENERATED_PREFIX, home, jndiLocalName, jndiName, local, localhome, logger, poolMin, remote, securityRoleRefDescList, timerTxAttribute, TRANS
 
Fields inherited from class org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
description, displayName, largeIcon, smallIcon
 
Constructor Summary
EntityJdbcCmp2Desc(java.lang.ClassLoader classLoader, Entity ent, AssemblyDescriptor asd, JonasEntity jEnt, DeploymentDescEjb2 dc2d, JLinkedList jMDRList, java.lang.String fileName)
          constructor: called when the DeploymentDescriptor is read.
 
Method Summary
 java.lang.String getDatasourceJndiName()
          Get the datasource jndi name
 java.lang.String getJdbcTableName()
          Get the associated DataBase table name.
protected  FieldDesc newFieldDescInstance()
          field descriptor factory method
 java.lang.String toString()
          String representation of the object for test purpose
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc
addEjbRelationshipRoleDesc, addToJormList, getAbstractSchemaName, getDeploymentDescEjb2, getEjbRelationshipRoleDesc, getEjbRelationshipRoleDescIterator, getFactoryClassName, getJormAccessorClassName, getJormBinderClassName, getJormBindingClassName, getJormClassName, getJormCoherenceHelperFQItfName, getJormCoherenceHelperItfName, getJormCoherenceHelperPackageName, getJormList, getJormPKClassName, getJormPNameGetterClassName, getJormStateClassName, needJormCoherenceHelper, newMethodDescInstance
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc
getCmpFieldDesc, getCmpFieldDescIterator, getJdbcAutomaticPkFieldName, getPrimaryKeyFieldName, getSimplePkField, getSimplePkFieldName, hasPrimaryKeyField, hasSimplePkField
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.EntityDesc
checkTxAttribute, getCleanupPolicy, getDeadlockTimeout, getInactivityTimeout, getLockPolicy, getMaxWaitTime, getPassivationTimeout, getPrimaryKeyClass, getReadTimeout, isAutomaticPk, isHardLimit, isPrefetch, isReentrant, isShared, isUndefinedPK
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
addEJBMethodDesc, addMethodDesc, check, checkRemoteException, checkRunAsMapping, checkValidTypesForRmi, getBeanFactory, getCacheMax, getClusterHomeDistributor, getClusterRemoteDistributor, getDeploymentDesc, getDerivedBeanName, getEjb10Environment, getEjbClass, getEjbName, getEjbTimeoutSignature, getFullDerivedBeanName, getFullWrpHandleName, getFullWrpHomeName, getFullWrpLocalHomeName, getFullWrpLocalName, getFullWrpRemoteName, getHashCodeForIdentifier, getHomeClass, getIdentifier, getJndiLocalName, getJndiName, getLocalClass, getLocalHomeClass, getMethodDesc, getMethodDesc, getMethodDescIterator, getParentClass, getPoolMin, getRemoteClass, getRunAsPrincipalName, getRunAsRole, getSasComponent, getSecurityRoleRefDescList, getTimerTxAttribute, getWrpHandleName, getWrpHomeName, getWrpLocalHomeName, getWrpLocalName, getWrpRemoteName, hasDefinedLocalInterface, isClusterReplicated, loadExtraClasses, setBeanFactory, setClusterReplicated, setDeploymentDesc, setSasComponent, verifyRoleName
 
Methods inherited from class org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc
getEjbLocalRefDesc, getEjbRefDesc, getEnvEntryDesc, getMessageDestinationRefDesc, getResourceEnvRefDesc, getResourceRefDesc, getServiceRefDesc
 
Methods inherited from class org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
getDescription, getDisplayName, getLargeIcon, getSAXMsg, getSmallIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dsname

protected java.lang.String dsname

jdbcTableName

protected java.lang.String jdbcTableName
Constructor Detail

EntityJdbcCmp2Desc

public EntityJdbcCmp2Desc(java.lang.ClassLoader classLoader,
                          Entity ent,
                          AssemblyDescriptor asd,
                          JonasEntity jEnt,
                          DeploymentDescEjb2 dc2d,
                          JLinkedList jMDRList,
                          java.lang.String fileName)
                   throws DeploymentDescException
constructor: called when the DeploymentDescriptor is read. Currently, called by both GenIC and createContainer.

Throws:
DeploymentDescException
Method Detail

newFieldDescInstance

protected FieldDesc newFieldDescInstance()
field descriptor factory method

Overrides:
newFieldDescInstance in class EntityCmpDesc
Returns:
a FieldDesc.

getDatasourceJndiName

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

Returns:
String representation of the jndi name

getJdbcTableName

public java.lang.String getJdbcTableName()
Get the associated DataBase table name.

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

toString

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

Specified by:
toString in interface DescriptionGroup
Overrides:
toString in class EntityCmp2Desc
Returns:
String representation of this object