Dali Provisional API
Release 3.2

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

java.lang.Object
  extended by org.eclipse.jpt.jpa.core.jpql.spi.SimpleType
All Implemented Interfaces:
IJpaType
Direct Known Subclasses:
EclipseLinkDynamicType

public class SimpleType
extends Object
implements IJpaType

The concrete implementation of IType that is wrapping the type name only. 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
SimpleType(JpaTypeRepository typeRepository, String typeName)
          Creates a new SimpleType.
 
Method Summary
 Iterable<IConstructor> constructors()
          
 boolean equals(IType type)
          
 String[] getEnumConstants()
          
 String getName()
          
 ITypeDeclaration getTypeDeclaration()
          
protected  JpaTypeRepository getTypeRepository()
           
 boolean hasAnnotation(Class<? extends Annotation> annotationType)
          
 boolean isAssignableTo(IType type)
          
 boolean isEnum()
          
 boolean isResolvable()
          
 void setTypeDeclaration(JpaTypeDeclaration typeDeclaration)
          Manually sets the declaration of this IType, which gives the information about type parameters, dimensionality, etc.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleType

public SimpleType(JpaTypeRepository typeRepository,
                  String typeName)
Creates a new SimpleType.

Parameters:
typeRepository - The external form of a type repository
typeName - The fully qualified name of the Java type
Method Detail

constructors

public Iterable<IConstructor> constructors()


equals

public boolean equals(IType type)

Overrides:
equals in class Object

getEnumConstants

public String[] getEnumConstants()


getName

public String getName()


getTypeDeclaration

public ITypeDeclaration getTypeDeclaration()


getTypeRepository

protected JpaTypeRepository getTypeRepository()

hasAnnotation

public boolean hasAnnotation(Class<? extends Annotation> annotationType)


isAssignableTo

public boolean isAssignableTo(IType type)


isEnum

public boolean isEnum()


isResolvable

public boolean isResolvable()


setTypeDeclaration

public void setTypeDeclaration(JpaTypeDeclaration typeDeclaration)
Manually sets the declaration of this IType, which gives the information about type parameters, dimensionality, etc.

Specified by:
setTypeDeclaration in interface IJpaType
Parameters:
typeDeclaration - The external form of the type declaration

toString

public String toString()

Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.