com.sun.jdo.spi.persistence.support.ejb.ejbc
Class EJBBundleInfoHelper

java.lang.Object
  extended by com.sun.jdo.spi.persistence.support.ejb.ejbc.EJBBundleInfoHelper
All Implemented Interfaces:
EJBInfoHelper

public class EJBBundleInfoHelper
extends java.lang.Object
implements EJBInfoHelper

This is a class which implements the EJBInfoHelper interface based on EjbBundleDescriptor and other DOL classes.

Author:
Rochelle Raccah

Constructor Summary
EJBBundleInfoHelper(EjbBundleDescriptor bundleDescriptor, java.util.Collection availableSchemaNames)
          Creates a new instance of EJBBundleInfoHelper
 
Method Summary
 ConversionHelper createConversionHelper()
           
 AbstractNameMapper createUniqueNameMapper()
           
 java.util.Collection getAvailableSchemaNames()
          Gets a collection of names of schemas defined in this ejb jar.
 java.lang.ClassLoader getClassLoader()
          Gets the class loader which corresponds to this ejb bundle.
 java.lang.String getEjbJarDisplayName()
           
 java.util.Collection getEjbNames()
           
 java.util.Collection getFieldsForEjb(java.lang.String ejbName)
           
 Model getModel()
           
 AbstractNameMapper getNameMapper()
           
 java.util.Collection getRelationshipsForEjb(java.lang.String ejbName)
           
 org.netbeans.modules.dbschema.SchemaElement getSchema(java.lang.String schemaName)
          Gets the schema with the specified name, loading it if necessary.
 java.lang.String getSchemaNameToGenerate()
          Gets the name to use for schema generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBBundleInfoHelper

public EJBBundleInfoHelper(EjbBundleDescriptor bundleDescriptor,
                           java.util.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 java.lang.String getEjbJarDisplayName()
Specified by:
getEjbJarDisplayName in interface EJBInfoHelper
See Also:
EJBInfoHelper.getEjbJarDisplayName()

getAvailableSchemaNames

public java.util.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 EJBInfoHelper
Returns:
a collection schema names

getSchemaNameToGenerate

public java.lang.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 EJBInfoHelper
Returns:
the name to use for schema generation

getSchema

public org.netbeans.modules.dbschema.SchemaElement getSchema(java.lang.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 EJBInfoHelper
Parameters:
schemaName - the name of the schema to be loaded
Returns:
the schema object

getEjbNames

public java.util.Collection getEjbNames()
Specified by:
getEjbNames in interface EJBInfoHelper
See Also:
EJBInfoHelper.getEjbNames()

getFieldsForEjb

public java.util.Collection getFieldsForEjb(java.lang.String ejbName)
Specified by:
getFieldsForEjb in interface EJBInfoHelper
See Also:
EJBInfoHelper.getFieldsForEjb(java.lang.String)

getRelationshipsForEjb

public java.util.Collection getRelationshipsForEjb(java.lang.String ejbName)
Specified by:
getRelationshipsForEjb in interface EJBInfoHelper
See Also:
EJBInfoHelper.getRelationshipsForEjb(java.lang.String)

getClassLoader

public java.lang.ClassLoader getClassLoader()
Gets the class loader which corresponds to this ejb bundle.

Specified by:
getClassLoader in interface EJBInfoHelper
Returns:
the class loader which corresponds to this ejb bundle

getNameMapper

public AbstractNameMapper getNameMapper()
Specified by:
getNameMapper in interface EJBInfoHelper
See Also:
EJBInfoHelper.getNameMapper()

createUniqueNameMapper

public AbstractNameMapper createUniqueNameMapper()
Specified by:
createUniqueNameMapper in interface EJBInfoHelper
See Also:
EJBInfoHelper.createUniqueNameMapper()

createConversionHelper

public ConversionHelper createConversionHelper()
Specified by:
createConversionHelper in interface EJBInfoHelper
See Also:
EJBInfoHelper.createConversionHelper()

getModel

public Model getModel()
Specified by:
getModel in interface EJBInfoHelper
See Also:
EJBInfoHelper.getModel()


Copyright © 2012 GlassFish Community. All Rights Reserved.