Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When working with attributes, instead of attribute IDs their database field names you can use column technical names in api.find filters. In this case, column names are also returned as keys.

  • The api.find/stream methods accept field names from the meta data (customized custom column names).
  • The api.find/stream methods accept sort column names from the meta data.
  • When field names are used and a raw DB result is returned, the resulting object has keys from the meta data.
  • When loading a list of entities (a result of api.find/stream), the function List api.namedEntities(List) has to be called to convert the result of api.find to a list of maps that have keys from the meta data.
    If you use the api.find/stream without the List of fields, you get Objects representing the result which can be converted to a List of hashmaps with named fields using api.namedEntities() or iterator.nextNamedEntity().

...