ComboboxValueRepository¶
-
public class
ComboboxValueRepository
extends AbstractRepository¶ Responsible for fetching possible values for a combobox from the database. This repository is only defined in the MDS entities bundle.
Methods¶
getComboboxValuesForCollection¶
-
public List<String>
getComboboxValuesForCollection
(String cbTableName)¶ Retrieves all values for a multi-select combobox given its table name in the database. Multi-select comboboxes have values stored in a separate table, hence we need the table name.
Parameters: - cbTableName – the name of the combobox tables
Returns: all values for the combobox currently in the database
getComboboxValuesForStringField¶
-
public List<String>
getComboboxValuesForStringField
(EntityDto entityDto, FieldDto cbFieldDto)¶ Retrieves all values for a single-select combobox.
Parameters: - entityDto – the entity to which the combobox belongs to
- cbFieldDto – the field representing the combobox
Returns: all values for the combobox currently in the database