|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentAssistProposals
This object stores the various proposals available for content assist for a certain position within a JPQL query. The proposals are stored in categories (abstract schema types, identifiers, identification variables and mappings).
Method Summary | |
---|---|
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. |
Method Detail |
---|
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()
java.lang.Iterable<IMapping> mappings()
mappings
, which can be state fields, association fields and/or collection fields depending on the location used to retrieve the possible proposals.mappings
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |