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.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ContentAssistProposals.ClassType
This enumeration determines the type of classes returned by |
| public static interface | ContentAssistProposals.EnumProposals
Holds onto the |
| Modifier and Type | Method and Description |
|---|---|
| public Iterable | Returns: Theentities defined in the persistence contextReturns the collection of possible abstract schema types. |
| public ResultQuery | Returns: The result of inserting the proposal into the query, including the adjust position, if it was requiredThe JPQL query to modify with the given proposal jpqlQuery, String The proposal to insert into the query proposal, int The position of insertion position, boolean Flag that determines if the partial word following the cursor should be left
intact or should be replaced by the proposal insert)Creates a new JPQL query by inserting the given proposal at the given position. |
| public ResultQuery | Returns: The result of inserting the proposal into the query, including the adjust position, if it was requiredThe JPQL query to modify with the given proposal jpqlQuery, String The proposal to insert into the query proposal, int The position of insertion position, boolean Flag that determines if the partial word following the cursor should be left
intact or should be replaced by the proposal insert)Creates a new JPQL query by inserting the given proposal at the given position. |
| public ResultQuery | Returns: The result of inserting the proposal into the query, including the adjust position, if it was requiredThe JPQL query to modify with the given proposal, which should be the non-
converted string, i.e. any escaped characters should not be converted jpqlQuery, String The proposal to insert into the query proposal, int The position of insertion, which was derived from the parsed tree representation
of the JPQL query position, boolean Flag that determines if the partial word following the cursor should be left
intact or should be replaced by the proposal insert)Creates a new JPQL query by inserting the given proposal at the given position. |
| public Iterable | Returns: The filtered list of possible class namesReturns the filtered list of possible class names. |
| public Iterable | Returns: The filtered list of possible column namesReturns the filtered list of possible column names. |
| public Iterable | Returns: The filtered list of possible enum constant names associated with its enum typeReturns the filtered list of possible enum constant names. |
| public IEntity | Returns: The abstract schema type mapped with the given identification variable ornull if the given variable is mapped to something else or not mapped to anythingThe identification variable that, if defined as a range variable,
will be mapped to a managed type identificationVariable)Retrieves the abstract schema type that is mapped with the given identification variable. |
| public ContentAssistProposals. | |
| public IdentifierRole | Returns: TheIdentifierRole for the given JPQL identifier or null if no
role was defined or if the given string is not a valid JPQL identifierThe JPQL identifier to retrieve its role identifier)Returns the role of the given JPQL identifier. |
| public boolean | Returns: true if there is at least one proposal; otherwise falseDetermines whether there is at least one proposals. |
| public Iterable | Returns: The list of possible identification variablesReturns the collection of possible identification variables. |
| public Iterable | Returns: The list of possible JPQL identifiersReturns the collection of possible JPQL identifiers. |
| public Iterable | |
| public Iterable | Returns: The filtered list of possible table namesReturns the filtered list of possible table names. |
| abstractSchemaTypes | back to summary |
|---|---|
| public Iterable Returns the collection of possible abstract schema types. | |
| buildEscapedQuery | back to summary |
|---|---|
| public ResultQuery buildEscapedQuery(String jpqlQuery, String proposal, int position, boolean insert) Creates a new JPQL query by inserting the given proposal at the given position. The updated JPQL query and position will be adjusted by converting some characters into their corresponding escaped characters, for instance '\r' will be converted to '\\r. The replacement will also handle compound JPQL identifiers when updating the JPQL query. Example: If the cursor is within "IS NOT N|" and the proposal is "IS NOT NULL", then "IS NOT" will not be added twice. If the word to replace is "IS NULL" and the proposal is "IS NOT NULL", then "NOT" will be inserted between "IS" and "NULL".
| |
| buildQuery | back to summary |
|---|---|
| public ResultQuery buildQuery(String jpqlQuery, String proposal, int position, boolean insert) Creates a new JPQL query by inserting the given proposal at the given position. The replacement will also handle compound JPQL identifiers when updating the JPQL query. Example: If the cursor is within "IS NOT N|" and the proposal is "IS NOT NULL", then "IS NOT" will not be added twice. If the word to replace is "IS NULL" and the proposal is "IS NOT NULL", then "NOT" will be inserted between "IS" and "NULL".
| |
| buildXmlQuery | back to summary |
|---|---|
| public ResultQuery buildXmlQuery(String jpqlQuery, String proposal, int position, boolean insert) Creates a new JPQL query by inserting the given proposal at the given position. The updated JPQL query and position will be adjusted by converting some characters into their corresponding escaped characters, for instance '>' will be converted to '>'. The replacement will also handle compound JPQL identifiers when updating the JPQL query. Example: If the cursor is within "IS NOT N|" and the proposal is "IS NOT NULL", then "IS NOT" will not be added twice. If the word to replace is "IS NULL" and the proposal is "IS NOT NULL", then "NOT" will be inserted between "IS" and "NULL".
| |
| classNames | back to summary |
|---|---|
| public Iterable Returns the filtered list of possible class names. This is usually available when the cursor is within the constructor name of the constructor expression.
| |
| columnNames | back to summary |
|---|---|
| public Iterable Returns the filtered list of possible column names. | |
| enumConstant | back to summary |
|---|---|
| public Iterable Returns the filtered list of possible enum constant names. This is usually available when the cursor is after the dot separating a fully qualified enum type and the enum constant.
| |
| getAbstractSchemaType | back to summary |
|---|---|
| public IEntity getAbstractSchemaType(String identificationVariable) Retrieves the abstract schema type that is mapped with the given identification variable.
| |
| getClassType | back to summary |
|---|---|
public ContentAssistProposals.
| |
| getIdentifierRole | back to summary |
|---|---|
| public IdentifierRole getIdentifierRole(String identifier) Returns the role of the given JPQL identifier.
| |
| hasProposals | back to summary |
|---|---|
| public boolean hasProposals() Determines whether there is at least one proposals.
| |
| identificationVariables | back to summary |
|---|---|
| public Iterable Returns the collection of possible identification variables. | |
| identifiers | back to summary |
|---|---|
| public Iterable Returns the collection of possible JPQL identifiers. | |
| mappings | back to summary |
|---|---|
| public Iterable Returns the collection of possible | |
| tableNames | back to summary |
|---|---|
| public Iterable Returns the filtered list of possible table names. | |
ContentAssistProposals#classNames().
| Modifier and Type | Field and Description |
|---|---|
| public static final ContentAssistProposals. | ENUM
Indicates the only class type allowed is an enum type. |
| public static final ContentAssistProposals. | INSTANTIABLE
Indicates the class has to be instantiable, i.e. anonymous, interfaces, enums, annotations are not allowed. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ContentAssistProposals. | |
| public static ContentAssistProposals. |
| ENUM | back to summary |
|---|---|
| public static final ContentAssistProposals. Indicates the only class type allowed is an enum type. | |
| INSTANTIABLE | back to summary |
|---|---|
| public static final ContentAssistProposals. Indicates the class has to be instantiable, i.e. anonymous, interfaces, enums, annotations are not allowed. | |
| ClassType | back to summary |
|---|---|
| private ClassType() | |
| valueOf | back to summary |
|---|---|
| public static ContentAssistProposals. | |
| values | back to summary |
|---|---|
| public static ContentAssistProposals. | |
IType of the enum type and the list of possible enum constants.
| enumConstants | back to summary |
|---|---|
| public Iterable Returns the list of enum constants that have been filtered. | |
| enumType | back to summary |
|---|---|
| public IType enumType() The | |