|
EclipseLink 2.5.0, build 'v20130425-368d603' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.tools.spi.java.JavaTypeRepository
public class JavaTypeRepository
The concrete implementation of ITypeRepository
that is wrapping the Java class loader.
Constructor Summary | |
---|---|
JavaTypeRepository(java.lang.ClassLoader classLoader)
Creates a new JavaTypeRepository . |
Method Summary | |
---|---|
protected java.lang.Class<?> |
attemptLoadType(java.lang.String typeName)
Retrieves the Java type for the given type name, which has to be the fully qualified type name. |
protected JavaType |
buildType(java.lang.Class<?> javaType)
|
protected JavaType |
buildType(java.lang.String typeName)
|
java.lang.ClassLoader |
getClassLoader()
Returns the ClassLoader that is used to load Java classes. |
IType |
getEnumType(java.lang.String enumTypeName)
Returns the IType representing the possible given enum constant. |
JavaType |
getType(java.lang.Class<?> javaClass)
Retrieves the external type for the given Java type. |
JavaType |
getType(java.lang.String typeName)
Retrieves the external class for the given fully qualified class name. |
TypeHelper |
getTypeHelper()
Returns a helper that gives access to the most common types . |
protected JavaType |
loadArrayType(java.lang.String typeName)
|
protected JavaType |
loadInnerType(java.lang.String typeName)
|
protected JavaType |
loadTypeImp(java.lang.String typeName)
|
protected JavaType |
unresolvableType()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaTypeRepository(java.lang.ClassLoader classLoader)
JavaTypeRepository
.
classLoader
- The repository used to access the application's classesMethod Detail |
---|
protected java.lang.Class<?> attemptLoadType(java.lang.String typeName)
typeName
- The fully qualified type name
null
otherwiseprotected JavaType buildType(java.lang.Class<?> javaType)
protected JavaType buildType(java.lang.String typeName)
public java.lang.ClassLoader getClassLoader()
ClassLoader
that is used to load Java classes.
ClassLoader
that is used to load Java classespublic IType getEnumType(java.lang.String enumTypeName)
IType
representing the possible given enum constant. If the given value
does not represent an enum constant, then null
is returned.
getEnumType
in interface ITypeRepository
enumTypeName
- The fully qualified enum type with the constant
null
if none existspublic JavaType getType(java.lang.Class<?> javaClass)
getType
in interface ITypeRepository
javaClass
- The Java type to wrap with an external form
public JavaType getType(java.lang.String typeName)
getType
in interface ITypeRepository
typeName
- The fully qualified class name of the class to retrieve
public TypeHelper getTypeHelper()
types
.
getTypeHelper
in interface ITypeRepository
IType
protected JavaType loadArrayType(java.lang.String typeName)
protected JavaType loadInnerType(java.lang.String typeName)
protected JavaType loadTypeImp(java.lang.String typeName)
protected JavaType unresolvableType()
|
EclipseLink 2.5.0, build 'v20130425-368d603' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |