public class MappingGenerator extends MappingGenerator
MappingGenerator.SQLTypeUtil| Modifier and Type | Field and Description |
|---|---|
static String |
JAVA_TO_DB_FLAG |
| Constructor and Description |
|---|
MappingGenerator(EjbBundleDescriptorImpl bundle,
Model model,
NameMapper nameMapper,
ClassLoader loader)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.netbeans.modules.dbschema.SchemaElement |
generateMapping(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.
|
cleanup, generateMappingClasses, getClassLoader, getConversionHelper, getInfoHelper, getNameMapper, isPropertyDefined, loadMappingClasses, updateColumn, updatePropertiespublic static final String JAVA_TO_DB_FLAG
public MappingGenerator(EjbBundleDescriptorImpl bundle, 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(DeploymentContext ctx, String inputFilesPath, String generatedXmlsPath, File classout, boolean ignoreSunDeploymentDescriptors) throws IOException, org.netbeans.modules.dbschema.DBException, ModelException, org.netbeans.modules.schema2beans.Schema2BeansException, SQLException, GeneratorException, 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.DBExceptionModelExceptionorg.netbeans.modules.schema2beans.Schema2BeansExceptionSQLExceptionGeneratorExceptionConversionExceptionpublic String getDatabaseVendorName()
public boolean isJavaToDatabase()
Copyright © 2019. All rights reserved.