Class EJBBundleInfoHelper
java.lang.Object
com.sun.jdo.spi.persistence.support.ejb.ejbc.EJBBundleInfoHelper
- All Implemented Interfaces:
com.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper
public class EJBBundleInfoHelper
extends Object
implements com.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper
This is a class which implements the EJBInfoHelper interface
based on EjbBundleDescriptor and other DOL classes.
- Author:
- Rochelle Raccah
-
Constructor Summary
ConstructorsConstructorDescriptionEJBBundleInfoHelper(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundleDescriptor, Collection availableSchemaNames) Creates a new instance of EJBBundleInfoHelper -
Method Summary
Modifier and TypeMethodDescriptioncom.sun.jdo.api.persistence.mapping.ejb.ConversionHelpercom.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapperGets a collection of names of schemas defined in this ejb jar.Gets the class loader which corresponds to this ejb bundle.getFieldsForEjb(String ejbName) com.sun.jdo.api.persistence.model.ModelgetModel()com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappergetRelationshipsForEjb(String ejbName) org.netbeans.modules.dbschema.SchemaElementGets the schema with the specified name, loading it if necessary.Gets the name to use for schema generation.
-
Constructor Details
-
EJBBundleInfoHelper
public EJBBundleInfoHelper(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundleDescriptor, Collection availableSchemaNames) Creates a new instance of EJBBundleInfoHelper- Parameters:
bundleDescriptor- the EjbBundleDescriptor which defines the universe of names for this application.availableSchemaNames- a Collection of available schemas in the application - used only during development
-
-
Method Details
-
getEjbJarDisplayName
- Specified by:
getEjbJarDisplayNamein interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
-
getAvailableSchemaNames
Gets a collection of names of schemas defined in this ejb jar. This implementation simply returns the list passed in the constructor ornullif there was none supplied.- Specified by:
getAvailableSchemaNamesin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- Returns:
- a collection schema names
-
getSchemaNameToGenerate
Gets the name to use for schema generation. This implementation uses a combo of app name, module name, etc.- Specified by:
getSchemaNameToGeneratein interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- Returns:
- the name to use for schema generation
-
getSchema
Gets the schema with the specified name, loading it if necessary. This implementation uses the class loader as the extra context information used to load.- Specified by:
getSchemain interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- Parameters:
schemaName- the name of the schema to be loaded- Returns:
- the schema object
-
getEjbNames
- Specified by:
getEjbNamesin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
-
getFieldsForEjb
- Specified by:
getFieldsForEjbin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
-
getRelationshipsForEjb
- Specified by:
getRelationshipsForEjbin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
-
getClassLoader
Gets the class loader which corresponds to this ejb bundle.- Specified by:
getClassLoaderin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- Returns:
- the class loader which corresponds to this ejb bundle
-
getNameMapper
public com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper getNameMapper()- Specified by:
getNameMapperin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
-
createUniqueNameMapper
public com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper createUniqueNameMapper()- Specified by:
createUniqueNameMapperin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
-
createConversionHelper
public com.sun.jdo.api.persistence.mapping.ejb.ConversionHelper createConversionHelper()- Specified by:
createConversionHelperin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
-
getModel
public com.sun.jdo.api.persistence.model.Model getModel()- Specified by:
getModelin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
-