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
Constructors Constructor Description EJBBundleInfoHelper(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundleDescriptor, Collection availableSchemaNames)Creates a new instance of EJBBundleInfoHelper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.jdo.api.persistence.mapping.ejb.ConversionHelpercreateConversionHelper()com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappercreateUniqueNameMapper()CollectiongetAvailableSchemaNames()Gets a collection of names of schemas defined in this ejb jar.ClassLoadergetClassLoader()Gets the class loader which corresponds to this ejb bundle.StringgetEjbJarDisplayName()CollectiongetEjbNames()CollectiongetFieldsForEjb(String ejbName)com.sun.jdo.api.persistence.model.ModelgetModel()com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMappergetNameMapper()CollectiongetRelationshipsForEjb(String ejbName)org.netbeans.modules.dbschema.SchemaElementgetSchema(String schemaName)Gets the schema with the specified name, loading it if necessary.StringgetSchemaNameToGenerate()Gets the name to use for schema generation.
-
-
-
Constructor Detail
-
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 Detail
-
getEjbJarDisplayName
public String getEjbJarDisplayName()
- Specified by:
getEjbJarDisplayNamein interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
EJBInfoHelper.getEjbJarDisplayName()
-
getAvailableSchemaNames
public Collection 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
public String 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
public org.netbeans.modules.dbschema.SchemaElement getSchema(String schemaName)
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
public Collection getEjbNames()
- Specified by:
getEjbNamesin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
EJBInfoHelper.getEjbNames()
-
getFieldsForEjb
public Collection getFieldsForEjb(String ejbName)
- Specified by:
getFieldsForEjbin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
EJBInfoHelper.getFieldsForEjb(java.lang.String)
-
getRelationshipsForEjb
public Collection getRelationshipsForEjb(String ejbName)
- Specified by:
getRelationshipsForEjbin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
EJBInfoHelper.getRelationshipsForEjb(java.lang.String)
-
getClassLoader
public ClassLoader 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:
EJBInfoHelper.getNameMapper()
-
createUniqueNameMapper
public com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper createUniqueNameMapper()
- Specified by:
createUniqueNameMapperin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
EJBInfoHelper.createUniqueNameMapper()
-
createConversionHelper
public com.sun.jdo.api.persistence.mapping.ejb.ConversionHelper createConversionHelper()
- Specified by:
createConversionHelperin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
EJBInfoHelper.createConversionHelper()
-
getModel
public com.sun.jdo.api.persistence.model.Model getModel()
- Specified by:
getModelin interfacecom.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper- See Also:
EJBInfoHelper.getModel()
-
-