Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.internal.jpql
Class ContentAssistVisitor.FilteringMappingCollector

java.lang.Object
  extended by org.eclipse.persistence.jpa.internal.jpql.ContentAssistVisitor.FilteringMappingCollector

All Implemented Interfaces:
ContentAssistVisitor.MappingCollector
Enclosing class:
ContentAssistVisitor

private class ContentAssistVisitor.FilteringMappingCollector
extends java.lang.Object
implements ContentAssistVisitor.MappingCollector

This ContentAssistVisitor.DefaultMappingCollector returns the possible mappings (non-collection type or collection type) from a managed type.


Field Summary
private  Filter<IMapping> filter
          The Filter used to filter out either the collection type properties or the non- collection type properties.
private  Resolver resolver
          This resolver is used to retrieve the managed type, which is the parent path of this one.
private  java.lang.String suffix
          The suffix is used to determine if the mapping name needs to be filtered out or not.

 

Constructor Summary
ContentAssistVisitor.FilteringMappingCollector(Resolver resolver, Filter<IMapping> filter, java.lang.String suffix)
          Creates a new FilteringMappingCollector.

 

Method Summary
private  void addFilteredMappings(IManagedType managedType, java.util.List<IMapping> mappings)
           
private  Filter<IMapping> buildFilter(java.lang.String suffix)
           
private  Filter<IMapping> buildMappingNameFilter(java.lang.String suffix)
           
 java.util.Collection<IMapping> buildProposals()
          Retrieves the possible proposals that can be used to complete a path expression based on the position of the cursor.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

filter

private final Filter<IMapping> filter
The Filter used to filter out either the collection type properties or the non- collection type properties.

resolver

private final Resolver resolver
This resolver is used to retrieve the managed type, which is the parent path of this one.

suffix

private final java.lang.String suffix
The suffix is used to determine if the mapping name needs to be filtered out or not.

Constructor Detail

ContentAssistVisitor.FilteringMappingCollector

ContentAssistVisitor.FilteringMappingCollector(Resolver resolver,
                                               Filter<IMapping> filter,
                                               java.lang.String suffix)
Creates a new FilteringMappingCollector.
Parameters:
resolver - This resolver is used to retrieve the managed type, which is the parent path of this one
filter - The filter used to filter out either the collection type properties or the non-collection type properties
suffix - The suffix is used to determine if the property name needs to be filtered out or not

Method Detail

addFilteredMappings

private void addFilteredMappings(IManagedType managedType,
                                 java.util.List<IMapping> mappings)

buildFilter

private Filter<IMapping> buildFilter(java.lang.String suffix)

buildMappingNameFilter

private Filter<IMapping> buildMappingNameFilter(java.lang.String suffix)

buildProposals

public java.util.Collection<IMapping> buildProposals()
Retrieves the possible proposals that can be used to complete a path expression based on the position of the cursor.
Specified by:
buildProposals in interface ContentAssistVisitor.MappingCollector
Returns:
The possible proposals

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.