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 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

      public String getEjbJarDisplayName()
      Specified by:
      getEjbJarDisplayName in interface com.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 or null if there was none supplied.
      Specified by:
      getAvailableSchemaNames in interface com.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:
      getSchemaNameToGenerate in interface com.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:
      getSchema in interface com.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:
      getEjbNames in interface com.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper
      See Also:
      • EJBInfoHelper.getEjbNames()
    • getFieldsForEjb

      public Collection getFieldsForEjb(String ejbName)
      Specified by:
      getFieldsForEjb in interface com.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper
      See Also:
      • EJBInfoHelper.getFieldsForEjb(java.lang.String)
    • getRelationshipsForEjb

      public Collection getRelationshipsForEjb(String ejbName)
      Specified by:
      getRelationshipsForEjb in interface com.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:
      getClassLoader in interface com.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:
      getNameMapper in interface com.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper
      See Also:
      • EJBInfoHelper.getNameMapper()
    • createUniqueNameMapper

      public com.sun.jdo.api.persistence.mapping.ejb.AbstractNameMapper createUniqueNameMapper()
      Specified by:
      createUniqueNameMapper in interface com.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper
      See Also:
      • EJBInfoHelper.createUniqueNameMapper()
    • createConversionHelper

      public com.sun.jdo.api.persistence.mapping.ejb.ConversionHelper createConversionHelper()
      Specified by:
      createConversionHelper in interface com.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper
      See Also:
      • EJBInfoHelper.createConversionHelper()
    • getModel

      public com.sun.jdo.api.persistence.model.Model getModel()
      Specified by:
      getModel in interface com.sun.jdo.api.persistence.mapping.ejb.EJBInfoHelper
      See Also:
      • EJBInfoHelper.getModel()