public class NameMapper extends NameMapper
NameMapper
(in
the com.sun.jdo.spi.persistence.support.ejb.model.util
package) which implements the abstract methods based on an IAS
implementation.Modifier and Type | Field and Description |
---|---|
static String |
SIGNATURE
Signature with CVS keyword substitution for identifying the generated code
|
GENERATED_CMR_FIELD_PREFIX, GENERATED_KEY_FIELD_NAME, GENERATED_VERSION_FIELD_PREFIX, PRIMARY_KEY_FIELD, UNKNOWN_KEY_CLASS, USER_DEFINED_KEY_CLASS
Constructor and Description |
---|
NameMapper(EjbBundleDescriptorImpl bundleDescriptor)
Creates a new instance of NameMapper
|
NameMapper(EjbBundleDescriptorImpl bundleDescriptor,
boolean expandPersistenceClassNames)
Creates a new instance of NameMapper
|
Modifier and Type | Method and Description |
---|---|
String |
getAbstractBeanClassForEjbName(String name)
Gets the name of the abstract bean class which corresponds to the
specified ejb name.
|
String |
getAbstractSchemaForEjbName(String name)
Gets the name of the abstract schema which corresponds to the
specified ejb.
|
String |
getConcreteBeanClassForEjbName(String name)
Gets the name of the concrete bean class which corresponds to the
specified ejb.
|
EjbCMPEntityDescriptor |
getDescriptorForEjbName(String name)
Gets the EjbCMPEntityDescriptor which represents the ejb
with the specified name.
|
String |
getEjbFieldForPersistenceField(String className,
String fieldName)
Gets the name of the field in the ejb which corresponds to the
specified persistence-capable class name and field name pair.
|
String |
getEjbNameForAbstractSchema(String schemaName)
Gets the name of the ejb which corresponds to the specified abstract
schema name.
|
String |
getEjbNameForLocalInterface(String ejbName,
String fieldName,
String interfaceName)
Gets the name of the ejb which corresponds to the specified
local interface name.
|
String |
getEjbNameForPersistenceClass(String className)
Gets the name of the ejb name which corresponds to the
specified persistence-capable class name.
|
String |
getEjbNameForRemoteInterface(String ejbName,
String fieldName,
String interfaceName)
Gets the name of the ejb which corresponds to the specified
remote interface name.
|
String |
getKeyClassForEjbName(String name)
Gets the name of the key class which corresponds to the specified
ejb name.
|
String |
getLocalInterfaceForEjbName(String name)
Gets the name of the local interface which corresponds to the
specified ejb name.
|
String |
getPersistenceClassForEjbName(String name)
Gets the name of the persistence-capable class which corresponds to
the specified ejb name.
|
String |
getPersistenceFieldForEjbField(String name,
String fieldName)
Gets the name of the field in the persistence-capable class which
corresponds to the specified ejb name and field name pair.
|
String |
getRemoteInterfaceForEjbName(String name)
Gets the name of the remote interface which corresponds to the
specified ejb name.
|
boolean |
isEjbName(String name)
Determines if the specified name represents an ejb.
|
boolean |
isLocalInterface(String name)
Determines if the specified name represents a local interface.
|
boolean |
isRemoteInterface(String name)
Determines if the specified name represents a remote interface.
|
getBundleDescriptor, getGeneratedFieldsMap, getInverseFieldsMap, getKeyClassTypeForEjbName
getEjbFieldForGeneratedField, getEjbNameForPersistenceKeyClass, getGeneratedFieldForEjbField, getGeneratedRelationshipsForEjbName, getKeyClassForPersistenceKeyClass, getPersistenceClassForLocalInterface, getPersistenceClassForRemoteInterface, isGeneratedEjbRelationship, isGeneratedField
public static final String SIGNATURE
public NameMapper(EjbBundleDescriptorImpl bundleDescriptor)
bundleDescriptor
- the IASEjbBundleDescriptor which defines the
universe of names for this application.public NameMapper(EjbBundleDescriptorImpl bundleDescriptor, boolean expandPersistenceClassNames)
bundleDescriptor
- the IASEjbBundleDescriptor which defines the
universe of names for this application.expandPersistenceClassNames
- flag to indicate whether
persistence class names should differ from bean namespublic boolean isEjbName(String name)
isEjbName
in class AbstractNameMapper
name
- the fully qualified name to be checkedtrue
if this name represents an ejb;
false
otherwise.public EjbCMPEntityDescriptor getDescriptorForEjbName(String name)
getDescriptorForEjbName
in class NameMapper
name
- the name of the ejbpublic String getAbstractBeanClassForEjbName(String name)
getAbstractBeanClassForEjbName
in class AbstractNameMapper
name
- the name of the ejbpublic String getKeyClassForEjbName(String name)
getKeyClassForEjbName
in class AbstractNameMapper
name
- the name of the ejbpublic String getEjbNameForAbstractSchema(String schemaName)
getEjbNameForAbstractSchema
in class NameMapper
schemaName
- the name of the abstract schemapublic String getAbstractSchemaForEjbName(String name)
getAbstractSchemaForEjbName
in class AbstractNameMapper
name
- the name of the ejbpublic String getConcreteBeanClassForEjbName(String name)
getConcreteBeanClassForEjbName
in class NameMapper
name
- the name of the ejbpublic String getEjbNameForPersistenceClass(String className)
getEjbNameForPersistenceClass
in class AbstractNameMapper
className
- the name of the persistence-capablepublic String getPersistenceClassForEjbName(String name)
getPersistenceClassForEjbName
in class AbstractNameMapper
name
- the name of the ejbpublic boolean isLocalInterface(String name)
isLocalInterface
in class AbstractNameMapper
name
- the fully qualified name to be checkedtrue
if this name represents a local interface;
false
otherwise.public String getEjbNameForLocalInterface(String ejbName, String fieldName, String interfaceName)
getEjbNameForLocalInterface
in class AbstractNameMapper
ejbName
- the name of the ejb which contains fieldName
from which to find relationship and therefore the local interfacefieldName
- the name of the field in the ejbinterfaceName
- the name of the local interfacepublic String getLocalInterfaceForEjbName(String name)
getLocalInterfaceForEjbName
in class AbstractNameMapper
name
- the name of the ejbpublic boolean isRemoteInterface(String name)
isRemoteInterface
in class AbstractNameMapper
name
- the fully qualified name to be checkedtrue
if this name represents a remote interface;
false
otherwise.public String getEjbNameForRemoteInterface(String ejbName, String fieldName, String interfaceName)
getEjbNameForRemoteInterface
in class AbstractNameMapper
ejbName
- the name of the ejb which contains fieldName
from which to find relationship and therefore the remote interfacefieldName
- the name of the field in the ejbinterfaceName
- the name of the remote interfacepublic String getRemoteInterfaceForEjbName(String name)
getRemoteInterfaceForEjbName
in class AbstractNameMapper
name
- the name of the ejbpublic String getEjbFieldForPersistenceField(String className, String fieldName)
getEjbFieldForPersistenceField
in class AbstractNameMapper
className
- the name of the persistence-capablefieldName
- the name of the field in the persistence-capablepublic String getPersistenceFieldForEjbField(String name, String fieldName)
getPersistenceFieldForEjbField
in class AbstractNameMapper
name
- the name of the ejbfieldName
- the name of the field in the ejbCopyright © 2018. All rights reserved.