Interface IteratorFactory.ColumnIteratorBuilder
- Enclosing interface:
IteratorFactory
public static interface IteratorFactory.ColumnIteratorBuilder
-
Method Summary
Modifier and TypeMethodDescriptionaddFilterCondition
(Predicate<ModelElement> filter) Adds a custom filter to the iterator.build()
Skips all field models while iterating.Skips all relation models while iterating.Exclude all columns that are foreign keys if its entity is not defined in the specified module.includeOnlyFieldsFromModule
(AppModule module) All field models not defined in the given module are skipped.In case of a field model, only the localized fields are included.All relation models not defined in the given module are skipped.Iterate over removed elements instead of existing.In case of a localized field, only inlcude the base field (ex.
-
Method Details
-
build
Iterator<ModelColumnInfo> build() -
excludeFields
IteratorFactory.ColumnIteratorBuilder excludeFields()Skips all field models while iterating. -
exludeRelations
IteratorFactory.ColumnIteratorBuilder exludeRelations()Skips all relation models while iterating. -
skipGeneratedLocalizedFields
IteratorFactory.ColumnIteratorBuilder skipGeneratedLocalizedFields()In case of a localized field, only inlcude the base field (ex. "label") and not the generated language fields (like "label_fr"). Technically this will include only the field representing the default language. -
includeOnlyLocalizedFields
IteratorFactory.ColumnIteratorBuilder includeOnlyLocalizedFields()In case of a field model, only the localized fields are included. -
includeOnlyFieldsFromModule
All field models not defined in the given module are skipped. -
includeOnlyRelationsFromModule
All relation models not defined in the given module are skipped. -
addFilterCondition
Adds a custom filter to the iterator. -
exludeRelationsFromForeignEntities
Exclude all columns that are foreign keys if its entity is not defined in the specified module. -
iterateOverRemovedElements
IteratorFactory.ColumnIteratorBuilder iterateOverRemovedElements()Iterate over removed elements instead of existing.
-