Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.jpql.spi
Class JpaTypeRepository

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

public class JpaTypeRepository
extends Object

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.

Since:
3.0

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

JpaTypeRepository

public JpaTypeRepository(IJavaProject javaProject)
Creates a new JpaTypeRepository.

Parameters:
javaProject - The Java project that gives access the design-time objects representing the Java types
Method Detail

buildInnerTypeName

protected String buildInnerTypeName(String typeName,
                                    int index)

buildPrimitives

protected Map<String,Class<?>> buildPrimitives()

buildType

protected IJpaType buildType(Class<?> javaType)

buildType

protected IJpaType buildType(IType type)

buildType

protected IJpaType buildType(String typeName)

convertToJavaArrayType

protected String convertToJavaArrayType(String typeName)

findPrimitive

protected Class<?> findPrimitive(String typeName)

findType

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.

Parameters:
typeName - The fully qualified type name
Returns:
The design-time Java type if it could be retrieved; null otherwise

getEnumType

public IJpaType getEnumType(String enumTypeName)


getJavaProject

protected IJavaProject getJavaProject()
Returns the Java project, which gives access to the class path.

Returns:
The Java project, which gives access to the class path

getType

public IJpaType getType(Class<?> javaClass)


getType

protected IType getType(IResource resource)
Retrieves the IType for the given IResource.

Parameters:
resource - The workspace location of the IType to retrieve
Returns:
The design-time representation of a Java type

getType

public IJpaType getType(String typeName)


getTypeHelper

public TypeHelper getTypeHelper()


loadArrayType

protected IJpaType loadArrayType(String typeName)

loadInnerType

protected IJpaType loadInnerType(String typeName)

loadJavaArrayType

protected IJpaType loadJavaArrayType(String typeName)

loadTypeImp

protected IJpaType loadTypeImp(String typeName)

unresolvableType

protected IJpaType unresolvableType()

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.