| Package | Description |
|---|---|
| org.molgenis |
MOLGENIS generative platform for life sciences having framework, generators, models and util.
|
| org.molgenis.fieldtypes |
Helper functions for each field type.
|
| org.molgenis.generators |
MOLGENIS generators.
|
| org.molgenis.model.elements |
Currently known model elements like 'entity' and 'field'.
|
| Modifier and Type | Method and Description |
|---|---|
static FieldType |
MolgenisFieldTypes.get(Field f) |
| Modifier and Type | Field and Description |
|---|---|
protected Field |
FieldType.f
For xref purposes we sometimes need a handle of the field this type was defined as part of.
|
| Modifier and Type | Method and Description |
|---|---|
FieldType |
FieldType.getFieldType(Field f)
Get the field type from a field.
|
void |
FieldType.setField(Field f) |
| Modifier and Type | Method and Description |
|---|---|
Field |
GeneratorHelper.getXrefField(Model model,
Field e) |
| 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<Field> |
GeneratorHelper.getDbFields(Entity e,
String type)
The table fields of this entity
|
Vector<Field> |
GeneratorHelper.getKeyFields(Entity e) |
Vector<Field> |
GeneratorHelper.getKeyFields(List<Unique> keys)
Return all secondary key fields.
|
Vector<Field> |
GeneratorHelper.getKeyFields(Unique u) |
Vector<Field> |
GeneratorHelper.getSecondaryKeyFields(Entity e) |
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)
|
| Modifier and Type | Method and Description |
|---|---|
String |
GeneratorHelper.getCppJavaType(Field field)
Get the cpp type for a field.
|
String |
GeneratorHelper.getCppType(Field field)
Get the cpp type for a field.
|
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.getHsqlType(Field field) |
String |
GeneratorHelper.getJavaAssignment(Field field,
String value) |
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.
|
String |
GeneratorHelper.getType(Field field)
Get the java type for a field.
|
Field |
GeneratorHelper.getXrefField(Model model,
Field e) |
String |
GeneratorHelper.getXsdType(Model model,
Field field) |
boolean |
GeneratorHelper.isPrimaryKey(Field f,
Entity e) |
| Modifier and Type | Class and Description |
|---|---|
class |
FieldWithXrefLabel
Helper class to deal with xref_label fields.
|
| Modifier and Type | Method and Description |
|---|---|
Field |
Model.findField(String f) |
Field |
Entity.getAllField(String name)
Returns the field with the given name from entity or any of its parents.
|
Field |
Entity.getField(String name) |
Field |
Entity.getField(String name,
boolean required,
boolean recursive,
boolean systemFields)
Returns the field with the given name.
|
Field |
Entity.getFieldRecusive(String name) |
Field |
Entity.getPrimaryKey() |
Field |
Field.getXrefField()
Returns the name of the field of the entity this field is referencing to.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<Field>> |
Field.allPossibleXrefLabels() |
Vector<Field> |
Entity.getAddFields() |
Vector<Field> |
Entity.getAllAddFields() |
List<Field> |
View.getAllFields() |
Vector<Field> |
Entity.getAllFields() |
Vector<Field> |
Entity.getAllFieldsOf(FieldType type) |
Vector<Field> |
Entity.getAllFieldsOf(String typeName) |
Vector<Field> |
Entity.getAllLocalFields()
Returns a vector with all the fields that are actualy located in this entity.
|
Vector<Field> |
Entity.getAllUpdateFields() |
List<Field> |
View.getFields() |
Vector<Field> |
Unique.getFields()
Returns a list of all the fields that make up this unique.
|
List<Field> |
Record.getFields() |
List<Field> |
Entity.getFields()
Returns a vector with all the fields associated with this entity.
|
List<Field> |
Entity.getFields(boolean required,
boolean recursive,
boolean systemField) |
List<Field> |
Entity.getFields(boolean required,
boolean recursive,
boolean systemField,
boolean implementing)
Returns a vector with all the fields associated with this entity.
|
Vector<Field> |
Entity.getFieldsOf(FieldType type)
Returns a vector with all the fields associated with this entity and are of the given type.
|
Vector<Field> |
Entity.getImplementedFields()
Get fields for this entity as well as from the interfaces it implements.
|
Vector<Field> |
Entity.getImplementedFieldsOf(FieldType type) |
Vector<Field> |
Entity.getImplementedFieldsOf(String typeName) |
Vector<Field> |
Entity.getInheritedFields() |
Vector<Field> |
Entity.getKeyFields(int index)
Returns a list of the fields that make up the key at the given index.
|
Vector<Field> |
Entity.getLocalFields()
Returns a vector with all the fields that are actualy located in this entity.
|
List<Field> |
Entity.getNonSystemFields(boolean all)
Returns all the fields belonging to this entity, which have not set the system-property.
|
Vector<Field> |
Entity.getReferences() |
Vector<Field> |
Entity.getRemoteFields()
Returns a vector with all the fields that are located in other tables, but belong to this entity (xref_multiple).
|
List<Field> |
Entity.getSystemFields(boolean all) |
List<Field> |
Entity.getUserFields() |
List<Field> |
Entity.getXRefFields() |
List<Field> |
Field.getXrefLabelPath(String label) |
List<Field> |
Field.getXrefLabels() |
List<Field> |
View.getXRefsFor(Entity e,
List<Entity> entities) |
| Modifier and Type | Method and Description |
|---|---|
void |
Entity.addField(Field field)
Adds the given field to the list of fields associated with this entity.
|
void |
Entity.addField(Integer pos,
Field field)
Adds the given field to the list of fields associated with this entity.
|
void |
Entity.addReference(Field f) |
int |
Entity.getNumberOfMrefTo(Entity e,
Field f) |
int |
Entity.getNumberOfReferencesTo(Entity e,
Field f) |
void |
Entity.removeField(Field field) |
| Constructor and Description |
|---|
Field(Field field)
copy-constructor
|
FieldWithXrefLabel(Field field) |
Copyright © 2015. All Rights Reserved.