Interface ContentAssistExtension
public interface ContentAssistExtension
This extension can be used to provide additional support to JPQL content assist that is outside
the scope of providing proposals related to JPA metadata. It adds support for providing
suggestions related to class names, enum constants, table names, column names.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
- Since:
- 2.5
- Version:
- 2.5
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ContentAssistExtension
Thenull
instance ofContentAssistExtension
. -
Method Summary
Modifier and TypeMethodDescriptionclassNames
(String prefix, ContentAssistProposals.ClassType type) Returns the fully qualified class names filtered by the given prefix and type.columnNames
(String tableName, String prefix) Returns the names of the given table's columns.tableNames
(String prefix) Returns the names of the database tables filtered by the given prefix.
-
Field Details
-
NULL_HELPER
Thenull
instance ofContentAssistExtension
.
-
-
Method Details
-
classNames
Returns the fully qualified class names filtered by the given prefix and type.- Parameters:
prefix
- The prefix is used to filter, it can be an empty string but nevernull
type
- Determines how to filter the various types of classes- Returns:
- The filtered fully qualified class names
-
columnNames
Returns the names of the given table's columns.- Parameters:
tableName
- The name of the table to retrieve the name of its columns, which is nevernull
- Returns:
- The column names
-
tableNames
Returns the names of the database tables filtered by the given prefix.- Parameters:
prefix
- The prefix is used to filter, it can be an empty string but nevernull
- Returns:
- The filtered table names
-