|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jpt.jpa.core.jpql.spi.JpaTypeRepository
public class JpaTypeRepository
The concrete implementation of ITypeRepository that is wrapping the design-time
representation of a type repository.
Provisional API: This interface is part of an interim API that is still under development and
expected to change significantly before reaching stability. It is available at this early stage
to solicit feedback from pioneering adopters on the understanding that any code that uses this
API will almost certainly be broken (repeatedly) as the API evolves.
| Constructor Summary | |
|---|---|
JpaTypeRepository(IJavaProject javaProject)
Creates a new JpaTypeRepository. |
|
| Method Summary | |
|---|---|
protected String |
buildInnerTypeName(String typeName,
int index)
|
protected Map<String,Class<?>> |
buildPrimitives()
|
protected IJpaType |
buildType(Class<?> javaType)
|
protected IJpaType |
buildType(IType type)
|
protected IJpaType |
buildType(String typeName)
|
protected String |
convertToJavaArrayType(String typeName)
|
protected Class<?> |
findPrimitive(String typeName)
|
protected IType |
findType(String typeName)
Retrieves the design-time Java type for the given type name, which has to be the fully qualified type name. |
IJpaType |
getEnumType(String enumTypeName)
|
protected IJavaProject |
getJavaProject()
Returns the Java project, which gives access to the class path. |
IJpaType |
getType(Class<?> javaClass)
|
protected IType |
getType(IResource resource)
Retrieves the IType for the given IResource. |
IJpaType |
getType(String typeName)
|
TypeHelper |
getTypeHelper()
|
protected IJpaType |
loadArrayType(String typeName)
|
protected IJpaType |
loadInnerType(String typeName)
|
protected IJpaType |
loadJavaArrayType(String typeName)
|
protected IJpaType |
loadTypeImp(String typeName)
|
protected IJpaType |
unresolvableType()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JpaTypeRepository(IJavaProject javaProject)
JpaTypeRepository.
javaProject - The Java project that gives access the design-time objects representing
the Java types| Method Detail |
|---|
protected String buildInnerTypeName(String typeName,
int index)
protected Map<String,Class<?>> buildPrimitives()
protected IJpaType buildType(Class<?> javaType)
protected IJpaType buildType(IType type)
protected IJpaType buildType(String typeName)
protected String convertToJavaArrayType(String typeName)
protected Class<?> findPrimitive(String typeName)
protected IType findType(String typeName)
typeName - The fully qualified type name
null otherwisepublic IJpaType getEnumType(String enumTypeName)
protected IJavaProject getJavaProject()
public IJpaType getType(Class<?> javaClass)
protected IType getType(IResource resource)
IType for the given IResource.
resource - The workspace location of the IType to retrieve
public IJpaType getType(String typeName)
public TypeHelper getTypeHelper()
protected IJpaType loadArrayType(String typeName)
protected IJpaType loadInnerType(String typeName)
protected IJpaType loadJavaArrayType(String typeName)
protected IJpaType loadTypeImp(String typeName)
protected IJpaType unresolvableType()
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||