public class MappingGenerator
extends com.sun.jdo.api.persistence.mapping.ejb.MappingGenerator
| Modifier and Type | Field and Description |
|---|---|
static String |
JAVA_TO_DB_FLAG |
| Constructor and Description |
|---|
MappingGenerator(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundle,
com.sun.jdo.api.persistence.model.Model model,
NameMapper nameMapper,
ClassLoader loader)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.netbeans.modules.dbschema.SchemaElement |
generateMapping(org.glassfish.api.deployment.DeploymentContext ctx,
String inputFilesPath,
String generatedXmlsPath,
File classout,
boolean ignoreSunDeploymentDescriptors)
This method will load mapping classes if there is sun-cmp-mappings.xml,
otherwise it will call the database generation backend to create
mapping classes and schema.
|
String |
getDatabaseVendorName() |
boolean |
isJavaToDatabase()
Returns javatodb flag in cmpResource.
|
public static final String JAVA_TO_DB_FLAG
public MappingGenerator(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl bundle,
com.sun.jdo.api.persistence.model.Model model,
NameMapper nameMapper,
ClassLoader loader)
bundle - an ejb bundlemodel - a model containing mapping class and
persistence class informationnameMapper - a nameMapper for name lookuploader - a class loaderpublic org.netbeans.modules.dbschema.SchemaElement generateMapping(org.glassfish.api.deployment.DeploymentContext ctx,
String inputFilesPath,
String generatedXmlsPath,
File classout,
boolean ignoreSunDeploymentDescriptors)
throws IOException,
org.netbeans.modules.dbschema.DBException,
com.sun.jdo.api.persistence.model.ModelException,
org.netbeans.modules.schema2beans.Schema2BeansException,
SQLException,
GeneratorException,
com.sun.jdo.api.persistence.mapping.ejb.ConversionException
ctx - an object containing CLI options for
the database generation backendinputFilesPath - the directory where sun-cmp-mappings.xml is locatedgeneratedXmlsPath - the directory where the generated files are locatedclassout - the directory where the classes are locatedignoreSunDeploymentDescriptors - use java2db generation if set to true.IOExceptionorg.netbeans.modules.dbschema.DBExceptioncom.sun.jdo.api.persistence.model.ModelExceptionorg.netbeans.modules.schema2beans.Schema2BeansExceptionSQLExceptionGeneratorExceptioncom.sun.jdo.api.persistence.mapping.ejb.ConversionExceptionpublic String getDatabaseVendorName()
public boolean isJavaToDatabase()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.