Key properties can be requested as part of an Oracle Commerce Navigation query (ENEQuery).

By default, key properties are not returned by navigation requests to avoid extra communication when not needed. To request key properties, use the ENEQuery.setNavKeyProperties method:

ENEQuery query = ...

To retrieve the key properties from the corresponding Navigation result, use the Navigation.getKeyProperties method:

ENEQueryResults results = …
Map keyPropMap = results.getNavigation().getKeyProperties();

This method returns a Map from String key names to KeyProperties objects, which implement the com.endeca.navigation.PropertyContainer interface, providing access to property values through the same interface as an Oracle Commerce record (ERec object).

Copyright © Legal Notices