Class NameMapper
java.lang.Object
com.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
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.- Author:
- Rochelle Raccah
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSignature with CVS keyword substitution for identifying the generated codeFields 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
ConstructorsConstructorDescriptionNameMapper(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundleDescriptor) Creates a new instance of NameMapperNameMapper(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundleDescriptor, boolean expandPersistenceClassNames) Creates a new instance of NameMapper -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the abstract bean class which corresponds to the specified ejb name.Gets the name of the abstract schema which corresponds to the specified ejb.Gets the name of the concrete bean class which corresponds to the specified ejb.org.glassfish.ejb.deployment.descriptor.EjbCMPEntityDescriptorGets the EjbCMPEntityDescriptor which represents the ejb with the specified name.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.getEjbNameForAbstractSchema(String schemaName) Gets the name of the ejb which corresponds to the specified abstract schema name.getEjbNameForLocalInterface(String ejbName, String fieldName, String interfaceName) Gets the name of the ejb which corresponds to the specified local interface name.getEjbNameForPersistenceClass(String className) Gets the name of the ejb name which corresponds to the specified persistence-capable class name.getEjbNameForRemoteInterface(String ejbName, String fieldName, String interfaceName) Gets the name of the ejb which corresponds to the specified remote interface name.getKeyClassForEjbName(String name) Gets the name of the key class which corresponds to the specified ejb name.Gets the name of the local interface which corresponds to the specified ejb name.Gets the name of the persistence-capable class which corresponds to the specified ejb name.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.Gets the name of the remote interface which corresponds to the specified ejb name.booleanDetermines if the specified name represents an ejb.booleanisLocalInterface(String name) Determines if the specified name represents a local interface.booleanisRemoteInterface(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, getKeyClassTypeForEjbNameMethods inherited from class com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper
getEjbFieldForGeneratedField, getEjbNameForPersistenceKeyClass, getGeneratedFieldForEjbField, getGeneratedRelationshipsForEjbName, getKeyClassForPersistenceKeyClass, getPersistenceClassForLocalInterface, getPersistenceClassForRemoteInterface, isGeneratedEjbRelationship, isGeneratedField
-
Field Details
-
SIGNATURE
Signature with CVS keyword substitution for identifying the generated code- See Also:
-
-
Constructor Details
-
NameMapper
public NameMapper(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundleDescriptor) Creates a new instance of NameMapper- Parameters:
bundleDescriptor- the IASEjbBundleDescriptor which defines the universe of names for this application.
-
NameMapper
public NameMapper(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundleDescriptor, boolean expandPersistenceClassNames) Creates a new instance of NameMapper- Parameters:
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 Details
-
isEjbName
Determines if the specified name represents an ejb.- Specified by:
isEjbNamein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
name- the fully qualified name to be checked- Returns:
trueif this name represents an ejb;falseotherwise.
-
getDescriptorForEjbName
public org.glassfish.ejb.deployment.descriptor.EjbCMPEntityDescriptor getDescriptorForEjbName(String name) Gets the EjbCMPEntityDescriptor which represents the ejb with the specified name.- Specified by:
getDescriptorForEjbNamein classNameMapper- Parameters:
name- the name of the ejb- Returns:
- the EjbCMPEntityDescriptor which represents the ejb.
-
getAbstractBeanClassForEjbName
Gets the name of the abstract bean class which corresponds to the specified ejb name.- Specified by:
getAbstractBeanClassForEjbNamein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
name- the name of the ejb- Returns:
- the name of the abstract bean for the specified ejb
-
getKeyClassForEjbName
Gets the name of the key class which corresponds to the specified ejb name.- Specified by:
getKeyClassForEjbNamein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
name- the name of the ejb- Returns:
- the name of the key class for the ejb
-
getEjbNameForAbstractSchema
Gets the name of the ejb which corresponds to the specified abstract schema name.- Specified by:
getEjbNameForAbstractSchemain classNameMapper- Parameters:
schemaName- the name of the abstract schema- Returns:
- the name of the ejb for the specified abstract schema
-
getAbstractSchemaForEjbName
Gets the name of the abstract schema which corresponds to the specified ejb.- Specified by:
getAbstractSchemaForEjbNamein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
name- the name of the ejb- Returns:
- the name of the abstract schema for the specified ejb
-
getConcreteBeanClassForEjbName
Gets the name of the concrete bean class which corresponds to the specified ejb.- Specified by:
getConcreteBeanClassForEjbNamein classNameMapper- Parameters:
name- the name of the ejb- Returns:
- the name of the concrete bean for the specified ejb
-
getEjbNameForPersistenceClass
Gets the name of the ejb name which corresponds to the specified persistence-capable class name.- Specified by:
getEjbNameForPersistenceClassin classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
className- the name of the persistence-capable- Returns:
- the name of the ejb for the specified persistence-capable
-
getPersistenceClassForEjbName
Gets the name of the persistence-capable class which corresponds to the specified ejb name.- Specified by:
getPersistenceClassForEjbNamein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
name- the name of the ejb- Returns:
- the name of the persistence-capable for the specified ejb
-
isLocalInterface
Determines if the specified name represents a local interface.- Specified by:
isLocalInterfacein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
name- the fully qualified name to be checked- Returns:
trueif this name represents a local interface;falseotherwise.
-
getEjbNameForLocalInterface
Gets the name of the ejb which corresponds to the specified local interface name.- Specified by:
getEjbNameForLocalInterfacein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
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 interface- Returns:
- the name of the ejb for the specified local interface
-
getLocalInterfaceForEjbName
Gets the name of the local interface which corresponds to the specified ejb name.- Specified by:
getLocalInterfaceForEjbNamein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
name- the name of the ejb- Returns:
- the name of the local interface for the specified ejb
-
isRemoteInterface
Determines if the specified name represents a remote interface.- Specified by:
isRemoteInterfacein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
name- the fully qualified name to be checked- Returns:
trueif this name represents a remote interface;falseotherwise.
-
getEjbNameForRemoteInterface
Gets the name of the ejb which corresponds to the specified remote interface name.- Specified by:
getEjbNameForRemoteInterfacein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
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 interface- Returns:
- the name of the ejb for the specified remote interface
-
getRemoteInterfaceForEjbName
Gets the name of the remote interface which corresponds to the specified ejb name.- Specified by:
getRemoteInterfaceForEjbNamein classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
name- the name of the ejb- Returns:
- the name of the remote interface for the specified ejb
-
getEjbFieldForPersistenceField
Gets the name of the field in the ejb which corresponds to the specified persistence-capable class name and field name pair.- Specified by:
getEjbFieldForPersistenceFieldin classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
className- the name of the persistence-capablefieldName- the name of the field in the persistence-capable- Returns:
- the name of the field in the ejb for the specified persistence-capable field
-
getPersistenceFieldForEjbField
Gets the name of the field in the persistence-capable class which corresponds to the specified ejb name and field name pair.- Specified by:
getPersistenceFieldForEjbFieldin classcom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper- Parameters:
name- the name of the ejbfieldName- the name of the field in the ejb- Returns:
- the name of the field in the persistence-capable for the specified ejb field
-