Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.jpql
Class DefaultContentAssistExtension

java.lang.Object
  extended by org.eclipse.jpt.jpa.core.jpql.DefaultContentAssistExtension

public class DefaultContentAssistExtension
extends Object

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.

Note: This will only be invoked if the JPQL grammar supports it, generic JPA does not.

Since:
3.3

Nested Class Summary
static class DefaultContentAssistExtension.ExpressionStartsWithIgnoreCase
           
static class DefaultContentAssistExtension.TableNameTransformer
           
 
Field Summary
protected static org.eclipse.jpt.common.utility.internal.transformer.TransformerAdapter<String,String> TABLE_NAME_TRANSFORMER
           
 
Constructor Summary
DefaultContentAssistExtension(JpaProject jpaProject)
          Creates a new DefaultContentAssistExtension.
 
Method Summary
protected  boolean acceptClass(IType type, String className, ClassType classType, String prefix, boolean hasDot)
           
 Iterable<String> classNames(String prefix, ClassType classType)
          
 Iterable<String> columnNames(String tableName, String prefix)
          
protected  Schema getSchema()
           
protected  boolean isClassFiltered(String className, String prefix, boolean hasDot)
           
protected  Iterable<String> tableNames(Schema schema)
           
 Iterable<String> tableNames(String prefix)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_NAME_TRANSFORMER

protected static final org.eclipse.jpt.common.utility.internal.transformer.TransformerAdapter<String,String> TABLE_NAME_TRANSFORMER
Constructor Detail

DefaultContentAssistExtension

public DefaultContentAssistExtension(JpaProject jpaProject)
Creates a new DefaultContentAssistExtension.

Parameters:
jpaProject - The JPA project is necessary to give access to the additional information
Method Detail

acceptClass

protected boolean acceptClass(IType type,
                              String className,
                              ClassType classType,
                              String prefix,
                              boolean hasDot)
                       throws Exception
Throws:
Exception

classNames

public Iterable<String> classNames(String prefix,
                                   ClassType classType)


columnNames

public Iterable<String> columnNames(String tableName,
                                    String prefix)


getSchema

protected Schema getSchema()

isClassFiltered

protected boolean isClassFiltered(String className,
                                  String prefix,
                                  boolean hasDot)

tableNames

protected Iterable<String> tableNames(Schema schema)

tableNames

public Iterable<String> tableNames(String prefix)


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.