|
||||||||||
| 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
com.sun.jdo.spi.persistence.support.ejb.ejbc.NameMapper
public class NameMapper
This is a subclass of
NameMapper (in
the com.sun.jdo.spi.persistence.support.ejb.model.util
package) which implements the abstract methods based on an IAS
implementation.
| Field Summary | |
|---|---|
static java.lang.String |
SIGNATURE
Signature with CVS keyword substitution for identifying the generated code |
| 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 | |
|---|---|
NameMapper(EjbBundleDescriptor bundleDescriptor)
Creates a new instance of NameMapper |
|
NameMapper(EjbBundleDescriptor bundleDescriptor,
boolean expandPersistenceClassNames)
Creates a new instance of NameMapper |
|
| Method Summary | |
|---|---|
java.lang.String |
getAbstractBeanClassForEjbName(java.lang.String name)
Gets the name of the abstract bean class which corresponds to the specified ejb name. |
java.lang.String |
getAbstractSchemaForEjbName(java.lang.String name)
Gets the name of the abstract schema which corresponds to the specified ejb. |
java.lang.String |
getConcreteBeanClassForEjbName(java.lang.String name)
Gets the name of the concrete bean class which corresponds to the specified ejb. |
EjbCMPEntityDescriptor |
getDescriptorForEjbName(java.lang.String name)
Gets the EjbCMPEntityDescriptor which represents the ejb with the specified name. |
java.lang.String |
getEjbFieldForPersistenceField(java.lang.String className,
java.lang.String fieldName)
Gets the name of the field in the ejb which corresponds to the specified persistence-capable class name and field name pair. |
java.lang.String |
getEjbNameForAbstractSchema(java.lang.String schemaName)
Gets the name of the ejb which corresponds to the specified abstract schema name. |
java.lang.String |
getEjbNameForLocalInterface(java.lang.String ejbName,
java.lang.String fieldName,
java.lang.String interfaceName)
Gets the name of the ejb which corresponds to the specified local interface name. |
java.lang.String |
getEjbNameForPersistenceClass(java.lang.String className)
Gets the name of the ejb name which corresponds to the specified persistence-capable class name. |
java.lang.String |
getEjbNameForRemoteInterface(java.lang.String ejbName,
java.lang.String fieldName,
java.lang.String interfaceName)
Gets the name of the ejb which corresponds to the specified remote interface name. |
java.lang.String |
getKeyClassForEjbName(java.lang.String name)
Gets the name of the key class which corresponds to the specified ejb name. |
java.lang.String |
getLocalInterfaceForEjbName(java.lang.String name)
Gets the name of the local interface which corresponds to the specified ejb name. |
java.lang.String |
getPersistenceClassForEjbName(java.lang.String name)
Gets the name of the persistence-capable class which corresponds to the specified ejb name. |
java.lang.String |
getPersistenceFieldForEjbField(java.lang.String name,
java.lang.String fieldName)
Gets the name of the field in the persistence-capable class which corresponds to the specified ejb name and field name pair. |
java.lang.String |
getRemoteInterfaceForEjbName(java.lang.String name)
Gets the name of the remote interface which corresponds to the specified ejb name. |
boolean |
isEjbName(java.lang.String name)
Determines if the specified name represents an ejb. |
boolean |
isLocalInterface(java.lang.String name)
Determines if the specified name represents a local interface. |
boolean |
isRemoteInterface(java.lang.String name)
Determines if the specified name represents a remote interface. |
| Methods inherited from class com.sun.jdo.spi.persistence.support.ejb.model.util.NameMapper |
|---|
getBundleDescriptor, getGeneratedFieldsMap, getInverseFieldsMap, getKeyClassTypeForEjbName |
| Methods inherited from class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper |
|---|
getEjbFieldForGeneratedField, getEjbNameForPersistenceKeyClass, getGeneratedFieldForEjbField, getGeneratedRelationshipsForEjbName, getKeyClassForPersistenceKeyClass, getPersistenceClassForLocalInterface, getPersistenceClassForRemoteInterface, isGeneratedEjbRelationship, isGeneratedField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SIGNATURE
| Constructor Detail |
|---|
public NameMapper(EjbBundleDescriptor bundleDescriptor)
bundleDescriptor - the IASEjbBundleDescriptor which defines the
universe of names for this application.
public NameMapper(EjbBundleDescriptor 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 names| Method Detail |
|---|
public boolean isEjbName(java.lang.String name)
isEjbName in class AbstractNameMappername - the fully qualified name to be checked
true if this name represents an ejb;
false otherwise.public EjbCMPEntityDescriptor getDescriptorForEjbName(java.lang.String name)
getDescriptorForEjbName in class NameMappername - the name of the ejb
public java.lang.String getAbstractBeanClassForEjbName(java.lang.String name)
getAbstractBeanClassForEjbName in class AbstractNameMappername - the name of the ejb
public java.lang.String getKeyClassForEjbName(java.lang.String name)
getKeyClassForEjbName in class AbstractNameMappername - the name of the ejb
public java.lang.String getEjbNameForAbstractSchema(java.lang.String schemaName)
getEjbNameForAbstractSchema in class NameMapperschemaName - the name of the abstract schema
public java.lang.String getAbstractSchemaForEjbName(java.lang.String name)
getAbstractSchemaForEjbName in class AbstractNameMappername - the name of the ejb
public java.lang.String getConcreteBeanClassForEjbName(java.lang.String name)
getConcreteBeanClassForEjbName in class NameMappername - the name of the ejb
public java.lang.String getEjbNameForPersistenceClass(java.lang.String className)
getEjbNameForPersistenceClass in class AbstractNameMapperclassName - the name of the persistence-capable
public java.lang.String getPersistenceClassForEjbName(java.lang.String name)
getPersistenceClassForEjbName in class AbstractNameMappername - the name of the ejb
public boolean isLocalInterface(java.lang.String name)
isLocalInterface in class AbstractNameMappername - the fully qualified name to be checked
true if this name represents a local interface;
false otherwise.
public java.lang.String getEjbNameForLocalInterface(java.lang.String ejbName,
java.lang.String fieldName,
java.lang.String interfaceName)
getEjbNameForLocalInterface in class 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 interface
public java.lang.String getLocalInterfaceForEjbName(java.lang.String name)
getLocalInterfaceForEjbName in class AbstractNameMappername - the name of the ejb
public boolean isRemoteInterface(java.lang.String name)
isRemoteInterface in class AbstractNameMappername - the fully qualified name to be checked
true if this name represents a remote interface;
false otherwise.
public java.lang.String getEjbNameForRemoteInterface(java.lang.String ejbName,
java.lang.String fieldName,
java.lang.String interfaceName)
getEjbNameForRemoteInterface in class 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 interface
public java.lang.String getRemoteInterfaceForEjbName(java.lang.String name)
getRemoteInterfaceForEjbName in class AbstractNameMappername - the name of the ejb
public java.lang.String getEjbFieldForPersistenceField(java.lang.String className,
java.lang.String fieldName)
getEjbFieldForPersistenceField in class AbstractNameMapperclassName - the name of the persistence-capablefieldName - the name of the field in the persistence-capable
public java.lang.String getPersistenceFieldForEjbField(java.lang.String name,
java.lang.String fieldName)
getPersistenceFieldForEjbField in class AbstractNameMappername - the name of the ejbfieldName - the name of the field in the ejb
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||