org.eclipse.jpt.jpa.core.jpql
Class DefaultContentAssistExtension
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TABLE_NAME_TRANSFORMER
protected static final org.eclipse.jpt.common.utility.internal.transformer.TransformerAdapter<String,String> TABLE_NAME_TRANSFORMER
DefaultContentAssistExtension
public DefaultContentAssistExtension(JpaProject jpaProject)
- Creates a new
DefaultContentAssistExtension.
- Parameters:
jpaProject - The JPA project is necessary to give access to the additional information
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)
-
Copyright (c) 2012 Oracle. All rights reserved.