|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper
com.sun.jdo.spi.persistence.support.ejb.model.util.NameMapper
public abstract class NameMapper
This is a class which helps translate between the various names of the CMP (ejb name, abstract schema, abstract bean, concrete bean, local interface, remote interface) and the persistence-capable class name. It also has methods for translation of field names. The basic entry point is ejb name or persistence-capable class name. This is a subclass of the AbstractNameMapper and implements the methods based on DOL. It also adds methods which are used during deployment time but not needed during development time and therefore, not in the abstract superclass.
| Field Summary |
|---|
| Fields inherited from class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper |
|---|
GENERATED_CMR_FIELD_PREFIX, GENERATED_KEY_FIELD_NAME, GENERATED_VERSION_FIELD_PREFIX, PRIMARY_KEY_FIELD, UNKNOWN_KEY_CLASS, USER_DEFINED_KEY_CLASS |
| Constructor Summary | |
|---|---|
protected |
NameMapper(EjbBundleDescriptor bundleDescriptor)
Creates a new instance of NameMapper |
| Method Summary | |
|---|---|
EjbBundleDescriptor |
getBundleDescriptor()
Gets the EjbBundleDescriptor which defines the universe of names for this application. |
abstract java.lang.String |
getConcreteBeanClassForEjbName(java.lang.String name)
Gets the name of the concrete bean class which corresponds to the specified ejb. |
abstract EjbCMPEntityDescriptor |
getDescriptorForEjbName(java.lang.String name)
Gets the EjbCMPEntityDescriptor which represents the ejb with the specified name. |
abstract java.lang.String |
getEjbNameForAbstractSchema(java.lang.String schemaName)
Gets the name of the ejb which corresponds to the specified abstract schema name. |
protected java.util.Map |
getGeneratedFieldsMap()
|
protected java.util.Map |
getInverseFieldsMap()
|
int |
getKeyClassTypeForEjbName(java.lang.String name)
Get the type of key class of this ejb. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected NameMapper(EjbBundleDescriptor bundleDescriptor)
bundleDescriptor - the EjbBundleDescriptor which defines the
universe of names for this application.| Method Detail |
|---|
protected java.util.Map getGeneratedFieldsMap()
getGeneratedFieldsMap in class AbstractNameMapperprotected java.util.Map getInverseFieldsMap()
getInverseFieldsMap in class AbstractNameMapperpublic EjbBundleDescriptor getBundleDescriptor()
public abstract EjbCMPEntityDescriptor getDescriptorForEjbName(java.lang.String name)
name - the name of the ejb
public int getKeyClassTypeForEjbName(java.lang.String name)
getKeyClassTypeForEjbName in class AbstractNameMapperAbstractNameMapper.USER_DEFINED_KEY_CLASS,
AbstractNameMapper.PRIMARY_KEY_FIELD, or AbstractNameMapper.UNKNOWN_KEY_CLASSpublic abstract java.lang.String getEjbNameForAbstractSchema(java.lang.String schemaName)
schemaName - the name of the abstract schema
public abstract java.lang.String getConcreteBeanClassForEjbName(java.lang.String name)
name - the name of the ejb
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||