public interface ContentAssistProposals
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<IEntity> |
abstractSchemaTypes()
Returns the collection of possible abstract schema types.
|
ResultQuery |
buildEscapedQuery(java.lang.String jpqlQuery,
java.lang.String proposal,
int position,
boolean insert)
Creates a new JPQL query by inserting the given proposal at the given position.
|
ResultQuery |
buildQuery(java.lang.String jpqlQuery,
java.lang.String proposal,
int position,
boolean insert)
Creates a new JPQL query by inserting the given proposal at the given position.
|
IEntity |
getAbstractSchemaType(java.lang.String identificationVariable)
Retrieves the abstract schema type that is mapped with the given identification variable.
|
boolean |
hasProposals()
Determines whether there is at least one proposals.
|
java.lang.Iterable<java.lang.String> |
identificationVariables()
Returns the collection of possible identification variables.
|
java.lang.Iterable<java.lang.String> |
identifiers()
Returns the collection of possible JPQL identifiers.
|
java.lang.Iterable<IMapping> |
mappings()
Returns the collection of possible
mappings , which can be state fields,
association fields and/or collection fields depending on the location used to retrieve the
possible proposals. |
java.lang.Iterable<IEntity> abstractSchemaTypes()
entities
defined in the persistence contextResultQuery buildEscapedQuery(java.lang.String jpqlQuery, java.lang.String proposal, int position, boolean insert)
TODO: TO REWORD: If the proposal is has more than one identifier, for instance, IS NOT
NULL
, then the replacement will go further than just replacing the current word. If the
cursor is in "IS NOT N|" and the proposal is "IS NOT NULL", then "IS NOT" will not be added
twice. If the identifier is "IS NULL" and the proposal is "IS NOT NULL", then NOT will be
inserted between IS and NULL.
jpqlQuery
- The JPQL query to insert the given proposalproposal
- The proposal to insert into the queryposition
- The position of insertioninsert
- Flag that determines if the partial word following the cursor should be left
intact or replaced by the proposalResultQuery buildQuery(java.lang.String jpqlQuery, java.lang.String proposal, int position, boolean insert)
TODO: TO REWORD: If the proposal is has more than one identifier, for instance, IS NOT
NULL
, then the replacement will go further than just replacing the current word. If the
cursor is in "IS NOT N|" and the proposal is "IS NOT NULL", then "IS NOT" will not be added
twice. If the identifier is "IS NULL" and the proposal is "IS NOT NULL", then NOT will be
inserted between IS and NULL.
jpqlQuery
- The JPQL query to insert the given proposalproposal
- The proposal to insert into the queryposition
- The position of insertioninsert
- Flag that determines if the partial word following the cursor should be left
intact or replaced by the proposalIEntity getAbstractSchemaType(java.lang.String identificationVariable)
identificationVariable
- The identification variable that, if defined as a range variable,
will be mapped to a managed typenull
if the given variable is mapped to something else or not mapped to anythingboolean hasProposals()
true
if there is at least one proposal; otherwise false
java.lang.Iterable<java.lang.String> identificationVariables()
java.lang.Iterable<java.lang.String> identifiers()
EclipseLink 2.3.2, "build v20111125-r10461" API Reference