Class JpqlUiSuggestionProvider
java.lang.Object
io.jmix.ui.component.autocomplete.JpqlUiSuggestionProvider
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected CurrentAuthentication
protected static final String
protected Metadata
protected static final String
protected QuerySuggestionProvider
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCurrentUserAttributes
(List<String> strings) protected void
addSpecificSuggestions
(AutoCompleteSupport sender, int cursorPosition, List<Suggestion> suggestions) protected Suggestion
createSuggestion
(QuerySuggestions.Option option, QuerySuggestions querySuggestions, AutoCompleteSupport sender) getSuggestions
(AutoCompleteSupport sender, String joinStr, String whereStr, String entityName, boolean inJoinClause) getSuggestions
(String query, int queryPosition, AutoCompleteSupport sender) getSuggestions
(String query, int queryPosition, AutoCompleteSupport sender, Supplier<Map<String, String>> parametersSupplier)
-
Field Details
-
JOIN
- See Also:
-
WHERE
- See Also:
-
PLACEHOLDER
- See Also:
-
CURRENT_USER_PREFIX
- See Also:
-
querySuggestionProvider
-
currentAuthentication
-
metadata
-
-
Constructor Details
-
JpqlUiSuggestionProvider
public JpqlUiSuggestionProvider()
-
-
Method Details
-
getSuggestions
public List<Suggestion> getSuggestions(String query, int queryPosition, AutoCompleteSupport sender, @Nullable Supplier<Map<String, String>> parametersSupplier) -
getSuggestions
-
getSuggestions
public List<Suggestion> getSuggestions(AutoCompleteSupport sender, @Nullable String joinStr, @Nullable String whereStr, String entityName, boolean inJoinClause) -
addSpecificSuggestions
protected void addSpecificSuggestions(AutoCompleteSupport sender, int cursorPosition, List<Suggestion> suggestions) -
addCurrentUserAttributes
-
createSuggestion
protected Suggestion createSuggestion(QuerySuggestions.Option option, QuerySuggestions querySuggestions, AutoCompleteSupport sender)
-