|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGenerator
public class JDOCodeGenerator
| Field Summary | |
|---|---|
static java.lang.String |
SIGNATURE
Signature with CVS keyword substitution for identifying the generated code |
| Fields inherited from interface org.glassfish.persistence.common.DatabaseConstants |
|---|
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 Summary | |
|---|---|
JDOCodeGenerator()
|
|
| Method Summary | |
|---|---|
java.util.Collection |
cleanup()
This method is called once for each ejb module in the application that contains CMP beans. |
void |
generate(IASEjbCMPEntityDescriptor ejbcmp,
java.io.File srcout,
java.io.File classout)
This method is called once for each CMP bean of the corresponding ejb module. |
void |
init(EjbBundleDescriptor bundle,
java.lang.ClassLoader loader,
java.lang.String bundlePathName)
Deprecated. |
void |
init(EjbBundleDescriptor bundle,
java.lang.ClassLoader loader,
java.lang.String bundlePathName,
boolean ignoreSunDeploymentDescriptors)
Called by static verifier to bypass mapping validation or internally by other init() methods. |
void |
init(EjbBundleDescriptor bundle,
DeploymentContext ctx,
java.lang.String bundlePathName,
java.lang.String generatedXmlsPathName)
This method is called once for each ejb module in the application that contains CMP beans. |
java.util.Collection |
validate(IASEjbCMPEntityDescriptor descr)
This method may be called once for each CMP bean of the corresponding ejb module to perform the validation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SIGNATURE
| Constructor Detail |
|---|
public JDOCodeGenerator()
| Method Detail |
|---|
public void init(EjbBundleDescriptor bundle,
DeploymentContext ctx,
java.lang.String bundlePathName,
java.lang.String generatedXmlsPathName)
throws GeneratorException
CMPGenerator
init 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(EjbBundleDescriptor, DeploymentContext, String, String)
public void init(EjbBundleDescriptor bundle,
java.lang.ClassLoader loader,
java.lang.String bundlePathName)
throws GeneratorException
CMPGenerator
init 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(EjbBundleDescriptor, DeploymentContext, String)}
when TestFramework is fixed for optional pm-descriptors and java2db support.
public void init(EjbBundleDescriptor bundle,
java.lang.ClassLoader loader,
java.lang.String bundlePathName,
boolean ignoreSunDeploymentDescriptors)
throws GeneratorException
ignoreSunDeploymentDescriptors
is true.
GeneratorExceptionCMPGenerator.init(EjbBundleDescriptor, ClassLoader, String)public java.util.Collection validate(IASEjbCMPEntityDescriptor descr)
CMPGenerator
validate in interface CMPGeneratordescr - the IASEjbCMPEntityDescriptor associated with this CMP bean.
CMPGenerator.validate(IASEjbCMPEntityDescriptor descr)
public void generate(IASEjbCMPEntityDescriptor ejbcmp,
java.io.File srcout,
java.io.File classout)
throws GeneratorException
CMPGenerator
generate 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 java.util.Collection cleanup()
throws GeneratorException
CMPGenerator
cleanup in interface CMPGeneratorGeneratorException - if there is any problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||