static boolean isRelationshipField(ISearchField field) { if (AbstractSearchField.class.isInstance(field)) { AbstractSearchField selection = (AbstractSearchField) field; return selection.getRootField().getDataType().equals(DataTypeEnum.RELATIONSHIP) && (selection.getInnerField() == null || selection.getInnerField().equals(InternalFieldEnum.ID.getDbName())); } return false; }
public String getSearchFieldValueName(AbstractSearchField field) { return field.getRootField().getFlattenValueDbName(); }