public class DatabaseGenerator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseGenerator.NameTuple
This class holds three strings which contain three type of information.
|
class |
DatabaseGenerator.Results
Contains the results of invoking DatabaseGenerator.generate()
|
Modifier and Type | Method and Description |
---|---|
static DatabaseGenerator.Results |
generate(Model model,
List pcClasses,
MappingPolicy mappingPolicy,
String schemaName,
String classSuffix,
boolean generateMappingClasses)
Generate database schema and mapping model from given map of
persistence class names.
|
public static DatabaseGenerator.Results generate(Model model, List pcClasses, MappingPolicy mappingPolicy, String schemaName, String classSuffix, boolean generateMappingClasses) throws org.netbeans.modules.dbschema.DBException, IOException, ModelException
model
- Holds java type information.pcClasses
- A List of NameTuple objects containing persistence
class name and table names.mappingPolicy
- Determines how dbvendor and user influence
generated schema.schemaName
- Identifies the generated schema.classSuffix
- Class name suffix that should be removed when
creating table names from class names.generateMappingClasses
- if it is true, generate mapping classes
also. Currently MappingClassElement's are always
generated, and the parameter's value is ignored.org.netbeans.modules.dbschema.DBException
IOException
ModelException
Copyright © 2018. All rights reserved.