public class JDOCodeGenerator extends Object implements CMPGenerator, org.glassfish.persistence.common.DatabaseConstants
| Modifier and Type | Field and Description |
|---|---|
static String |
SIGNATURE
Signature with CVS keyword substitution for identifying the generated code
|
CREATE, CREATE_DDL_JDBC_FILE_SUFFIX, CREATE_SQL_FILE_SUFFIX, DDL, DROP, DROP_DDL_JDBC_FILE_SUFFIX, DROP_SQL_FILE_SUFFIX, JAVA_TO_DB_FLAG, JDBC_FILE_EXTENSION, JTA_DATASOURCE_JNDI_NAME_OVERRIDE, NAME_SEPARATOR, SQL_FILE_EXTENSION| Constructor and Description |
|---|
JDOCodeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
Collection |
cleanup()
This method is called once for each ejb module in the application
that contains CMP beans.
|
void |
generate(org.glassfish.ejb.deployment.descriptor.IASEjbCMPEntityDescriptor ejbcmp,
File srcout,
File classout)
This method is called once for each CMP bean of the corresponding ejb module.
|
void |
init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundle,
ClassLoader loader,
String bundlePathName)
Deprecated.
|
void |
init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundle,
ClassLoader loader,
String bundlePathName,
boolean ignoreSunDeploymentDescriptors)
Called by static verifier to bypass mapping validation or
internally by other init() methods.
|
void |
init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundle,
org.glassfish.api.deployment.DeploymentContext ctx,
String bundlePathName,
String generatedXmlsPathName)
This method is called once for each ejb module in the application
that contains CMP beans.
|
Collection |
validate(org.glassfish.ejb.deployment.descriptor.IASEjbCMPEntityDescriptor descr)
This method may be called once for each CMP bean of the corresponding
ejb module to perform the validation.
|
public static final String SIGNATURE
public void init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundle,
org.glassfish.api.deployment.DeploymentContext ctx,
String bundlePathName,
String generatedXmlsPathName)
throws GeneratorException
CMPGeneratorinit in interface CMPGeneratorbundle - the EjbBundleDescriptor associated with this
ejb module.ctx - the DeploymentContext associated with the deployment request.bundlePathName - full path to the directory where this bundle's
files are located.generatedXmlsPathName - full path to the directory where the
generated files are located.GeneratorException - if there is a problem initializing bean
processing.CMPGenerator.init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl, DeploymentContext, String, String)public void init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundle,
ClassLoader loader,
String bundlePathName)
throws GeneratorException
CMPGeneratorinit in interface CMPGeneratorbundle - the EjbBundleDescriptor associated with this
ejb module.loader - the ClassLoader that loaded user defined classes.bundlePathName - full path to the directory where this bundle's
files are located.GeneratorException - if there is a problem initializing bean
processing.This method should be merged with {@link #init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl, DeploymentContext, String)}
when TestFramework is fixed for optional pm-descriptors and java2db support.public void init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundle,
ClassLoader loader,
String bundlePathName,
boolean ignoreSunDeploymentDescriptors)
throws GeneratorException
ignoreSunDeploymentDescriptors
is true.public Collection validate(org.glassfish.ejb.deployment.descriptor.IASEjbCMPEntityDescriptor descr)
CMPGeneratorvalidate in interface CMPGeneratordescr - the IASEjbCMPEntityDescriptor associated with this CMP bean.CMPGenerator.validate(IASEjbCMPEntityDescriptor descr)public void generate(org.glassfish.ejb.deployment.descriptor.IASEjbCMPEntityDescriptor ejbcmp,
File srcout,
File classout)
throws GeneratorException
CMPGeneratorgenerate in interface CMPGeneratorejbcmp - the IASEjbCMPEntityDescriptor associated with this CMP bean.srcout - the location of the source files to be generated.classout - the location of the class files to be generated.GeneratorException - if there is a problem processing the bean.CMPGenerator.generate(IASEjbCMPEntityDescriptor, File, File)public Collection cleanup() throws GeneratorException
CMPGeneratorcleanup in interface CMPGeneratorGeneratorException - if there is any problem.Copyright © 2013. All Rights Reserved.