| Package | Description |
|---|---|
| org.molgenis.generators |
MOLGENIS generators.
|
| org.molgenis.generators.db |
Generates Database backends
|
| org.molgenis.model |
MOLGENIS meta model parser.
|
| org.molgenis.model.elements |
Currently known model elements like 'entity' and 'field'.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ForEachEntityGenerator.generate(Model model,
MolgenisOptions options) |
void |
JpaRepositorySourceGen.generate(Model model,
MolgenisOptions options) |
abstract void |
Generator.generate(Model model,
MolgenisOptions options) |
void |
DataTypeGen.generate(Model model,
MolgenisOptions options) |
void |
ForEachMatrixGenerator.generate(Model model,
MolgenisOptions options) |
protected void |
ForEachEntityGenerator.generate(Model model,
MolgenisOptions options,
boolean generateTests) |
void |
Generator.generate(Model model,
MolgenisOptions options,
String generatedPath) |
String |
GeneratorHelper.getDefault(Model model,
Field field)
Creates a default value based on the default values set in the model.
|
FieldType |
GeneratorHelper.getFieldType(Model model,
Field field) |
String |
GeneratorHelper.getImports(Model m,
Entity e,
String subpackage,
String suffix) |
String |
GeneratorHelper.getMysqlType(Model model,
Field field)
Get the mysql type of a field: VARCHAR, INT, etc.
|
String |
GeneratorHelper.getOracleType(Model model,
Field field) |
String |
GeneratorHelper.getSetType(Model model,
Field field)
Java setter type of the field, e.g.
|
List<Entity> |
GeneratorHelper.getSubclasses(Entity superclass,
Model m) |
List<Entity> |
GeneratorHelper.getSuperclasses(Entity subclass,
Model m) |
Field |
GeneratorHelper.getXrefField(Model model,
Field e) |
String |
GeneratorHelper.getXsdType(Model model,
Field field) |
| Modifier and Type | Method and Description |
|---|---|
void |
JDBCMetaDatabaseGen.generate(Model model,
MolgenisOptions options) |
void |
JpaDatabaseGen.generate(Model model,
MolgenisOptions options) |
void |
DatabaseConfigGen.generate(Model model,
MolgenisOptions options) |
void |
PersistenceGen.generate(Model model,
MolgenisOptions options) |
void |
EntitiesImporterGen.generate(Model model,
MolgenisOptions options) |
void |
EntitiesValidatorGen.generate(Model model,
MolgenisOptions options) |
void |
CrudRepositorySecurityDecoratorGen.generate(Model model,
MolgenisOptions options) |
| Modifier and Type | Method and Description |
|---|---|
static Model |
MolgenisModel.parse(MolgenisOptions options) |
static Model |
MolgenisModel.parse(Properties p) |
static Model |
MolgenisModelParser.parseDbSchema(ArrayList<String> filenames) |
static Model |
MolgenisModelParser.parseDbSchema(ArrayList<String> filenames,
String modelName) |
static Model |
MolgenisModelParser.parseDbSchema(String xml)
Simple parse an xml string
|
| Modifier and Type | Method and Description |
|---|---|
static void |
MolgenisModelValidator.addInterfaces(Model model)
Add interfaces as artificial entities to the model
|
static void |
MolgenisModelValidator.addTypeFieldInSubclasses(Model model)
In each entity of an entity subclass hierarchy a 'type' field is added to enable filtering.
|
static void |
MolgenisModelValidator.addXrefLabelsToEntities(Model model) |
static void |
MolgenisModelValidator.copyDecoratorsToSubclass(Model model) |
static void |
MolgenisModelValidator.copyDefaultXrefLabels(Model model)
Default xref labels can come from: - the xref_entity (or one of its superclasses)
|
static void |
MolgenisModelValidator.copyFieldsToSubclassToEnforceConstraints(Model model)
Copy fields to subclasses (redundantly) so this field can be part of an extra constraint.
|
static void |
MolgenisModelValidator.correctXrefCaseSensitivity(Model model)
test for case sensitivity
|
static void |
MolgenisModelValidator.createLinkTablesForMrefs(Model model,
MolgenisOptions options)
Add link tables for many to many relationships
A link table entity will have the name of [from_entity]_[to_entity]
A link table has two xrefs to the from/to entity respectively
The column names are those of the respective fields
In case of a self reference, the second column name is '_self'
|
static void |
MolgenisModelValidator.moveMrefsFromInterfaceAndCopyToSubclass(Model model)
As mrefs are a linking table between to other tables, interfaces cannot be part of mrefs (as they don't have a
linking table).
|
static Entity |
MolgenisModelParser.parseEntity(Model model,
Element element) |
static void |
MolgenisModelParser.parseMatrix(Model model,
Element element) |
static void |
MolgenisModelParser.parseMethod(Model model,
Element element) |
static void |
MolgenisModelParser.parseModule(Model model,
Element element) |
static void |
MolgenisModelParser.parseQuery(Model model,
Method method,
Element element) |
static void |
MolgenisModelParser.parseQueryRule(Model model,
MethodQuery query,
Element element) |
static void |
MolgenisModelParser.parseReturnType(Model model,
Method method,
Element element) |
static void |
MolgenisModelParser.parseView(Model model,
Element element) |
static List<Entity> |
MolgenisModel.sortEntitiesByDependency(List<Entity> entityList,
Model model) |
static void |
MolgenisModelValidator.validate(Model model,
MolgenisOptions options) |
static void |
MolgenisModelValidator.validateExtendsAndImplements(Model model)
Validate extends and implements relationships:
Do superclasses actually exist
Do 'implements' refer to abstract superclasses (interfaces)
Do 'extends' refer to non-abstract superclasses
Copy primary key to subclass to form parent/child relationships
|
static void |
MolgenisModelValidator.validateForeignKeys(Model model)
Validate foreign key relationships:
Do the xref_field and xref_label refer to fields actually exist
Is the entity refered to non-abstract
Does the xref_field refer to a unique field (i.e.
|
static void |
MolgenisModelValidator.validateHideFields(Model model) |
static void |
MolgenisModelValidator.validateKeys(Model model)
Validate the unique constraints
Do unique field names refer to existing fields?
Is there a unique column id + unique label?
|
static void |
MolgenisModelValidator.validateNamesAndReservedWords(Model model,
MolgenisOptions options) |
static void |
MolgenisModelValidator.validateNameSize(Model model,
MolgenisOptions options) |
static void |
MolgenisModelValidator.validateOveride(Model model)
Subclasses can override fields of superclasses.
|
static void |
MolgenisModelValidator.validatePrimaryKeys(Model model) |
static void |
MolgenisModelValidator.validateViews(Model model)
Check if the view objects are an aggregate of known entities.
|
| Modifier and Type | Method and Description |
|---|---|
Model |
DBSchema.getModel() |
Model |
Entity.getModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
DBSchema.setModel(Model model) |
| Constructor and Description |
|---|
DBSchema(String name,
DBSchema parent,
Model model)
The standard constructor, which links the object in the tree (with the
parent parameter).
|
Module(String name,
Model model) |
Copyright © 2015. All Rights Reserved.