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
|
| Constructor and Description |
|---|
NameMapper(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundleDescriptor)
Creates a new instance of NameMapper
|
NameMapper(org.glassfish.ejb.deployment.descriptor.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.
|
org.glassfish.ejb.deployment.descriptor.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, getKeyClassTypeForEjbNamegetEjbFieldForGeneratedField, getEjbNameForPersistenceKeyClass, getGeneratedFieldForEjbField, getGeneratedRelationshipsForEjbName, getKeyClassForPersistenceKeyClass, getPersistenceClassForLocalInterface, getPersistenceClassForRemoteInterface, isGeneratedEjbRelationship, isGeneratedFieldpublic static final String SIGNATURE
public NameMapper(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundleDescriptor)
bundleDescriptor - the IASEjbBundleDescriptor which defines the
universe of names for this application.public NameMapper(org.glassfish.ejb.deployment.descriptor.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 com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappername - the fully qualified name to be checkedtrue if this name represents an ejb;
false otherwise.public org.glassfish.ejb.deployment.descriptor.EjbCMPEntityDescriptor getDescriptorForEjbName(String name)
getDescriptorForEjbName in class NameMappername - the name of the ejbpublic String getAbstractBeanClassForEjbName(String name)
getAbstractBeanClassForEjbName in class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappername - the name of the ejbpublic String getKeyClassForEjbName(String name)
getKeyClassForEjbName in class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappername - the name of the ejbpublic String getEjbNameForAbstractSchema(String schemaName)
getEjbNameForAbstractSchema in class NameMapperschemaName - the name of the abstract schemapublic String getAbstractSchemaForEjbName(String name)
getAbstractSchemaForEjbName in class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappername - the name of the ejbpublic String getConcreteBeanClassForEjbName(String name)
getConcreteBeanClassForEjbName in class NameMappername - the name of the ejbpublic String getEjbNameForPersistenceClass(String className)
getEjbNameForPersistenceClass in class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapperclassName - the name of the persistence-capablepublic String getPersistenceClassForEjbName(String name)
getPersistenceClassForEjbName in class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappername - the name of the ejbpublic boolean isLocalInterface(String name)
isLocalInterface in class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappername - 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 com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapperejbName - 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 com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappername - the name of the ejbpublic boolean isRemoteInterface(String name)
isRemoteInterface in class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappername - 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 com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapperejbName - 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 com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappername - the name of the ejbpublic String getEjbFieldForPersistenceField(String className, String fieldName)
getEjbFieldForPersistenceField in class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapperclassName - the name of the persistence-capablefieldName - the name of the field in the persistence-capablepublic String getPersistenceFieldForEjbField(String name, String fieldName)
getPersistenceFieldForEjbField in class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappername - the name of the ejbfieldName - the name of the field in the ejbCopyright © 2017–2019 Eclipse Foundation. All rights reserved.