| Package | Description |
|---|---|
| org.molgenis.fieldtypes |
Helper functions for each field type.
|
| org.molgenis.generators |
MOLGENIS generators.
|
| 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 |
|---|---|
Entity |
FieldType.getEntityByName(String name)
Get an entity from the field type (only works if the field type is linked to a Field instance).
|
| Modifier and Type | Method and Description |
|---|---|
List<Entity> |
GeneratorHelper.getSubclasses(Entity superclass,
Model m) |
List<Entity> |
GeneratorHelper.getSuperclasses(Entity subclass,
Model m) |
| Modifier and Type | Method and Description |
|---|---|
Vector<Field> |
GeneratorHelper.getAddFields(Entity e) |
Vector<Field> |
GeneratorHelper.getAddFields(Entity e,
boolean includeKey)
Get the fields that participate in an insert (so excluding automatic fields).
|
Vector<Field> |
GeneratorHelper.getAllFields(Entity e) |
Vector<Field> |
GeneratorHelper.getAllFields(Entity e,
String type) |
Vector<Unique> |
GeneratorHelper.getAllKeys(Entity e) |
Vector<Field> |
GeneratorHelper.getDbFields(Entity e,
String type)
The table fields of this entity
|
String |
GeneratorHelper.getImports(Model m,
Entity e,
String subpackage,
String suffix) |
Vector<Field> |
GeneratorHelper.getKeyFields(Entity e) |
Vector<Field> |
GeneratorHelper.getSecondaryKeyFields(Entity e) |
Vector<Unique> |
GeneratorHelper.getSecondaryKeys(Entity e)
Return all secondary keys for an entity
|
List<Entity> |
GeneratorHelper.getSubclasses(Entity superclass,
Model m) |
List<Entity> |
GeneratorHelper.getSuperclasses(Entity subclass,
Model m) |
Vector<Unique> |
GeneratorHelper.getTableKeys(Entity e)
A table can only contain the keys for columns that are actually in the table.
|
Vector<Field> |
GeneratorHelper.getUpdateFields(Entity e) |
Vector<Field> |
GeneratorHelper.getViewFields(Entity e,
String type)
The queryable fields of the entity (in case of inheritance from the view join)
|
boolean |
GeneratorHelper.isPrimaryKey(Field f,
Entity e) |
| Modifier and Type | Method and Description |
|---|---|
static Entity |
MolgenisModelParser.parseEntity(Model model,
Element element) |
| Modifier and Type | Method and Description |
|---|---|
static List<Entity> |
MolgenisModel.sortEntitiesByDependency(List<Entity> entityList,
Model model) |
| Modifier and Type | Method and Description |
|---|---|
static void |
MolgenisModelParser.parseField(Entity entity,
Element element) |
| Modifier and Type | Method and Description |
|---|---|
static List<Entity> |
MolgenisModel.sortEntitiesByDependency(List<Entity> entityList,
Model model) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
Entity.getAncestor() |
Entity |
Matrix.getColEntity()
Return the Entity that contains the labels for the columns.
|
Entity |
Matrix.getContainerEntity()
Return the Entity that contains the container
|
Entity |
Unique.getEntity()
Returns the associated entity.
|
Entity |
Form.getEntity() |
Entity |
Field.getEntity() |
Entity |
Plugin.getEntity() |
Entity |
Tree.getEntity() |
Entity |
Model.getEntity(String name) |
Entity |
Field.getParent()
Deprecated.
|
Entity |
Method.getReturnType() |
Entity |
Entity.getRootAncestor()
Returns the root of the entity hierarchy this entity belongs to.
|
Entity |
Matrix.getRowEntity()
Return the Entity that contains the labels for the rows.
|
Entity |
Field.getXrefEntity()
Returns the name of the entity this field is referencing to.
|
| Modifier and Type | Method and Description |
|---|---|
Vector<Entity> |
Entity.getAllAncestors() |
Vector<Entity> |
Entity.getAllDescendants() |
Vector<Entity> |
Entity.getAllImplements() |
Vector<Entity> |
Model.getConcreteEntities() |
List<Entity> |
Entity.getDependencies() |
Vector<Entity> |
Entity.getDescendants()
Get the subclasses of this entity.
|
List<Entity> |
Module.getEntities() |
Vector<Entity> |
Model.getEntities() |
Vector<Entity> |
Model.getEntities(boolean includeSystemTable) |
Vector<Entity> |
Model.getEntities(boolean includeSystemTable,
boolean includeNonConcretes) |
Vector<Entity> |
Entity.getImplements() |
Vector<Entity> |
Model.getRootEntities()
Get entities that are NOT in modules (and are NOT mrefs).
|
| Modifier and Type | Method and Description |
|---|---|
int |
Entity.getNumberOfMrefTo(Entity e) |
int |
Entity.getNumberOfMrefTo(Entity e,
Field f) |
int |
Entity.getNumberOfReferencesTo(Entity e) |
int |
Model.getNumberOfReferencesTo(Entity e) |
int |
Entity.getNumberOfReferencesTo(Entity e,
Field f) |
List<Field> |
View.getXRefsFor(Entity e,
List<Entity> entities) |
void |
Unique.setEntity(Entity entity) |
void |
Form.setEntity(Entity entity) |
void |
Field.setEntity(Entity entity) |
void |
Plugin.setEntity(Entity entity) |
void |
Tree.setEntity(Entity entity) |
void |
Method.setReturnType(Entity returntype) |
| Modifier and Type | Method and Description |
|---|---|
List<Field> |
View.getXRefsFor(Entity e,
List<Entity> entities) |
void |
Module.setEntities(List<Entity> entities) |
| Constructor and Description |
|---|
Field(Entity parent,
FieldType type,
String name,
String label,
boolean auto,
boolean nillable,
boolean readonly,
String default_value)
Standard constructor, which sets all the common variables for a field.
|
Field(Entity parent,
FieldType type,
String name,
String label,
boolean auto,
boolean nillable,
boolean readonly,
String default_value,
String jpaCascade)
Standard constructor, which sets all the common variables for a field.
|
Field(Entity parent,
String name,
FieldType type) |
Unique(Entity entity,
List<String> fieldNames,
boolean subclass,
String description)
Constructor, which sets the associated entity and the list of fields as
the unique.
|
Unique(Entity entity,
String fieldName,
boolean subclass,
String description)
Constructor, which sets the associated entity and a single field as the
unique.
|
Copyright © 2015. All Rights Reserved.